root/branches/Carsten_PtrWork2/Tools/fcd2code/TemplateFieldBundle_h.txt

Revision 918, 6.0 kB (checked in by vossg, 1 year ago)

fixed: new changed interface

Line 
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 #ifndef _OSG@!CLASSNAME!@_H_
40 #define _OSG@!CLASSNAME!@_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
44
45 #include "OSG@!Classname!@Base.h"
46
47 OSG_BEGIN_NAMESPACE
48
49 /*! \brief @!Classname!@ class. See \ref
50 @@if isInLibrary
51            Page@!Libname!@@!Classname!@ for a description.
52 @@else
53            Page@!Classname!@ for a description.
54 @@endif
55 */
56
57 @@if isInLibrary
58 class OSG_@!LIBNAME!@_DLLMAPPING @!Classname!@ : public @!Classname!@Base
59 @@else
60 class @!Classname!@ : public @!Classname!@Base
61 @@endif
62 {
63   protected:
64
65     /*==========================  PUBLIC  =================================*/
66
67   public:
68
69     typedef @!Classname!@Base Inherited;
70     typedef @!Classname!@     Self;
71
72     /*---------------------------------------------------------------------*/
73     /*! \name                      Sync                                    */
74     /*! \{                                                                 */
75
76     virtual void changed(ConstFieldMaskArg whichField,
77                          UInt32            origin,
78                          BitVector         details   );
79
80     /*! \}                                                                 */
81     /*---------------------------------------------------------------------*/
82     /*! \name                     Output                                   */
83     /*! \{                                                                 */
84
85     virtual void dump(      UInt32     uiIndent = 0,
86                       const BitVector  bvFlags  = 0) const;
87
88     /*! \}                                                                 */
89     /*=========================  PROTECTED  ===============================*/
90
91   protected:
92
93     // Variables should all be in @!Classname!@Base.
94
95     /*---------------------------------------------------------------------*/
96     /*! \name                  Constructors                                */
97     /*! \{                                                                 */
98
99     @!Classname!@(void);
100     @!Classname!@(const @!Classname!@ &source);
101
102     /*! \}                                                                 */
103     /*---------------------------------------------------------------------*/
104     /*! \name                   Destructors                                */
105     /*! \{                                                                 */
106
107     virtual ~@!Classname!@(void);
108
109     /*! \}                                                                 */
110     /*---------------------------------------------------------------------*/
111     /*! \name                      Init                                    */
112     /*! \{                                                                 */
113
114     static void initMethod(InitPhase ePhase);
115
116     /*! \}                                                                 */
117     /*==========================  PRIVATE  ================================*/
118
119   private:
120
121     friend class FieldBundle;
122     friend class @!Classname!@Base;
123
124     // prohibit default functions (move to 'public' if you need one)
125     void operator =(const @!Classname!@ &source);
126 };
127
128 OSG_END_NAMESPACE
129
130 #include "OSG@!Classname!@Base.inl"
131 #include "OSG@!Classname!@.inl"
132
133 #endif /* _OSG@!CLASSNAME!@_H_ */
Note: See TracBrowser for help on using the browser.