#include <source/ariba/utility/visual/ServerVis.h>
Inherited by ariba::utility::DddVis, and ariba::utility::OvlVis.
Public Types | |
enum | _NETWORK_ID { NETWORK_ID_BASE_COMMUNICATION = 1, NETWORK_ID_BASE_OVERLAY = 2, NETWORK_ID_EONSON = 3, NETWORK_ID_MCPO = 4, NETWORK_ID_CLIO = 5, NETWORK_ID_VIDEOSTREAM = 6, NETWORK_ID_GAME = 7, NETWORK_ID_SECURITY = 8 } |
enum | _NODE_COLORS { NODE_COLORS_GREY, NODE_COLORS_GREEN, NODE_COLORS_RED } |
Node colors. More... | |
typedef enum ariba::utility::ServerVis::_NETWORK_ID | NETWORK_ID |
typedef enum ariba::utility::ServerVis::_NODE_COLORS | NODE_COLORS |
Node colors. | |
Public Member Functions | |
void | configure (string ip, unsigned int port, unsigned int _color=0) |
string | getNetworkName (NETWORK_ID network) const |
virtual void | visCreate (NETWORK_ID network, NodeID &node, string nodename, string info)=0 |
Create a node. | |
virtual void | visShutdown (NETWORK_ID network, NodeID &node, string info)=0 |
Delete a node. | |
virtual void | visConnect (NETWORK_ID network, NodeID &srcnode, NodeID &destnode, string info)=0 |
Connect two nodes. | |
virtual void | visDisconnect (NETWORK_ID network, NodeID &srcnode, NodeID &destnode, string info)=0 |
Disconnect two nodes. | |
virtual void | visChangeNodeColor (NETWORK_ID network, NodeID &node, unsigned char r, unsigned char g, unsigned char b)=0 |
Change the node color. | |
virtual void | visChangeNodeColor (NETWORK_ID network, NodeID &node, NODE_COLORS color)=0 |
Change the node color. | |
virtual void | visChangeLinkColor (NETWORK_ID network, NodeID &srcnode, NodeID &destnode, unsigned char r, unsigned char g, unsigned char b)=0 |
Change the link color. | |
virtual void | visChangeLinkColor (NETWORK_ID network, NodeID &srcnode, NodeID &destnode, NODE_COLORS color)=0 |
Change the link color. | |
virtual void | visShowNodeLabel (NETWORK_ID network, NodeID &node, string label)=0 |
Show the label of the node. | |
Static Public Attributes | |
static unsigned int | nodecolor = 0 |
Protected Member Functions | |
ServerVis () | |
virtual | ~ServerVis () |
void | sendSocket (const string &msg) |
Private Member Functions | |
use_logging_h (ServerVis) | |
Private Attributes | |
boost::asio::io_service | io_service |
tcp::socket | socket |
volatile bool | socketOpened |
Definition at line 57 of file ServerVis.h.
Node colors.
NETWORK_ID_BASE_COMMUNICATION | |
NETWORK_ID_BASE_OVERLAY | |
NETWORK_ID_EONSON | |
NETWORK_ID_MCPO | |
NETWORK_ID_CLIO | |
NETWORK_ID_VIDEOSTREAM | |
NETWORK_ID_GAME | |
NETWORK_ID_SECURITY |
Definition at line 63 of file ServerVis.h.
Node colors.
Definition at line 90 of file ServerVis.h.
ariba::utility::ServerVis::ServerVis | ( | ) | [protected] |
Definition at line 104 of file ServerVis.cpp.
ariba::utility::ServerVis::~ServerVis | ( | ) | [protected, virtual] |
Definition at line 107 of file ServerVis.cpp.
References socket.
void ariba::utility::ServerVis::configure | ( | string | ip, | |
unsigned int | port, | |||
unsigned int | _color = 0 | |||
) |
Definition at line 72 of file ServerVis.cpp.
References io_service, logging_debug, logging_info, logging_warn, nodecolor, socket, and socketOpened.
string ariba::utility::ServerVis::getNetworkName | ( | NETWORK_ID | network | ) | const |
Definition at line 58 of file ServerVis.cpp.
References NETWORK_ID_BASE_COMMUNICATION, NETWORK_ID_BASE_OVERLAY, NETWORK_ID_CLIO, NETWORK_ID_EONSON, NETWORK_ID_GAME, NETWORK_ID_MCPO, NETWORK_ID_SECURITY, and NETWORK_ID_VIDEOSTREAM.
Referenced by ariba::utility::DddVis::visChangeLinkColor(), ariba::utility::DddVis::visChangeNodeColor(), ariba::utility::DddVis::visConnect(), ariba::utility::DddVis::visCreate(), ariba::utility::DddVis::visDisconnect(), ariba::utility::DddVis::visShowNodeLabel(), and ariba::utility::DddVis::visShutdown().
void ariba::utility::ServerVis::sendSocket | ( | const string & | msg | ) | [protected] |
Definition at line 111 of file ServerVis.cpp.
References logging_debug, logging_warn, socket, and socketOpened.
Referenced by ariba::utility::OvlVis::sendMessage(), and ariba::utility::DddVis::sendMessage().
ariba::utility::ServerVis::use_logging_h | ( | ServerVis | ) | [private] |
Reimplemented in ariba::utility::DddVis, and ariba::utility::OvlVis.
virtual void ariba::utility::ServerVis::visChangeLinkColor | ( | NETWORK_ID | network, | |
NodeID & | srcnode, | |||
NodeID & | destnode, | |||
NODE_COLORS | color | |||
) | [pure virtual] |
Change the link color.
Implemented in ariba::utility::DddVis, and ariba::utility::OvlVis.
virtual void ariba::utility::ServerVis::visChangeLinkColor | ( | NETWORK_ID | network, | |
NodeID & | srcnode, | |||
NodeID & | destnode, | |||
unsigned char | r, | |||
unsigned char | g, | |||
unsigned char | b | |||
) | [pure virtual] |
Change the link color.
Implemented in ariba::utility::DddVis, and ariba::utility::OvlVis.
virtual void ariba::utility::ServerVis::visChangeNodeColor | ( | NETWORK_ID | network, | |
NodeID & | node, | |||
NODE_COLORS | color | |||
) | [pure virtual] |
Change the node color.
Implemented in ariba::utility::DddVis, and ariba::utility::OvlVis.
virtual void ariba::utility::ServerVis::visChangeNodeColor | ( | NETWORK_ID | network, | |
NodeID & | node, | |||
unsigned char | r, | |||
unsigned char | g, | |||
unsigned char | b | |||
) | [pure virtual] |
Change the node color.
Implemented in ariba::utility::DddVis, and ariba::utility::OvlVis.
virtual void ariba::utility::ServerVis::visConnect | ( | NETWORK_ID | network, | |
NodeID & | srcnode, | |||
NodeID & | destnode, | |||
string | info | |||
) | [pure virtual] |
Connect two nodes.
Implemented in ariba::utility::DddVis, and ariba::utility::OvlVis.
virtual void ariba::utility::ServerVis::visCreate | ( | NETWORK_ID | network, | |
NodeID & | node, | |||
string | nodename, | |||
string | info | |||
) | [pure virtual] |
Create a node.
Implemented in ariba::utility::DddVis, and ariba::utility::OvlVis.
virtual void ariba::utility::ServerVis::visDisconnect | ( | NETWORK_ID | network, | |
NodeID & | srcnode, | |||
NodeID & | destnode, | |||
string | info | |||
) | [pure virtual] |
Disconnect two nodes.
Implemented in ariba::utility::DddVis, and ariba::utility::OvlVis.
virtual void ariba::utility::ServerVis::visShowNodeLabel | ( | NETWORK_ID | network, | |
NodeID & | node, | |||
string | label | |||
) | [pure virtual] |
Show the label of the node.
Implemented in ariba::utility::DddVis, and ariba::utility::OvlVis.
virtual void ariba::utility::ServerVis::visShutdown | ( | NETWORK_ID | network, | |
NodeID & | node, | |||
string | info | |||
) | [pure virtual] |
Delete a node.
Implemented in ariba::utility::DddVis, and ariba::utility::OvlVis.
boost::asio::io_service ariba::utility::ServerVis::io_service [private] |
Definition at line 117 of file ServerVis.h.
Referenced by configure().
unsigned int ariba::utility::ServerVis::nodecolor = 0 [static] |
Definition at line 61 of file ServerVis.h.
Referenced by configure(), and ariba::utility::DddVis::visCreate().
tcp::socket ariba::utility::ServerVis::socket [private] |
Definition at line 118 of file ServerVis.h.
Referenced by configure(), sendSocket(), and ~ServerVis().
volatile bool ariba::utility::ServerVis::socketOpened [private] |
Definition at line 119 of file ServerVis.h.
Referenced by configure(), and sendSocket().