Changeset 6822 for source/ariba/utility/visual/OvlVis.h
- Timestamp:
- Nov 4, 2009, 11:20:00 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/visual/OvlVis.h
r6584 r6822 45 45 #include <map> 46 46 #include <boost/utility.hpp> 47 #include <boost/asio.hpp>48 #include "ariba/utility/types/NodeID.h"49 #include "ariba/utility/logging/Logging.h"50 47 #include "ariba/utility/system/Timer.h" 51 48 #include "ariba/utility/misc/Helper.h" 52 49 #include "ariba/utility/misc/KeyMapping.hpp" 53 #include "ariba/utility/ configuration/Configuration.h"50 #include "ariba/utility/visual/ServerVis.h" 54 51 55 52 using std::string; … … 59 56 using std::cout; 60 57 using std::ostringstream; 61 using boost::asio::ip::tcp;62 using ariba::utility::NodeID;63 using ariba::utility::Configuration;64 58 using ariba::utility::KeyMapping; 65 59 using ariba::utility::Timer; … … 68 62 namespace utility { 69 63 70 class OvlVis : p rivate boost::noncopyable {64 class OvlVis : public ServerVis, private boost::noncopyable { 71 65 use_logging_h(OvlVis); 72 66 public: 73 67 static OvlVis& instance() { static OvlVis the_inst; return the_inst; } 74 68 75 typedef enum _NETWORK_ID {76 NETWORK_ID_BASE_COMMUNICATION = 1,77 NETWORK_ID_BASE_OVERLAY = 2,78 NETWORK_ID_EONSON = 3,79 NETWORK_ID_MCPO = 4,80 NETWORK_ID_CLIO = 5,81 NETWORK_ID_VIDEOSTREAM = 6,82 NETWORK_ID_GAME = 7,83 NETWORK_ID_SECURITY = 8,84 } NETWORK_ID;85 86 69 //**************************************************************** 87 70 // Node creation, node connections, status, node deletion, ... … … 162 145 unsigned char b 163 146 ); 164 165 typedef enum _NODE_COLORS {166 NODE_COLORS_GREY,167 NODE_COLORS_GREEN,168 NODE_COLORS_RED,169 } NODE_COLORS;170 147 171 148 /** … … 385 362 protected: 386 363 OvlVis(); 387 ~OvlVis();364 virtual ~OvlVis(); 388 365 389 366 private: 390 367 void sendMessage( const string msg, NETWORK_ID nid ); 391 void sendSocket( const string msg );392 393 /**394 * boost asio stuff for connecting to ovlvis395 */396 boost::asio::io_service io_service;397 tcp::socket socket;398 volatile bool socketOpened;399 368 400 369 typedef pair<NodeID, NodeID> NodePair;
Note:
See TracChangeset
for help on using the changeset viewer.