changed: gcc8 base update
[opensg.git] / Source / Base / FieldContainer / Fields / OSGAttachmentContainerFieldTraits.h
blobdd50f8f0b214436b0356ef5db87beb3c189622ac
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2007 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
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. *
18 * *
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. *
23 * *
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. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGATTACHMENTCONTAINERFIELDTRAITS_H_
40 #define _OSGATTACHMENTCONTAINERFIELDTRAITS_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGFieldContainerFieldTraits.h"
46 #include "OSGDataType.h"
48 #include "OSGContainerForwards.h"
50 OSG_BEGIN_NAMESPACE
52 /*! \ingroup GrpBaseFieldContainerFieldTraits
53 \ingroup GrpLibOSGBase
56 template <>
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);
76 template<> inline
77 const Char8 *FieldTraits<AttachmentContainer *,
78 0 >::getSName<RecordedRefCountPolicy>(void)
80 return "SFRecAttachmentContainerPtr";
83 template<> inline
84 const Char8 *
85 FieldTraits<AttachmentContainer *,
86 0 >::getSName<UnrecordedRefCountPolicy>(void)
88 return "SFUnrecAttachmentContainerPtr";
91 template<> inline
92 const Char8 *
93 FieldTraits<AttachmentContainer *,
94 0 >::getSName<WeakRefCountPolicy>(void)
96 return "SFWeakAttachmentContainerPtr";
99 template<> inline
100 const Char8 *
101 FieldTraits<AttachmentContainer *,
102 0 >::getSName<NoRefCountPolicy>(void)
104 return "SFUnrefdAttachmentContainerPtr";
109 template<> inline
110 const Char8 *
111 FieldTraits<AttachmentContainer *,
112 0 >::getMName<RecordedRefCountPolicy>(void)
114 return "MFRecAttachmentContainerPtr";
117 template<> inline
118 const Char8 *
119 FieldTraits<AttachmentContainer *,
120 0 >::getMName<UnrecordedRefCountPolicy>(void)
122 return "MFUnrecAttachmentContainerPtr";
125 template<> inline
126 const Char8 *
127 FieldTraits<AttachmentContainer *,
128 0 >::getMName<WeakRefCountPolicy>(void)
130 return "MFWeakAttachmentContainerPtr";
133 template<> inline
134 const Char8 *
135 FieldTraits<AttachmentContainer *,
136 0 >::getMName<NoRefCountPolicy>(void)
138 return "MFUnrefdAttachmentContainerPtr";
141 OSG_END_NAMESPACE
143 #endif /* _OSGATTACHMENTCONTAINERFIELDTRAITS_H_ */