source: osgVisual/trunk/src/dataIO/dataIO_slot.cpp @ 393

Last change on this file since 393 was 221, checked in by Torben Dannhauer, 14 years ago

Updated copyright NOTICE
(No code changes)

File size: 1.6 KB
Line 
1/* -*-c++-*- osgVisual - Copyright (C) 2009-2011 Torben Dannhauer
2 *
3 * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version.  The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * osgVisual requires for some proprietary modules a license from the correspondig manufacturer.
9 * You have to aquire licenses for all used proprietary modules.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * OpenSceneGraph Public License for more details.
15*/
16
17#include "dataIO_slot.h"
18
19REGISTER_OBJECT_WRAPPER( dataIO_slot,                 // The unique wrapper name
20                         new osgVisual::dataIO_slot,             // The proto
21                         osgVisual::dataIO_slot,                 // The class typename
22                                                 "osg::Object osgVisual::dataIO_slot" )  // The inheritance relations
23{
24    // Serializers for different members   
25        BEGIN_ENUM_SERIALIZER( dataDirection, TO_OBJ );
26                ADD_ENUM_VALUE( TO_OBJ );
27                ADD_ENUM_VALUE( FROM_OBJ );
28                END_ENUM_SERIALIZER();
29        BEGIN_ENUM_SERIALIZER( varType, DOUBLE );
30                ADD_ENUM_VALUE( DOUBLE );
31                ADD_ENUM_VALUE( STRING );
32                END_ENUM_SERIALIZER();
33        ADD_STRING_SERIALIZER( VariableName, "" );
34        ADD_DOUBLE_SERIALIZER( Value, 0.0 );
35        ADD_STRING_SERIALIZER( SValue, "" );   
36}
Note: See TracBrowser for help on using the repository browser.