changed: auto add updateData callback to stages so that stagedata can be updated...
[opensg.git] / Source / Base / Field / OSGStringToUInt32MapFields.cpp
blob4ea71767086e30a02b2d3f6649eb980f9a777bcf
1 /*---------------------------------------------------------------------------*\
2 * OpenSG Toolbox *
3 * *
4 * *
5 * Authors: David Kabala *
6 * *
7 \*---------------------------------------------------------------------------*/
8 /*---------------------------------------------------------------------------*\
9 * License *
10 * *
11 * This library is free software; you can redistribute it and/or modify it *
12 * under the terms of the GNU Library General Public License as published *
13 * by the Free Software Foundation, version 2. *
14 * *
15 * This library is distributed in the hope that it will be useful, but *
16 * WITHOUT ANY WARRANTY; without even the implied warranty of *
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
18 * Library General Public License for more details. *
19 * *
20 * You should have received a copy of the GNU Library General Public *
21 * License along with this library; if not, write to the Free Software *
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
23 * *
24 \*---------------------------------------------------------------------------*/
26 // Source file for new Field type
28 // This define is only set in this source file. It switches the
29 // Windows-specific declarations in the header for compiling the Field,
30 // not for using it.
31 #define OSG_COMPILESTRINGTOUINT32MAPTYPEINST
33 #include "OSGStringToUInt32MapFields.h"
35 #include "OSGSField.ins"
36 #include "OSGMField.ins"
38 #include "OSGFieldContainer.h"
39 #include "OSGFieldType.h"
40 #include "OSGBaseFieldTraits.h"
41 #include "OSGDataType.h"
43 OSG_BEGIN_NAMESPACE
45 // This is where the DataType for the new Fieldtype is defined.
46 // The parameters are the name of the type and the name of the parent type
47 DataType FieldTraits<StringToUInt32Map>::_type("StringToUInt32Map", "BaseType");
49 // These macros instantiate the necessary template methods for the fields
50 OSG_FIELDTRAITS_GETTYPE ( StringToUInt32Map)
51 OSG_FIELD_DLLEXPORT_DEF1(SField, StringToUInt32Map)
52 OSG_FIELD_DLLEXPORT_DEF1(MField, StringToUInt32Map)
54 OSG_END_NAMESPACE