1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
7 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
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 ClusterWindow!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &ClusterWindowBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 ClusterWindowBase::getClassTypeId(void)
70 OSG::UInt16 ClusterWindowBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the ClusterWindow::_sfConnectionType field.
80 std::string &ClusterWindowBase::editConnectionType(void)
82 editSField(ConnectionTypeFieldMask);
84 return _sfConnectionType.getValue();
87 //! Get the value of the ClusterWindow::_sfConnectionType field.
89 const std::string &ClusterWindowBase::getConnectionType(void) const
91 return _sfConnectionType.getValue();
94 //! Set the value of the ClusterWindow::_sfConnectionType field.
96 void ClusterWindowBase::setConnectionType(const std::string &value)
98 editSField(ConnectionTypeFieldMask);
100 _sfConnectionType.setValue(value);
102 //! Get the value of the ClusterWindow::_sfConnectionInterface field.
105 std::string &ClusterWindowBase::editConnectionInterface(void)
107 editSField(ConnectionInterfaceFieldMask);
109 return _sfConnectionInterface.getValue();
112 //! Get the value of the ClusterWindow::_sfConnectionInterface field.
114 const std::string &ClusterWindowBase::getConnectionInterface(void) const
116 return _sfConnectionInterface.getValue();
119 //! Set the value of the ClusterWindow::_sfConnectionInterface field.
121 void ClusterWindowBase::setConnectionInterface(const std::string &value)
123 editSField(ConnectionInterfaceFieldMask);
125 _sfConnectionInterface.setValue(value);
127 //! Get the value of the ClusterWindow::_sfConnectionDestination field.
130 std::string &ClusterWindowBase::editConnectionDestination(void)
132 editSField(ConnectionDestinationFieldMask);
134 return _sfConnectionDestination.getValue();
137 //! Get the value of the ClusterWindow::_sfConnectionDestination field.
139 const std::string &ClusterWindowBase::getConnectionDestination(void) const
141 return _sfConnectionDestination.getValue();
144 //! Set the value of the ClusterWindow::_sfConnectionDestination field.
146 void ClusterWindowBase::setConnectionDestination(const std::string &value)
148 editSField(ConnectionDestinationFieldMask);
150 _sfConnectionDestination.setValue(value);
152 //! Get the value of the ClusterWindow::_sfConnectionParams field.
155 std::string &ClusterWindowBase::editConnectionParams(void)
157 editSField(ConnectionParamsFieldMask);
159 return _sfConnectionParams.getValue();
162 //! Get the value of the ClusterWindow::_sfConnectionParams field.
164 const std::string &ClusterWindowBase::getConnectionParams(void) const
166 return _sfConnectionParams.getValue();
169 //! Set the value of the ClusterWindow::_sfConnectionParams field.
171 void ClusterWindowBase::setConnectionParams(const std::string &value)
173 editSField(ConnectionParamsFieldMask);
175 _sfConnectionParams.setValue(value);
177 //! Get the value of the ClusterWindow::_sfServicePort field.
180 UInt32 &ClusterWindowBase::editServicePort(void)
182 editSField(ServicePortFieldMask);
184 return _sfServicePort.getValue();
187 //! Get the value of the ClusterWindow::_sfServicePort field.
189 UInt32 ClusterWindowBase::getServicePort(void) const
191 return _sfServicePort.getValue();
194 //! Set the value of the ClusterWindow::_sfServicePort field.
196 void ClusterWindowBase::setServicePort(const UInt32 value)
198 editSField(ServicePortFieldMask);
200 _sfServicePort.setValue(value);
202 //! Get the value of the ClusterWindow::_sfServiceAddress field.
205 std::string &ClusterWindowBase::editServiceAddress(void)
207 editSField(ServiceAddressFieldMask);
209 return _sfServiceAddress.getValue();
212 //! Get the value of the ClusterWindow::_sfServiceAddress field.
214 const std::string &ClusterWindowBase::getServiceAddress(void) const
216 return _sfServiceAddress.getValue();
219 //! Set the value of the ClusterWindow::_sfServiceAddress field.
221 void ClusterWindowBase::setServiceAddress(const std::string &value)
223 editSField(ServiceAddressFieldMask);
225 _sfServiceAddress.setValue(value);
227 //! Get the value of the ClusterWindow::_sfServiceInterface field.
230 std::string &ClusterWindowBase::editServiceInterface(void)
232 editSField(ServiceInterfaceFieldMask);
234 return _sfServiceInterface.getValue();
237 //! Get the value of the ClusterWindow::_sfServiceInterface field.
239 const std::string &ClusterWindowBase::getServiceInterface(void) const
241 return _sfServiceInterface.getValue();
244 //! Set the value of the ClusterWindow::_sfServiceInterface field.
246 void ClusterWindowBase::setServiceInterface(const std::string &value)
248 editSField(ServiceInterfaceFieldMask);
250 _sfServiceInterface.setValue(value);
252 //! Get the value of the ClusterWindow::_sfInterleave field.
255 UInt32 &ClusterWindowBase::editInterleave(void)
257 editSField(InterleaveFieldMask);
259 return _sfInterleave.getValue();
262 //! Get the value of the ClusterWindow::_sfInterleave field.
264 UInt32 ClusterWindowBase::getInterleave(void) const
266 return _sfInterleave.getValue();
269 //! Set the value of the ClusterWindow::_sfInterleave field.
271 void ClusterWindowBase::setInterleave(const UInt32 value)
273 editSField(InterleaveFieldMask);
275 _sfInterleave.setValue(value);
277 //! Get the value of the ClusterWindow::_sfFrameCount field.
280 UInt32 &ClusterWindowBase::editFrameCount(void)
282 editSField(FrameCountFieldMask);
284 return _sfFrameCount.getValue();
287 //! Get the value of the ClusterWindow::_sfFrameCount field.
289 UInt32 ClusterWindowBase::getFrameCount(void) const
291 return _sfFrameCount.getValue();
294 //! Set the value of the ClusterWindow::_sfFrameCount field.
296 void ClusterWindowBase::setFrameCount(const UInt32 value)
298 editSField(FrameCountFieldMask);
300 _sfFrameCount.setValue(value);
303 //! Get the value of the \a index element the ClusterWindow::_mfServers field.
305 const std::string &ClusterWindowBase::getServers(const UInt32 index) const
307 return _mfServers[index];
311 MFString ::reference ClusterWindowBase::editServers(const UInt32 index)
313 editMField(ServersFieldMask, _mfServers);
315 return _mfServers[index];
318 //! Get the value of the \a index element the ClusterWindow::_mfServerIds field.
320 UInt32 ClusterWindowBase::getServerIds(const UInt32 index) const
322 return _mfServerIds[index];
326 MFUInt32 ::reference ClusterWindowBase::editServerIds(const UInt32 index)
328 editMField(ServerIdsFieldMask, _mfServerIds);
330 return _mfServerIds[index];
333 //! Get the value of the \a index element the ClusterWindow::_mfAutostart field.
335 const std::string &ClusterWindowBase::getAutostart(const UInt32 index) const
337 return _mfAutostart[index];
341 MFString ::reference ClusterWindowBase::editAutostart(const UInt32 index)
343 editMField(AutostartFieldMask, _mfAutostart);
345 return _mfAutostart[index];
349 #ifdef OSG_MT_CPTR_ASPECT
351 void ClusterWindowBase::execSync ( ClusterWindowBase *pFrom,
352 ConstFieldMaskArg whichField,
353 AspectOffsetStore &oOffsets,
354 ConstFieldMaskArg syncMode,
355 const UInt32 uiSyncInfo)
357 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
359 if(FieldBits::NoField != (ServersFieldMask & whichField))
360 _mfServers.syncWith(pFrom->_mfServers,
365 if(FieldBits::NoField != (ServerIdsFieldMask & whichField))
366 _mfServerIds.syncWith(pFrom->_mfServerIds,
371 if(FieldBits::NoField != (ConnectionTypeFieldMask & whichField))
372 _sfConnectionType.syncWith(pFrom->_sfConnectionType);
374 if(FieldBits::NoField != (ConnectionInterfaceFieldMask & whichField))
375 _sfConnectionInterface.syncWith(pFrom->_sfConnectionInterface);
377 if(FieldBits::NoField != (ConnectionDestinationFieldMask & whichField))
378 _sfConnectionDestination.syncWith(pFrom->_sfConnectionDestination);
380 if(FieldBits::NoField != (ConnectionParamsFieldMask & whichField))
381 _sfConnectionParams.syncWith(pFrom->_sfConnectionParams);
383 if(FieldBits::NoField != (ServicePortFieldMask & whichField))
384 _sfServicePort.syncWith(pFrom->_sfServicePort);
386 if(FieldBits::NoField != (ServiceAddressFieldMask & whichField))
387 _sfServiceAddress.syncWith(pFrom->_sfServiceAddress);
389 if(FieldBits::NoField != (ServiceInterfaceFieldMask & whichField))
390 _sfServiceInterface.syncWith(pFrom->_sfServiceInterface);
392 if(FieldBits::NoField != (ClientWindowFieldMask & whichField))
393 _sfClientWindow.syncWith(pFrom->_sfClientWindow);
395 if(FieldBits::NoField != (InterleaveFieldMask & whichField))
396 _sfInterleave.syncWith(pFrom->_sfInterleave);
398 if(FieldBits::NoField != (FrameCountFieldMask & whichField))
399 _sfFrameCount.syncWith(pFrom->_sfFrameCount);
401 if(FieldBits::NoField != (ComposerFieldMask & whichField))
402 _sfComposer.syncWith(pFrom->_sfComposer);
404 if(FieldBits::NoField != (AutostartFieldMask & whichField))
405 _mfAutostart.syncWith(pFrom->_mfAutostart,
414 const Char8 *ClusterWindowBase::getClassname(void)
416 return "ClusterWindow";
418 OSG_GEN_CONTAINERPTR(ClusterWindow);