Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages | Examples

ColCOWS::NodeDesc Class Reference

#include <ColCOWS_NodeDesc.hh>

Inheritance diagram for ColCOWS::NodeDesc:

Inheritance graph
[legend]
Collaboration diagram for ColCOWS::NodeDesc:

Collaboration graph
[legend]
List of all members.

Detailed Description

Node Description.

Unlike the IDL description, the class NodeDesc does'nt contain the hierarchy of the node.

Definition at line 47 of file ColCOWS_NodeDesc.hh.

Public Member Functions

 NodeDesc ()
 constructor
 NodeDesc (const IdlNodeDesc &idl_node_desc)
 idl constructor
virtual ~NodeDesc ()
 destructor
virtual void printself (std::ostream &stream, int indent=0) const
 print self
void getObjectDescVec (ExtObjectDescVec &object_desc_vec, std::string obj_id="", std::string obj_kind="") const
 get a vector of object descriptions on the node
void convertFromIdl (const IdlNodeDesc &idl_node_desc)
 idl import
void convertToIdl (IdlNodeDesc &idl_node_desc) const
 idl export
void updateIdl (IdlNodeDesc &idl_node_desc) const
 update idl description
void addReference (std::string obj_id, std::string obj_kind, CORBA::Object *ref)
 set a reference for this node
CORBA::Object * getReference (std::string obj_id) const
 get a reference from this node
void clearReferences ()
 clear all the references of this node
std::string getKind () const
 get node kind
void setKind (std::string node_kind)
 set node kind
unsigned long getNumNode () const
 get node number
void setNumNode (unsigned long num_node)
 set node number
unsigned long getMaxDescendant () const
 get max node number of the descendants
void setMaxDescendant (unsigned long max_descendant)
 set max node number of the descendants
bool getActivated () const
 get activated
void setActivated (bool activated)
 set activated

Protected Attributes

std::string _node_kind
 Kind of the Workspace node ("proxy", "node", "master" ...).
unsigned long _num_node
 Number of the node among the node hierarchy.
unsigned long _max_descendant
 Max number of its descendants among the node hierarchy.
bool _activated
 Is the node activated.


Member Function Documentation

void ColCOWS::NodeDesc::convertFromIdl const IdlNodeDesc idl_node_desc  ) 
 

idl import

This method build the node description according to an IDL description. Unlike the IDL description, the class NodeDesc does'nt contain the hierarchy of the node *

Definition at line 57 of file ColCOWS_NodeDesc.cc.

References _activated, _max_descendant, _node_kind, _num_node, ColCOWS::ExtObjectDesc::num_node, ColCOWS::ObjectDesc::obj_id, ColCOWS::ObjectDesc::obj_kind, and ColCOWS::ObjectDesc::obj_ref.

void ColCOWS::NodeDesc::convertToIdl IdlNodeDesc idl_node_desc  )  const
 

idl export

This method build an IDL description according to the class NodeDesc. Unlike the IDL description, the class NodeDesc does'nt contain the hierarchy of the node *

Definition at line 83 of file ColCOWS_NodeDesc.cc.

References _activated, _max_descendant, _node_kind, _num_node, ColCOWS::ExtObjectDesc::num_node, ColCOWS::ObjectDesc::obj_id, ColCOWS::ObjectDesc::obj_kind, and ColCOWS::ObjectDesc::obj_ref.

void ColCOWS::NodeDesc::updateIdl IdlNodeDesc idl_node_desc  )  const
 

update idl description

This method update the listof the CORBA objects in th IDL description according to the class NodeDesc. Unlike the IDL description, the class NodeDesc does'nt contain the hierarchy of the node *

Definition at line 111 of file ColCOWS_NodeDesc.cc.

References _node_kind, _num_node, ColCOWS::ObjectDesc::obj_id, ColCOWS::ObjectDesc::obj_kind, and ColCOWS::ObjectDesc::obj_ref.

Referenced by ColCOWS::NodeServant::activate().


The documentation for this class was generated from the following files:
Generated on Tue Jun 21 12:56:02 2005 for ColCOWS by  doxygen 1.4.1