fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Base / Field / OSGInt32ToStringMapFields.cpp
blob1fbf0b47f6213c8b982f70a228507cdbc2319073
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_COMPILEINT32TOSTRINGMAPTYPEINST
33 // You need this in every OpenSG file
34 #include "OSGInt32ToStringMapFields.h"
36 #include "OSGSField.ins"
37 #include "OSGMField.ins"
39 // The new field type include
40 #include "OSGFieldContainer.h"
41 #include "OSGFieldType.h"
42 #include "OSGBaseFieldTraits.h"
43 #include "OSGDataType.h"
45 OSG_BEGIN_NAMESPACE
47 // This is where the DataType for the new Fieldtype is defined.
48 // The parameters are the name of the type and the name of the parent type
49 DataType FieldTraits<Int32ToStringMap>::_type("Int32ToStringMap", "BaseType");
51 // These macros instantiate the necessary template methods for the fields
52 OSG_FIELDTRAITS_GETTYPE ( Int32ToStringMap)
53 OSG_FIELD_DLLEXPORT_DEF1(SField, Int32ToStringMap)
54 OSG_FIELD_DLLEXPORT_DEF1(MField, Int32ToStringMap)
56 OSG_END_NAMESPACE