Ignore:
Timestamp:
Jan 7, 2011, 5:41:45 PM (13 years ago)
Author:
Torben Dannhauer
Message:

XML configuration now works also with dataIO cluster

Location:
osgVisual/trunk/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/include/cluster/dataIO_cluster.h

    r89 r183  
    2222
    2323#include "dataIO_transportContainer.h"
     24
     25// XML Parser
     26#include <stdio.h>
     27#include <libxml/parser.h>
     28#include <libxml/tree.h>
    2429
    2530
     
    4853         *
    4954         */
    50         dataIO_cluster() {}
     55        dataIO_cluster():hardSync(false) {}
    5156
    5257        /**
     
    6166         *
    6267         */
    63         virtual void init( osg::ArgumentParser& arguments_, osgViewer::Viewer* viewer_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ) = 0;
     68        virtual bool init( xmlNode* configurationNode, osgViewer::Viewer* viewer_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool asAscii_) = 0;
    6469
    65         void enableHardSync(bool hardSync_){hardSync=hardSync_;};
     70        virtual bool processXMLConfiguration(xmlNode* clusterConfig_) = 0;
    6671       
    6772        bool isHardSyncEnabled(){return hardSync;};
     
    127132        int port;
    128133        bool hardSync;
     134        bool compressionEnabled; // to indicate if OSGs compression alorithm should be used.
    129135
    130136        /**
  • osgVisual/trunk/include/cluster/dataIO_clusterDummy.h

    r59 r183  
    3838        virtual ~dataIO_clusterDummy(void);
    3939
    40         void init( osg::ArgumentParser& arguments_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ );
     40        bool init(xmlNode* configurationNode, osgViewer::Viewer* viewer_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool asAscii_);
     41        bool processXMLConfiguration(xmlNode* clusterConfig_);
    4142        void shutdown();
    4243
    4344        void init();
    44         bool sendTO_OBJvaluesToSlaves();
     45        bool sendTO_OBJvaluesToSlaves(osg::Matrixd viewMatrix_);
    4546        bool readTO_OBJvaluesFromMaster();
    4647        void reportAsReadyToSwap();
  • osgVisual/trunk/include/cluster/dataIO_clusterENet.h

    r89 r183  
    4444        virtual ~dataIO_clusterENet(void);
    4545
    46         void init( osg::ArgumentParser& arguments_, osgViewer::Viewer* viewer_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ );
     46        bool init(xmlNode* configurationNode, osgViewer::Viewer* viewer_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool asAscii_);
     47        bool processXMLConfiguration(xmlNode* clusterConfig_);
    4748        void shutdown();
    4849
  • osgVisual/trunk/include/dataIO/visual_dataIO.h

    r160 r183  
    2626
    2727// Cluster
     28#include <dataIO_clusterDummy.h>
    2829#ifdef USE_CLUSTER_ASIO_TCP_IOSTREAM
    2930        #include <dataIO_clusterAsioTcpIostream.h>
     
    3233        #include <dataIO_clusterENet.h>
    3334#endif
    34 #ifdef USE_CLUSTER_DUMMY
    35         #include <dataIO_clusterDummy.h>
    36 #endif
     35       
     36
    3737
    3838
    3939//ExtLink
    40 #ifdef USE_EXTLINK_DUMMY
    41         #include <dataIO_extLinkDummy.h>
    42 #endif
     40#include <dataIO_extLinkDummy.h>
    4341#ifdef USE_EXTLINK_VCL
    4442        #include <dataIO_extLinkVCL.h>
     
    135133         * @return : True if parsing was successful.
    136134         */
    137         bool processXMLConfiguration();
     135        bool processXMLConfiguration(xmlNode* extLinkConfig_);
    138136
    139137        /**
Note: See TracChangeset for help on using the changeset viewer.