fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Test / GroupLib / OSGInsertTestTaskBase.inl
blob996dd7267d9795dbe5053b09b679a58a60d4444f
1 /*---------------------------------------------------------------------------*\
2  *                                OpenSG                                     *
3  *                                                                           *
4  *                                                                           *
5  *               Copyright (C) 2000-2006 by the OpenSG Forum                 *
6  *                                                                           *
7  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
8  *                                                                           *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
11  *                                License                                    *
12  *                                                                           *
13  * This library is free software; you can redistribute it and/or modify it   *
14  * under the terms of the GNU Library General Public License as published    *
15  * by the Free Software Foundation, version 2.                               *
16  *                                                                           *
17  * This library is distributed in the hope that it will be useful, but       *
18  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
20  * Library General Public License for more details.                          *
21  *                                                                           *
22  * You should have received a copy of the GNU Library General Public         *
23  * License along with this library; if not, write to the Free Software       *
24  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
25  *                                                                           *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
28  *                                Changes                                    *
29  *                                                                           *
30  *                                                                           *
31  *                                                                           *
32  *                                                                           *
33  *                                                                           *
34  *                                                                           *
35 \*---------------------------------------------------------------------------*/
37 /*****************************************************************************\
38  *****************************************************************************
39  **                                                                         **
40  **                  This file is automatically generated.                  **
41  **                                                                         **
42  **          Any changes made to this file WILL be lost when it is          **
43  **           regenerated, which can become necessary at any time.          **
44  **                                                                         **
45  **     Do not change this file, changes should be done in the derived      **
46  **     class InsertTestTask!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &InsertTestTaskBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 InsertTestTaskBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 InsertTestTaskBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the InsertTestTask::_sfMessage field.
79 inline
80 std::string &InsertTestTaskBase::editMessage(void)
82     editSField(MessageFieldMask);
84     return _sfMessage.getValue();
87 //! Get the value of the InsertTestTask::_sfMessage field.
88 inline
89 const std::string &InsertTestTaskBase::getMessage(void) const
91     return _sfMessage.getValue();
94 //! Set the value of the InsertTestTask::_sfMessage field.
95 inline
96 void InsertTestTaskBase::setMessage(const std::string &value)
98     editSField(MessageFieldMask);
100     _sfMessage.setValue(value);
103 //! Get the value of the InsertTestTask::_sfWindow field.
104 inline
105 CSMWindow * InsertTestTaskBase::getWindow(void) const
107     return _sfWindow.getValue();
110 //! Set the value of the InsertTestTask::_sfWindow field.
111 inline
112 void InsertTestTaskBase::setWindow(CSMWindow * const value)
114     editSField(WindowFieldMask);
116     _sfWindow.setValue(value);
118 //! Get the value of the InsertTestTask::_sfTrigger field.
120 inline
121 OSGAny &InsertTestTaskBase::editTrigger(void)
123     editSField(TriggerFieldMask);
125     return _sfTrigger.getValue();
128 //! Get the value of the InsertTestTask::_sfTrigger field.
129 inline
130 const OSGAny &InsertTestTaskBase::getTrigger(void) const
132     return _sfTrigger.getValue();
135 //! Set the value of the InsertTestTask::_sfTrigger field.
136 inline
137 void InsertTestTaskBase::setTrigger(const OSGAny &value)
139     editSField(TriggerFieldMask);
141     _sfTrigger.setValue(value);
145 #ifdef OSG_MT_CPTR_ASPECT
146 inline
147 void InsertTestTaskBase::execSync (      InsertTestTaskBase *pFrom,
148                                         ConstFieldMaskArg  whichField,
149                                         AspectOffsetStore &oOffsets,
150                                         ConstFieldMaskArg  syncMode,
151                                   const UInt32             uiSyncInfo)
153     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
155     if(FieldBits::NoField != (MessageFieldMask & whichField))
156         _sfMessage.syncWith(pFrom->_sfMessage);
158     if(FieldBits::NoField != (WindowFieldMask & whichField))
159         _sfWindow.syncWith(pFrom->_sfWindow);
161     if(FieldBits::NoField != (TriggerFieldMask & whichField))
162         _sfTrigger.syncWith(pFrom->_sfTrigger);
164 #endif
167 inline
168 const Char8 *InsertTestTaskBase::getClassname(void)
170     return "InsertTestTask";
172 OSG_GEN_CONTAINERPTR(InsertTestTask);
174 OSG_END_NAMESPACE