Changeset 59
- Timestamp:
- May 30, 2010, 7:50:59 PM (14 years ago)
- Location:
- osgVisual
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/include/cluster/dataIO_cluster.h
r32 r59 38 38 public: 39 39 /** 40 * This enum defines the three modi of the cluster engine. 41 */ 42 enum clustermode {MASTER, SLAVE, STANDALONE}; 43 44 /** 40 45 * \brief Empty constructor. 41 46 * … … 54 59 * 55 60 */ 56 virtual void init( osg::ArgumentParser& arguments_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ) = 0;61 virtual void init( osg::ArgumentParser& arguments_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ) = 0; 57 62 58 63 … … 109 114 virtual bool sendSwapCommand() = 0; 110 115 111 /**112 * This enum defines the three modi of the cluster engine.113 */114 enum clustermode {MASTER, SLAVE, STANDALONE};115 116 116 117 117 -
osgVisual/include/cluster/dataIO_clusterAsioTcpIostream.h
r58 r59 27 27 virtual ~dataIO_clusterAsioTcpIostream(void); 28 28 29 virtual void init( osg::ArgumentParser& arguments_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ );29 virtual void init( osg::ArgumentParser& arguments_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ); 30 30 virtual void shutdown(); 31 31 virtual bool sendTO_OBJvaluesToSlaves() ; -
osgVisual/include/cluster/dataIO_clusterDummy.h
r32 r59 38 38 virtual ~dataIO_clusterDummy(void); 39 39 40 void init( osg::ArgumentParser& arguments_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ );40 void init( osg::ArgumentParser& arguments_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ); 41 41 void shutdown(); 42 42 -
osgVisual/include/cluster/dataIO_clusterUDP.h
r57 r59 48 48 virtual ~dataIO_clusterUDP(void); 49 49 50 void init( osg::ArgumentParser& arguments_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ );50 void init( osg::ArgumentParser& arguments_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ); 51 51 void shutdown(); 52 52 -
osgVisual/src/cluster/dataIO_clusterAsioTcpIostream.cpp
r58 r59 21 21 dataIO_clusterAsioTcpIostream::dataIO_clusterAsioTcpIostream() 22 22 { 23 OSG_NOTIFY( osg::ALWAYS ) << "clusterAsioTcpIostream constructed" << std::endl; 23 24 } 24 25 25 26 dataIO_clusterAsioTcpIostream::~dataIO_clusterAsioTcpIostream(void) 26 27 { 28 OSG_NOTIFY( osg::ALWAYS ) << "clusterAsioTcpIostream destructed" << std::endl; 27 29 } 28 30 29 void dataIO_clusterAsioTcpIostream::init( osg::ArgumentParser& arguments_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ )31 void dataIO_clusterAsioTcpIostream::init( osg::ArgumentParser& arguments_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ) 30 32 { 31 33 OSG_NOTIFY( osg::ALWAYS ) << "clusterAsioTcpIostream init()" << std::endl; 32 34 } 33 35 34 36 void dataIO_clusterAsioTcpIostream::shutdown() 35 37 { 36 38 OSG_NOTIFY( osg::ALWAYS ) << "clusterAsioTcpIostream shutdown()" << std::endl; 37 39 } 38 40 39 41 bool dataIO_clusterAsioTcpIostream::sendTO_OBJvaluesToSlaves() 40 42 { 41 43 OSG_NOTIFY( osg::INFO ) << "clusterAsioTcpIostream sendTO_OBJvaluesToSlaves()" << std::endl; 42 44 return true; 43 45 } … … 45 47 bool dataIO_clusterAsioTcpIostream::readTO_OBJvaluesFromMaster() 46 48 { 49 OSG_NOTIFY( osg::INFO ) << "clusterAsioTcpIostream readTO_OBJvaluesFromMaster()" << std::endl; 47 50 48 51 return true; … … 51 54 void dataIO_clusterAsioTcpIostream::reportAsReadyToSwap() 52 55 { 53 56 OSG_NOTIFY( osg::INFO ) << "clusterAsioTcpIostream reportAsReadyToSwap()" << std::endl; 54 57 } 55 58 56 59 bool dataIO_clusterAsioTcpIostream::waitForSwap() 57 60 { 58 61 OSG_NOTIFY( osg::INFO ) << "clusterAsioTcpIostream waitForSwap()" << std::endl; 59 62 return true; 60 63 } … … 62 65 bool dataIO_clusterAsioTcpIostream::waitForAllReadyToSwap() 63 66 { 64 67 OSG_NOTIFY( osg::INFO ) << "clusterAsioTcpIostream waitForAllReadyToSwap()" << std::endl; 65 68 return true; 66 69 } … … 68 71 bool dataIO_clusterAsioTcpIostream::sendSwapCommand() 69 72 { 70 73 OSG_NOTIFY( osg::INFO ) << "clusterAsioTcpIostream sendSwapCommand()" << std::endl; 71 74 return true; 72 75 } -
osgVisual/src/cluster/dataIO_clusterDummy.cpp
r31 r59 17 17 #include "dataIO_clusterDummy.h" 18 18 19 #include "memoryLeakDetection.h" 19 using namespace osgVisual; 20 20 21 21 dataIO_clusterDummy::dataIO_clusterDummy() … … 29 29 } 30 30 31 void dataIO_clusterDummy::init( osg::ArgumentParser& arguments_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ )31 void dataIO_clusterDummy::init( osg::ArgumentParser& arguments_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ) 32 32 { 33 33 sendContainer = sendContainer_; -
osgVisual/src/cluster/dataIO_clusterUDP.cpp
r31 r59 34 34 } 35 35 36 void dataIO_clusterUDP::init( osg::ArgumentParser& arguments_, osgVisual::dataIO_ transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ )36 void dataIO_clusterUDP::init( osg::ArgumentParser& arguments_, osgVisual::dataIO_cluster::clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ) 37 37 { 38 38 // set Variables -
osgVisual/src/dataIO/visual_dataIO.cpp
r58 r59 77 77 cluster = new dataIO_clusterUDP(); 78 78 #endif 79 cluster->init(arguments_, slotContainer, true, false);79 cluster->init(arguments_, clusterMode, slotContainer, true, false); 80 80 81 81 // Create extLink.
Note: See TracChangeset
for help on using the changeset viewer.