1 /*---------------------------------------------------------------------------*\
5 * Authors: David Kabala *
7 \*---------------------------------------------------------------------------*/
8 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
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,
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"
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
)