1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2003 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 \*---------------------------------------------------------------------------*/
41 template <class ValueT, Int32 iNamespace> inline
42 FieldDescriptionBase *SField<ValueT, iNamespace>::createFieldDescription(
43 const Char8 *szFieldname,
45 FieldEditMethod fEditMethod,
46 FieldGetMethod fGetMethod)
48 if(szFieldname == NULL)
50 FWARNING(("createFieldDescription no fieldname given"));
55 if(uiFieldFlags == FieldDescFactoryBase::AutoFlags)
57 uiFieldFlags = SFDefaultFlags;
60 FieldDescriptionBase *returnValue = new typename Self::Description(
74 template <class ValueT, Int32 iNamespace> inline
75 FieldDescriptionBase *SField<ValueT, iNamespace>::createIdxFieldDescription(
76 const Char8 *szFieldname,
78 FieldIndexEditMethod fEditMethod,
79 FieldIndexGetMethod fGetMethod)
81 if(szFieldname == NULL)
83 FWARNING(("createFieldDescriptionIdx no fieldname given"));
88 if(uiFieldFlags == FieldDescFactoryBase::AutoFlags)
90 uiFieldFlags = SFDefaultFlags;
93 FieldDescriptionBase *returnValue = new typename Self::Description(
107 #if defined(OSG_STATIC_MEMEBER_NEEDS_COPY_ASIGN_INIT)
109 template <class ValueT, Int32 iNamespace>
110 FieldType SField<ValueT, iNamespace>::_fieldType = FieldType(
111 SFieldTraits::getSName (),
112 SFieldTraits::getSPName(),
113 SFieldTraits::getType (),
114 FieldType::SingleField,
116 &Self::createFieldDescription,
117 &Self::createIdxFieldDescription);
121 template <class ValueT, Int32 iNamespace>
122 FieldType SField<ValueT, iNamespace>::_fieldType(
123 SFieldTraits::getSName (),
124 SFieldTraits::getSPName(),
125 SFieldTraits::getType (),
126 FieldType::SingleField,
128 &Self::createFieldDescription,
129 &Self::createIdxFieldDescription);
133 #if defined(OSG_TMPL_STATIC_MEMBER_NEEDS_HELPER_FCT)
134 template <class ValueT, Int32 iNamespace>
135 const FieldType &SField<ValueT, iNamespace>::fieldTypeExportHelper(void)