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

com::cosylab::cdb::CDBDefault Class Reference

List of all members.

Static Public Member Functions

void main (String args[])
void setDefault (XMLTreeNode node_root, String in_type, String in_name)

Static Package Attributes

String strIOR
String curl
String curl_allComponents
ORB orb

Static Private Attributes

Logger m_logger

Detailed Description

Allow switching the default component of a given IDL type. This is useful if there is only one component instance per type, but the CDB contains two entries, one for the real component, and one for a simulator. The client (test code or real component in the system) is then not affected by this switching, because it always uses the IDL type to retrieve the component.

Sets Default=true the given component and sets Default=false the other components with the same type. Assumes the curl of the components = "MACI/Components"

Author:
cparedes


Member Function Documentation

void com::cosylab::cdb::CDBDefault::main String  args[]  )  [inline, static]
 

void com::cosylab::cdb::CDBDefault::setDefault XMLTreeNode  node_root,
String  in_type,
String  in_name
[inline, static]
 

Recursively go throw the xml finding nodes with the same Type. If the type match, compares the Name. If is the same name, sets the Default=true, in the other case sets the Default attribute to false.

Parameters:
node_root the root of all components xml .
in_type the type of the component.
in_name the name of the component to set up default.


Member Data Documentation

String com::cosylab::cdb::CDBDefault::curl [static, package]
 

String com::cosylab::cdb::CDBDefault::curl_allComponents [static, package]
 

Logger com::cosylab::cdb::CDBDefault::m_logger [static, private]
 

ORB com::cosylab::cdb::CDBDefault::orb [static, package]
 

String com::cosylab::cdb::CDBDefault::strIOR [static, package]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:12:13 2009 for ACS Java API by doxygen 1.3.8