1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
7 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
35 \*---------------------------------------------------------------------------*/
37 /*****************************************************************************\
38 *****************************************************************************
40 ** This file is automatically generated. **
42 ** Any changes made to this file WILL be lost when it is **
43 ** regenerated, which can become necessary at any time. **
45 ** Do not change this file, changes should be done in the derived **
46 ** class InsertTestTask!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &InsertTestTaskBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 InsertTestTaskBase::getClassTypeId(void)
70 OSG::UInt16 InsertTestTaskBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the InsertTestTask::_sfMessage field.
80 std::string &InsertTestTaskBase::editMessage(void)
82 editSField(MessageFieldMask);
84 return _sfMessage.getValue();
87 //! Get the value of the InsertTestTask::_sfMessage field.
89 const std::string &InsertTestTaskBase::getMessage(void) const
91 return _sfMessage.getValue();
94 //! Set the value of the InsertTestTask::_sfMessage field.
96 void InsertTestTaskBase::setMessage(const std::string &value)
98 editSField(MessageFieldMask);
100 _sfMessage.setValue(value);
103 //! Get the value of the InsertTestTask::_sfWindow field.
105 CSMWindow * InsertTestTaskBase::getWindow(void) const
107 return _sfWindow.getValue();
110 //! Set the value of the InsertTestTask::_sfWindow field.
112 void InsertTestTaskBase::setWindow(CSMWindow * const value)
114 editSField(WindowFieldMask);
116 _sfWindow.setValue(value);
118 //! Get the value of the InsertTestTask::_sfTrigger field.
121 OSGAny &InsertTestTaskBase::editTrigger(void)
123 editSField(TriggerFieldMask);
125 return _sfTrigger.getValue();
128 //! Get the value of the InsertTestTask::_sfTrigger field.
130 const OSGAny &InsertTestTaskBase::getTrigger(void) const
132 return _sfTrigger.getValue();
135 //! Set the value of the InsertTestTask::_sfTrigger field.
137 void InsertTestTaskBase::setTrigger(const OSGAny &value)
139 editSField(TriggerFieldMask);
141 _sfTrigger.setValue(value);
145 #ifdef OSG_MT_CPTR_ASPECT
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);
168 const Char8 *InsertTestTaskBase::getClassname(void)
170 return "InsertTestTask";
172 OSG_GEN_CONTAINERPTR(InsertTestTask);