Changeset 1198 for trunk/Source/System/Cluster/Server/OSGClusterServer.cpp
- Timestamp:
- 05/05/08 07:12:19 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/Cluster/Server/OSGClusterServer.cpp
r1194 r1198 95 95 * 96 96 */ 97 ClusterServer::ClusterServer( Window Ptrwindow,98 const std::string &serviceName,99 const std::string &connectionType,100 const std::string &address,101 UInt32 servicePort,102 const std::string &serviceGroup):97 ClusterServer::ClusterServer( Window *window, 98 const std::string &serviceName, 99 const std::string &connectionType, 100 const std::string &address, 101 UInt32 servicePort, 102 const std::string &serviceGroup): 103 103 _window(window), 104 104 _connection(NULL), … … 140 140 { 141 141 //OSG::subRefX(_window); 142 _window = N ullFC;142 _window = NULL; 143 143 144 144 try … … 224 224 { 225 225 // get aspect ownership 226 if(_clusterWindow != N ullFC)226 if(_clusterWindow != NULL) 227 227 { 228 228 _aspect = _clusterWindow->getNetwork()->getAspect(); … … 231 231 } 232 232 233 _clusterWindow= N ullFC;233 _clusterWindow= NULL; 234 234 235 235 // destroy connection … … 290 290 { 291 291 // do we have a cluster window? 292 if(_clusterWindow ==NullFC)292 if(_clusterWindow == NULL) 293 293 { 294 294 do … … 297 297 _aspect->receiveSync(*_connection,applyToChangelist); 298 298 } 299 while(_clusterWindow ==NullFC);299 while(_clusterWindow == NULL); 300 300 301 301 // get server id … … 387 387 */ 388 388 389 Window PtrClusterServer::getClusterWindow(void)389 Window *ClusterServer::getClusterWindow(void) 390 390 { 391 391 return _clusterWindow; … … 395 395 */ 396 396 397 Window PtrClusterServer::getServerWindow(void)397 Window *ClusterServer::getServerWindow(void) 398 398 { 399 399 return _window; … … 404 404 */ 405 405 406 bool ClusterServer::windowChanged( const FieldContainerPtr &fcp,407 RemoteAspect *)408 { 409 if(_clusterWindow != N ullFC)406 bool ClusterServer::windowChanged(FieldContainer * const fcp, 407 RemoteAspect * ) 408 { 409 if(_clusterWindow != NULL) 410 410 return true; 411 411 412 ClusterWindow Ptr window = dynamic_cast<ClusterWindowPtr>(fcp);412 ClusterWindow *window = dynamic_cast<ClusterWindow *>(fcp); 413 413 414 414 if(window->getMFServers()->size())
