fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Cluster / Window / Base / OSGClusterWindowBase.inl
blob767b2eff6bd14c2e9a65edde5c809a6e08c4906c
1 /*---------------------------------------------------------------------------*\
2  *                                OpenSG                                     *
3  *                                                                           *
4  *                                                                           *
5  *               Copyright (C) 2000-2013 by the OpenSG Forum                 *
6  *                                                                           *
7  * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net  *
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 ClusterWindow!
47  **                                                                         **
48  *****************************************************************************
49 \*****************************************************************************/
51 OSG_BEGIN_NAMESPACE
55 //! access the type of the class
56 inline
57 OSG::FieldContainerType &ClusterWindowBase::getClassType(void)
59     return _type;
62 //! access the numerical type of the class
63 inline
64 OSG::UInt32 ClusterWindowBase::getClassTypeId(void)
66     return _type.getId();
69 inline
70 OSG::UInt16 ClusterWindowBase::getClassGroupId(void)
72     return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the ClusterWindow::_sfConnectionType field.
79 inline
80 std::string &ClusterWindowBase::editConnectionType(void)
82     editSField(ConnectionTypeFieldMask);
84     return _sfConnectionType.getValue();
87 //! Get the value of the ClusterWindow::_sfConnectionType field.
88 inline
89 const std::string &ClusterWindowBase::getConnectionType(void) const
91     return _sfConnectionType.getValue();
94 //! Set the value of the ClusterWindow::_sfConnectionType field.
95 inline
96 void ClusterWindowBase::setConnectionType(const std::string &value)
98     editSField(ConnectionTypeFieldMask);
100     _sfConnectionType.setValue(value);
102 //! Get the value of the ClusterWindow::_sfConnectionInterface field.
104 inline
105 std::string &ClusterWindowBase::editConnectionInterface(void)
107     editSField(ConnectionInterfaceFieldMask);
109     return _sfConnectionInterface.getValue();
112 //! Get the value of the ClusterWindow::_sfConnectionInterface field.
113 inline
114 const std::string &ClusterWindowBase::getConnectionInterface(void) const
116     return _sfConnectionInterface.getValue();
119 //! Set the value of the ClusterWindow::_sfConnectionInterface field.
120 inline
121 void ClusterWindowBase::setConnectionInterface(const std::string &value)
123     editSField(ConnectionInterfaceFieldMask);
125     _sfConnectionInterface.setValue(value);
127 //! Get the value of the ClusterWindow::_sfConnectionDestination field.
129 inline
130 std::string &ClusterWindowBase::editConnectionDestination(void)
132     editSField(ConnectionDestinationFieldMask);
134     return _sfConnectionDestination.getValue();
137 //! Get the value of the ClusterWindow::_sfConnectionDestination field.
138 inline
139 const std::string &ClusterWindowBase::getConnectionDestination(void) const
141     return _sfConnectionDestination.getValue();
144 //! Set the value of the ClusterWindow::_sfConnectionDestination field.
145 inline
146 void ClusterWindowBase::setConnectionDestination(const std::string &value)
148     editSField(ConnectionDestinationFieldMask);
150     _sfConnectionDestination.setValue(value);
152 //! Get the value of the ClusterWindow::_sfConnectionParams field.
154 inline
155 std::string &ClusterWindowBase::editConnectionParams(void)
157     editSField(ConnectionParamsFieldMask);
159     return _sfConnectionParams.getValue();
162 //! Get the value of the ClusterWindow::_sfConnectionParams field.
163 inline
164 const std::string &ClusterWindowBase::getConnectionParams(void) const
166     return _sfConnectionParams.getValue();
169 //! Set the value of the ClusterWindow::_sfConnectionParams field.
170 inline
171 void ClusterWindowBase::setConnectionParams(const std::string &value)
173     editSField(ConnectionParamsFieldMask);
175     _sfConnectionParams.setValue(value);
177 //! Get the value of the ClusterWindow::_sfServicePort field.
179 inline
180 UInt32 &ClusterWindowBase::editServicePort(void)
182     editSField(ServicePortFieldMask);
184     return _sfServicePort.getValue();
187 //! Get the value of the ClusterWindow::_sfServicePort field.
188 inline
189       UInt32  ClusterWindowBase::getServicePort(void) const
191     return _sfServicePort.getValue();
194 //! Set the value of the ClusterWindow::_sfServicePort field.
195 inline
196 void ClusterWindowBase::setServicePort(const UInt32 value)
198     editSField(ServicePortFieldMask);
200     _sfServicePort.setValue(value);
202 //! Get the value of the ClusterWindow::_sfServiceAddress field.
204 inline
205 std::string &ClusterWindowBase::editServiceAddress(void)
207     editSField(ServiceAddressFieldMask);
209     return _sfServiceAddress.getValue();
212 //! Get the value of the ClusterWindow::_sfServiceAddress field.
213 inline
214 const std::string &ClusterWindowBase::getServiceAddress(void) const
216     return _sfServiceAddress.getValue();
219 //! Set the value of the ClusterWindow::_sfServiceAddress field.
220 inline
221 void ClusterWindowBase::setServiceAddress(const std::string &value)
223     editSField(ServiceAddressFieldMask);
225     _sfServiceAddress.setValue(value);
227 //! Get the value of the ClusterWindow::_sfServiceInterface field.
229 inline
230 std::string &ClusterWindowBase::editServiceInterface(void)
232     editSField(ServiceInterfaceFieldMask);
234     return _sfServiceInterface.getValue();
237 //! Get the value of the ClusterWindow::_sfServiceInterface field.
238 inline
239 const std::string &ClusterWindowBase::getServiceInterface(void) const
241     return _sfServiceInterface.getValue();
244 //! Set the value of the ClusterWindow::_sfServiceInterface field.
245 inline
246 void ClusterWindowBase::setServiceInterface(const std::string &value)
248     editSField(ServiceInterfaceFieldMask);
250     _sfServiceInterface.setValue(value);
252 //! Get the value of the ClusterWindow::_sfInterleave field.
254 inline
255 UInt32 &ClusterWindowBase::editInterleave(void)
257     editSField(InterleaveFieldMask);
259     return _sfInterleave.getValue();
262 //! Get the value of the ClusterWindow::_sfInterleave field.
263 inline
264       UInt32  ClusterWindowBase::getInterleave(void) const
266     return _sfInterleave.getValue();
269 //! Set the value of the ClusterWindow::_sfInterleave field.
270 inline
271 void ClusterWindowBase::setInterleave(const UInt32 value)
273     editSField(InterleaveFieldMask);
275     _sfInterleave.setValue(value);
277 //! Get the value of the ClusterWindow::_sfFrameCount field.
279 inline
280 UInt32 &ClusterWindowBase::editFrameCount(void)
282     editSField(FrameCountFieldMask);
284     return _sfFrameCount.getValue();
287 //! Get the value of the ClusterWindow::_sfFrameCount field.
288 inline
289       UInt32  ClusterWindowBase::getFrameCount(void) const
291     return _sfFrameCount.getValue();
294 //! Set the value of the ClusterWindow::_sfFrameCount field.
295 inline
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.
304 inline
305 const std::string &ClusterWindowBase::getServers(const UInt32 index) const
307     return _mfServers[index];
310 inline
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.
319 inline
320       UInt32  ClusterWindowBase::getServerIds(const UInt32 index) const
322     return _mfServerIds[index];
325 inline
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.
334 inline
335 const std::string &ClusterWindowBase::getAutostart(const UInt32 index) const
337     return _mfAutostart[index];
340 inline
341 MFString           ::reference ClusterWindowBase::editAutostart(const UInt32 index)
343     editMField(AutostartFieldMask, _mfAutostart);
345     return _mfAutostart[index];
349 #ifdef OSG_MT_CPTR_ASPECT
350 inline
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,
361                                 syncMode,
362                                 uiSyncInfo,
363                                 oOffsets);
365     if(FieldBits::NoField != (ServerIdsFieldMask & whichField))
366         _mfServerIds.syncWith(pFrom->_mfServerIds,
367                                 syncMode,
368                                 uiSyncInfo,
369                                 oOffsets);
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,
406                                 syncMode,
407                                 uiSyncInfo,
408                                 oOffsets);
410 #endif
413 inline
414 const Char8 *ClusterWindowBase::getClassname(void)
416     return "ClusterWindow";
418 OSG_GEN_CONTAINERPTR(ClusterWindow);
420 OSG_END_NAMESPACE