ariba::utility::ServerVis Class Reference

#include <source/ariba/utility/visual/ServerVis.h>

Inherited by ariba::utility::DddVis, and ariba::utility::OvlVis.

List of all members.

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

Detailed Description

Definition at line 57 of file ServerVis.h.


Member Typedef Documentation

Node colors.


Member Enumeration Documentation

Enumerator:
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.

Enumerator:
NODE_COLORS_GREY 
NODE_COLORS_GREEN 
NODE_COLORS_RED 

Definition at line 90 of file ServerVis.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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
void ariba::utility::ServerVis::sendSocket ( const string &  msg  )  [protected]
ariba::utility::ServerVis::use_logging_h ( ServerVis   )  [private]
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.


Member Data Documentation

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().


The documentation for this class was generated from the following files:

Generated on Fri Dec 10 11:09:25 2010 for Ariba by  doxygen 1.6.1