
Static Public Member Functions | |
| static void | main (String args[]) |
| static void | setDefault (XMLTreeNode node_root, String in_type, String in_name) |
Static Package Attributes | |
| static String | strIOR |
| static String | curl |
| static String | curl_allComponents |
| static ORB | orb |
Static Private Attributes | |
| static Logger | m_logger |
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"
| static void com::cosylab::cdb::CDBDefault::main | ( | String | args[] | ) | [inline, static] |
| 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.
| 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. |
References curl, curl_allComponents, com::cosylab::CDB::WDALOperations::get_WDAO_Servant(), com::cosylab::cdb::jdal::XMLTreeNode::getFieldMap(), com::cosylab::cdb::jdal::XMLTreeNode::getNodesMap(), m_logger, orb, com::cosylab::CDB::WDAOOperations::set_string(), and strIOR.
Referenced by main().
String com::cosylab::cdb::CDBDefault::curl [static, package] |
Referenced by main(), and setDefault().
String com::cosylab::cdb::CDBDefault::curl_allComponents [static, package] |
Referenced by main(), and setDefault().
Logger com::cosylab::cdb::CDBDefault::m_logger [static, private] |
Referenced by main(), and setDefault().
ORB com::cosylab::cdb::CDBDefault::orb [static, package] |
Referenced by main(), and setDefault().
String com::cosylab::cdb::CDBDefault::strIOR [static, package] |
Referenced by main(), and setDefault().
1.6.2