fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Test / GroupLib / OSGTestMultiPartitionStageBase.inl
blob9fc2bc5b79b0b6661478046b754ecac5e2738c8b
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 TestMultiPartitionStage!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &TestMultiPartitionStageBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 TestMultiPartitionStageBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 TestMultiPartitionStageBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the TestMultiPartitionStage::_sfMessage field.
79 inline
80 std::string &TestMultiPartitionStageBase::editMessage(void)
82     editSField(MessageFieldMask);
84     return _sfMessage.getValue();
87 //! Get the value of the TestMultiPartitionStage::_sfMessage field.
88 inline
89 const std::string &TestMultiPartitionStageBase::getMessage(void) const
91     return _sfMessage.getValue();
94 //! Set the value of the TestMultiPartitionStage::_sfMessage field.
95 inline
96 void TestMultiPartitionStageBase::setMessage(const std::string &value)
98     editSField(MessageFieldMask);
100     _sfMessage.setValue(value);
102 //! Get the value of the TestMultiPartitionStage::_sfNumPartitions field.
104 inline
105 Int32 &TestMultiPartitionStageBase::editNumPartitions(void)
107     editSField(NumPartitionsFieldMask);
109     return _sfNumPartitions.getValue();
112 //! Get the value of the TestMultiPartitionStage::_sfNumPartitions field.
113 inline
114       Int32  TestMultiPartitionStageBase::getNumPartitions(void) const
116     return _sfNumPartitions.getValue();
119 //! Set the value of the TestMultiPartitionStage::_sfNumPartitions field.
120 inline
121 void TestMultiPartitionStageBase::setNumPartitions(const Int32 value)
123     editSField(NumPartitionsFieldMask);
125     _sfNumPartitions.setValue(value);
127 //! Get the value of the TestMultiPartitionStage::_sfUseGroup field.
129 inline
130 bool &TestMultiPartitionStageBase::editUseGroup(void)
132     editSField(UseGroupFieldMask);
134     return _sfUseGroup.getValue();
137 //! Get the value of the TestMultiPartitionStage::_sfUseGroup field.
138 inline
139       bool  TestMultiPartitionStageBase::getUseGroup(void) const
141     return _sfUseGroup.getValue();
144 //! Set the value of the TestMultiPartitionStage::_sfUseGroup field.
145 inline
146 void TestMultiPartitionStageBase::setUseGroup(const bool value)
148     editSField(UseGroupFieldMask);
150     _sfUseGroup.setValue(value);
153 //! Get the value of the \a index element the TestMultiPartitionStage::_mfOrder field.
154 inline
155       Int32  TestMultiPartitionStageBase::getOrder(const UInt32 index) const
157     return _mfOrder[index];
160 inline
161 Int32 &TestMultiPartitionStageBase::editOrder(const UInt32 index)
163     editMField(OrderFieldMask, _mfOrder);
165     return _mfOrder[index];
170 #ifdef OSG_MT_CPTR_ASPECT
171 inline
172 void TestMultiPartitionStageBase::execSync (      TestMultiPartitionStageBase *pFrom,
173                                         ConstFieldMaskArg  whichField,
174                                         AspectOffsetStore &oOffsets,
175                                         ConstFieldMaskArg  syncMode,
176                                   const UInt32             uiSyncInfo)
178     Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
180     if(FieldBits::NoField != (MessageFieldMask & whichField))
181         _sfMessage.syncWith(pFrom->_sfMessage);
183     if(FieldBits::NoField != (NumPartitionsFieldMask & whichField))
184         _sfNumPartitions.syncWith(pFrom->_sfNumPartitions);
186     if(FieldBits::NoField != (OrderFieldMask & whichField))
187         _mfOrder.syncWith(pFrom->_mfOrder,
188                                 syncMode,
189                                 uiSyncInfo,
190                                 oOffsets);
192     if(FieldBits::NoField != (UseGroupFieldMask & whichField))
193         _sfUseGroup.syncWith(pFrom->_sfUseGroup);
195 #endif
198 inline
199 const Char8 *TestMultiPartitionStageBase::getClassname(void)
201     return "TestMultiPartitionStage";
203 OSG_GEN_CONTAINERPTR(TestMultiPartitionStage);
205 OSG_END_NAMESPACE