Changeset 157 for osgVisual/src/dataIO
- Timestamp:
- Nov 14, 2010, 5:13:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/dataIO/visual_dataIO.cpp
r144 r157 24 24 25 25 initialized = false; 26 clusterMode = osgVisual::dataIO_cluster::STANDALONE; 27 // Create Transport-Container: 28 slotContainer = new osgVisual::dataIO_transportContainer(); 26 29 } 27 30 … … 51 54 viewer = viewer_; 52 55 56 // Process XML configuration 57 if(!processXMLConfiguration()) 58 OSG_FATAL << "ERROR: visual_dataIO::init() - Failed to initialize dataIO!"; 59 53 60 // Parse operating Mode 54 61 if (arguments_.read("-m")) … … 56 63 OSG_NOTIFY( osg::ALWAYS ) << "Configure osgVisual as MASTER" << std::endl; 57 64 clusterMode = osgVisual::dataIO_cluster::MASTER; 58 // Create Container:59 slotContainer = new osgVisual::dataIO_transportContainer();60 65 } 61 66 else if (arguments_.read("-s")) … … 63 68 OSG_NOTIFY( osg::ALWAYS ) << "Configure osgVisual as SLAVE" << std::endl; 64 69 clusterMode = osgVisual::dataIO_cluster::SLAVE; 65 slotContainer = NULL; // Slave only recieves container, therefor set this Pointer null.70 slotContainer = NULL; // Slave only recieves container, therefor set this Pointer NULL (created instance will be deleted because it is an auto pointer). 66 71 } 67 72 else … … 69 74 OSG_NOTIFY( osg::ALWAYS ) << "Configure osgVisual as STANDALONE" << std::endl; 70 75 clusterMode = osgVisual::dataIO_cluster::STANDALONE; 71 // Create Container:72 slotContainer = new osgVisual::dataIO_transportContainer();73 76 } 74 77 … … 110 113 } 111 114 115 bool visual_dataIO::processXMLConfiguration() 116 { 117 118 return true; 119 } 120 112 121 void visual_dataIO::shutdown() 113 122 {
Note: See TracChangeset
for help on using the changeset viewer.