| 1 |
/*---------------------------------------------------------------------------*\ |
|---|
| 2 |
* OpenSG * |
|---|
| 3 |
* * |
|---|
| 4 |
* * |
|---|
| 5 |
* Copyright (C) 2000-2006 by the OpenSG Forum * |
|---|
| 6 |
* * |
|---|
| 7 |
* www.opensg.org * |
|---|
| 8 |
* * |
|---|
| 9 |
* contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * |
|---|
| 10 |
* * |
|---|
| 11 |
\*---------------------------------------------------------------------------*/ |
|---|
| 12 |
/*---------------------------------------------------------------------------*\ |
|---|
| 13 |
* License * |
|---|
| 14 |
* * |
|---|
| 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. * |
|---|
| 18 |
* * |
|---|
| 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. * |
|---|
| 23 |
* * |
|---|
| 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. * |
|---|
| 27 |
* * |
|---|
| 28 |
\*---------------------------------------------------------------------------*/ |
|---|
| 29 |
/*---------------------------------------------------------------------------*\ |
|---|
| 30 |
* Changes * |
|---|
| 31 |
* * |
|---|
| 32 |
* * |
|---|
| 33 |
* * |
|---|
| 34 |
* * |
|---|
| 35 |
* * |
|---|
| 36 |
* * |
|---|
| 37 |
\*---------------------------------------------------------------------------*/ |
|---|
| 38 |
|
|---|
| 39 |
/*****************************************************************************\ |
|---|
| 40 |
***************************************************************************** |
|---|
| 41 |
** ** |
|---|
| 42 |
** This file is automatically generated. ** |
|---|
| 43 |
** ** |
|---|
| 44 |
** Any changes made to this file WILL be lost when it is ** |
|---|
| 45 |
** regenerated, which can become necessary at any time. ** |
|---|
| 46 |
** ** |
|---|
| 47 |
***************************************************************************** |
|---|
| 48 |
\*****************************************************************************/ |
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
#ifndef _OSG@!CLASSNAME!@FIELDS_H_ |
|---|
| 52 |
#define _OSG@!CLASSNAME!@FIELDS_H_ |
|---|
| 53 |
#ifdef __sgi |
|---|
| 54 |
#pragma once |
|---|
| 55 |
#endif |
|---|
| 56 |
|
|---|
| 57 |
#include "@!HeaderPrefix!@OSGConfig.h" |
|---|
| 58 |
@@if @!isInLibrary!@ |
|---|
| 59 |
#include "OSG@!Libname!@Def.h" |
|---|
| 60 |
@@endif |
|---|
| 61 |
|
|---|
| 62 |
#include "@!ParentHeaderPrefix!@OSG@!Parent!@Fields.h" |
|---|
| 63 |
|
|---|
| 64 |
#include "@!HeaderPrefix!@OSGSFieldAdaptor.h" |
|---|
| 65 |
#include "@!HeaderPrefix!@OSGMFieldAdaptor.h" |
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 |
OSG_BEGIN_NAMESPACE |
|---|
| 69 |
|
|---|
| 70 |
class @!Classname!@; |
|---|
| 71 |
|
|---|
| 72 |
#if !defined(OSG_DO_DOC) // created as a dummy class, remove to prevent doubles |
|---|
| 73 |
//! @!Classname!@P |
|---|
| 74 |
|
|---|
| 75 |
OSG_GEN_BUNDLEP(@!Classname!@); |
|---|
| 76 |
|
|---|
| 77 |
#endif |
|---|
| 78 |
|
|---|
| 79 |
#if !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3) |
|---|
| 80 |
@@if @!isInLibrary!@ |
|---|
| 81 |
/*! \ingroup Grp@!Libname!@FieldTraits |
|---|
| 82 |
*/ |
|---|
| 83 |
@@endif |
|---|
| 84 |
#if !defined(OSG_DOC_DEV_TRAITS) |
|---|
| 85 |
/*! \hideinhierarchy */ |
|---|
| 86 |
#endif |
|---|
| 87 |
|
|---|
| 88 |
template <> |
|---|
| 89 |
struct FieldTraits<@!Classname!@P> : |
|---|
| 90 |
public FieldTraitsTemplateBase<@!Classname!@P> |
|---|
| 91 |
{ |
|---|
| 92 |
private: |
|---|
| 93 |
|
|---|
| 94 |
static DataType _type; |
|---|
| 95 |
|
|---|
| 96 |
public: |
|---|
| 97 |
|
|---|
| 98 |
typedef FieldTraits<@!Classname!@P> Self; |
|---|
| 99 |
|
|---|
| 100 |
enum { Convertible = NotConvertible }; |
|---|
| 101 |
@@if @!PointerField!@ |
|---|
| 102 |
|
|---|
| 103 |
@@if @!isInLibrary!@ |
|---|
| 104 |
static OSG_@!LIBNAME!@_DLLMAPPING DataType &getType(void); |
|---|
| 105 |
@@else // @!isInLibrary!@ |
|---|
| 106 |
static DataType &getType(void); |
|---|
| 107 |
@@endif // @!isInLibrary!@ |
|---|
| 108 |
|
|---|
| 109 |
@@endif // @!PointerField!@ |
|---|
| 110 |
@@if @!SFPointerField!@ |
|---|
| 111 |
static const char *getSName(void) { return "SF@!Classname!@P"; } |
|---|
| 112 |
@@endif // @!SFPointerField!@ |
|---|
| 113 |
@@if @!MFPointerField!@ |
|---|
| 114 |
static const char *getMName(void) { return "MF@!Classname!@P"; } |
|---|
| 115 |
@@endif // @!MFPointerField!@ |
|---|
| 116 |
}; |
|---|
| 117 |
|
|---|
| 118 |
#if !defined(OSG_DOC_DEV_TRAITS) |
|---|
| 119 |
/*! \class FieldTraitsTemplateBase<@!Classname!@P, 0> |
|---|
| 120 |
\hideinhierarchy |
|---|
| 121 |
*/ |
|---|
| 122 |
#endif |
|---|
| 123 |
|
|---|
| 124 |
#endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3) |
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
@@if @!SFPointerField!@ |
|---|
| 128 |
#if !defined(OSG_DO_DOC) || defined(OSG_DOC_FIELD_TYPEDEFS) |
|---|
| 129 |
@@if @!isInLibrary!@ |
|---|
| 130 |
/*! \ingroup Grp@!Libname!@FieldSingle */ |
|---|
| 131 |
|
|---|
| 132 |
@@endif // @!isInLibrary!@ |
|---|
| 133 |
typedef SFieldAdaptor<@!Classname!@P, SFFieldBundleP> SF@!Classname!@P; |
|---|
| 134 |
#endif |
|---|
| 135 |
|
|---|
| 136 |
@@endif |
|---|
| 137 |
|
|---|
| 138 |
@@if @!MFPointerField!@ |
|---|
| 139 |
#if !defined(OSG_DO_DOC) || defined(OSG_DOC_FIELD_TYPEDEFS) |
|---|
| 140 |
@@if @!isInLibrary!@ |
|---|
| 141 |
/*! \ingroup Grp@!Libname!@FieldMulti */ |
|---|
| 142 |
|
|---|
| 143 |
@@endif // @!isInLibrary!@ |
|---|
| 144 |
typedef MFieldAdaptor<@!Classname!@P, MFFieldBundleP> MF@!Classname!@P; |
|---|
| 145 |
#endif |
|---|
| 146 |
|
|---|
| 147 |
@@endif |
|---|
| 148 |
OSG_END_NAMESPACE |
|---|
| 149 |
|
|---|
| 150 |
#endif /* _OSG@!CLASSNAME!@FIELDS_H_ */ |
|---|