1 | /* -*-c++-*- osgVisual - Copyright (C) 2009-2010 Torben Dannhauer |
---|
2 | * |
---|
3 | * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under |
---|
4 | * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or |
---|
5 | * (at your option) any later version. The full license is in LICENSE file |
---|
6 | * included with this distribution, and on the openscenegraph.org website. |
---|
7 | * |
---|
8 | * osgVisual requires for some proprietary modules a license from the correspondig manufacturer. |
---|
9 | * You have to aquire licenses for all used proprietary modules. |
---|
10 | * |
---|
11 | * This library is distributed in the hope that it will be useful, |
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | * OpenSceneGraph Public License for more details. |
---|
15 | */ |
---|
16 | |
---|
17 | #include "dataIO_clusterENet.h" |
---|
18 | |
---|
19 | using namespace osgVisual; |
---|
20 | |
---|
21 | dataIO_clusterENet::dataIO_clusterENet() |
---|
22 | { |
---|
23 | OSG_NOTIFY( osg::ALWAYS ) << "clusterENet constructed" << std::endl; |
---|
24 | } |
---|
25 | |
---|
26 | dataIO_clusterENet::~dataIO_clusterENet(void) |
---|
27 | { |
---|
28 | OSG_NOTIFY( osg::ALWAYS ) << "clusterENet destructed" << std::endl; |
---|
29 | } |
---|
30 | |
---|
31 | void dataIO_clusterENet::init( osg::ArgumentParser& arguments_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ) |
---|
32 | { |
---|
33 | OSG_NOTIFY( osg::ALWAYS ) << "clusterENet init();" << std::endl; |
---|
34 | |
---|
35 | sendContainer = sendContainer_; |
---|
36 | |
---|
37 | // create ENet implementation object. |
---|
38 | enet_impl = new osgVisual::dataIO_clusterENet_implementation(); |
---|
39 | } |
---|
40 | |
---|
41 | void dataIO_clusterENet::shutdown() |
---|
42 | { |
---|
43 | OSG_NOTIFY( osg::ALWAYS ) << "clusterENet shutdown();" << std::endl; |
---|
44 | } |
---|
45 | |
---|
46 | bool dataIO_clusterENet::sendTO_OBJvaluesToSlaves() |
---|
47 | { |
---|
48 | OSG_NOTIFY( osg::ALWAYS ) << "clusterENet sendTO_OBJvaluesToSlaves()" << std::endl; |
---|
49 | |
---|
50 | return true; |
---|
51 | } |
---|
52 | |
---|
53 | bool dataIO_clusterENet::readTO_OBJvaluesFromMaster() |
---|
54 | { |
---|
55 | OSG_NOTIFY( osg::ALWAYS ) << "clusterENet readTO_OBJvaluesFromMaster()" << std::endl; |
---|
56 | |
---|
57 | return true; |
---|
58 | } |
---|
59 | |
---|
60 | void dataIO_clusterENet::reportAsReadyToSwap() |
---|
61 | { |
---|
62 | OSG_NOTIFY( osg::ALWAYS ) << "clusterENet reportAsReadyToSwap()" << std::endl; |
---|
63 | } |
---|
64 | |
---|
65 | bool dataIO_clusterENet::waitForSwap() |
---|
66 | { |
---|
67 | OSG_NOTIFY( osg::ALWAYS ) << "clusterENet waitForSwap()" << std::endl; |
---|
68 | |
---|
69 | return true; |
---|
70 | } |
---|
71 | |
---|
72 | bool dataIO_clusterENet::waitForAllReadyToSwap() |
---|
73 | { |
---|
74 | OSG_NOTIFY( osg::ALWAYS ) << "clusterENet waitForAllReadyToSwap()" << std::endl; |
---|
75 | |
---|
76 | return true; |
---|
77 | } |
---|
78 | |
---|
79 | bool dataIO_clusterENet::sendSwapCommand() |
---|
80 | { |
---|
81 | OSG_NOTIFY( osg::ALWAYS ) << "clusterENet sendSwapCommand()" << std::endl; |
---|
82 | |
---|
83 | return true; |
---|
84 | } |
---|