1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2007 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGATTACHMENTCONTAINERFIELDTRAITS_H_
40 #define _OSGATTACHMENTCONTAINERFIELDTRAITS_H_
45 #include "OSGFieldContainerFieldTraits.h"
46 #include "OSGDataType.h"
48 #include "OSGContainerForwards.h"
52 /*! \ingroup GrpBaseFieldContainerFieldTraits
53 \ingroup GrpLibOSGBase
57 struct FieldTraits
<AttachmentContainer
*>
58 : public FieldTraitsFCPtrBase
<AttachmentContainer
*>
60 static PointerType _type
;
61 typedef FieldTraits
<AttachmentContainer
*> Self
;
64 enum { Convertible
= Self::NotConvertible
};
66 static OSG_BASE_DLLMAPPING
67 DataType
&getType (void);
69 template<typename RefCountPolicy
> inline
70 static const Char8
*getSName(void);
72 template<typename RefCountPolicy
> inline
73 static const Char8
*getMName(void);
77 const Char8
*FieldTraits
<AttachmentContainer
*,
78 0 >::getSName
<RecordedRefCountPolicy
>(void)
80 return "SFRecAttachmentContainerPtr";
85 FieldTraits
<AttachmentContainer
*,
86 0 >::getSName
<UnrecordedRefCountPolicy
>(void)
88 return "SFUnrecAttachmentContainerPtr";
93 FieldTraits
<AttachmentContainer
*,
94 0 >::getSName
<WeakRefCountPolicy
>(void)
96 return "SFWeakAttachmentContainerPtr";
101 FieldTraits
<AttachmentContainer
*,
102 0 >::getSName
<NoRefCountPolicy
>(void)
104 return "SFUnrefdAttachmentContainerPtr";
111 FieldTraits
<AttachmentContainer
*,
112 0 >::getMName
<RecordedRefCountPolicy
>(void)
114 return "MFRecAttachmentContainerPtr";
119 FieldTraits
<AttachmentContainer
*,
120 0 >::getMName
<UnrecordedRefCountPolicy
>(void)
122 return "MFUnrecAttachmentContainerPtr";
127 FieldTraits
<AttachmentContainer
*,
128 0 >::getMName
<WeakRefCountPolicy
>(void)
130 return "MFWeakAttachmentContainerPtr";
135 FieldTraits
<AttachmentContainer
*,
136 0 >::getMName
<NoRefCountPolicy
>(void)
138 return "MFUnrefdAttachmentContainerPtr";
143 #endif /* _OSGATTACHMENTCONTAINERFIELDTRAITS_H_ */