1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2002 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 \*---------------------------------------------------------------------------*/
42 #include "OSGConfig.h"
43 #include "OSGFieldType.h"
44 #include "OSGBaseFunctions.h"
46 #include "OSGFieldDescFactory.h"
50 /*! \var OSG::FieldType::_contentType
51 Type stored within fields of this type
54 /*-------------------------------------------------------------------------*/
57 FieldType::FieldType(const Char8
*szName
,
58 const Char8
*szParentName
,
59 const DataType
&contentType
,
60 Cardinality cardinality
,
62 FieldDescCreator fCreator
,
63 IndexedFieldDescCreator fIdxCreator
,
64 const UInt32 uiNameSpace
) :
68 _cardinality (cardinality
),
69 _fieldClass (fieldClass
),
70 _contentType (contentType
),
73 FieldDescFactory::the()->registerDescription( szName
,
79 FieldType::FieldType(const Char8
*szName
,
80 const Char8
*szParentName
,
81 const DataType
&contentType
,
82 Cardinality cardinality
,
84 const FieldType
&pScanAsType
,
85 FieldDescCreator fCreator
,
86 IndexedFieldDescCreator fIdxCreator
,
87 const UInt32 uiNameSpace
) :
91 _cardinality ( cardinality
),
92 _fieldClass ( fieldClass
),
93 _contentType ( contentType
),
94 _pScanAsType (&pScanAsType
)
96 FieldDescFactory::the()->registerDescription( szName
,
103 /*-------------------------------------------------------------------------*/
106 FieldType::~FieldType(void)
110 /*-------------------------------------------------------------------------*/