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

Revision 1030, 5.2 kB (checked in by cneumann, 1 year ago)

fixed: compile errors

reference counting


It compiles on linux (when disabling the VRML Loader) and the first
ref counting tests seem to work.

  • Property svn:eol-style set to native
Line 
1 /*---------------------------------------------------------------------------*\
2  *                                OpenSG                                     *
3  *                                                                           *
4  *                                                                           *
5  *               Copyright (C) 2000-2007 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 //  Includes
41 //---------------------------------------------------------------------------
42
43 #include <cstdlib>
44 #include <cstdio>
45
46 @@if not @!isSystemComponent!@
47 @@if @!isInLibrary!@
48 #define OSG_COMPILE@!LIBNAME!@LIB
49
50 @@endif
51 @@endif
52 #include <@!HeaderPrefix!@OSGConfig.h>
53
54 #include "OSG@!Classname!@.h"
55
56 OSG_BEGIN_NAMESPACE
57
58 // Documentation for this class is emitted in the
59 // OSG@!Classname!@Base.cpp file.
60 // To modify it, please change the .fcd file (OSG@!Classname!@.fcd) and
61 // regenerate the base file.
62
63 /***************************************************************************\
64  *                           Class variables                               *
65 \***************************************************************************/
66
67 /***************************************************************************\
68  *                           Class methods                                 *
69 \***************************************************************************/
70
71 void @!Classname!@::initMethod(InitPhase ePhase)
72 {
73     Inherited::initMethod(ePhase);
74
75     if(ePhase == TypeObject::SystemPost)
76     {
77     }
78 }
79
80 /***************************************************************************\
81  *                           Instance methods                              *
82 \***************************************************************************/
83
84 /*-------------------------------------------------------------------------*\
85  -  private                                                                 -
86 \*-------------------------------------------------------------------------*/
87
88 /*----------------------- constructors & destructors ----------------------*/
89
90 @!Classname!@::@!Classname!@(void) :
91     Inherited()
92 {
93 }
94
95 @!Classname!@::@!Classname!@(const @!Classname!@ &source) :
96     Inherited(source)
97 {
98 }
99
100 @!Classname!@::~@!Classname!@(void)
101 {
102 }
103
104 /*----------------------------- class specific ----------------------------*/
105
106 void @!Classname!@::changed(ConstFieldMaskArg whichField,
107                             UInt32            origin,
108                             BitVector         details)
109 {
110     Inherited::changed(whichField, origin, details);
111 }
112
113 void @!Classname!@::dump(      UInt32    ,
114                          const BitVector ) const
115 {
116     SLOG << "Dump @!Classname!@ NI" << std::endl;
117 }
118
119 OSG_END_NAMESPACE
Note: See TracBrowser for help on using the browser.