DAnCE  ..
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs | Functions
DAnCE::Utility Namespace Reference

Typedefs

typedef
ACE_Hash_Map_Manager_Ex
< ACE_CString, CORBA::Any,
ACE_Hash< ACE_CString >
, ACE_Equal_To< ACE_CString >
, ACE_Null_Mutex
PROPERTY_MAP
 
typedef
ACE_Refcounted_Auto_Ptr
< PROPERTY_MAP,
TAO_SYNCH_MUTEX
PMAP_PTR
 

Functions

void build_property_map (PROPERTY_MAP &map, const ::Deployment::Properties &prop)
 
void build_property_sequence (::Deployment::Properties &prop, const PROPERTY_MAP &pmap)
 
int write_IOR (const ACE_TCHAR *pathname, const char *IOR)
 Write a string (usually a stringified IOR) to a file designated by the pathname. The file named will always get overwritten. More...
 
void append_properties (::Deployment::Properties &dest, const ::Deployment::Properties &src)
 
template<>
bool get_property_value (const char *name, const PROPERTY_MAP &properties, bool &val)
 
template<>
bool get_property_value (const char *name, const PROPERTY_MAP &properties, const char *&val)
 
template<>
bool get_property_value (const char *name, const ::Deployment::Properties &properties, const char *&val)
 
template<>
bool get_satisfierproperty_value (const char *name, const ::Deployment::SatisfierProperties &properties, const char *&val)
 
bool get_resource_value (const char *type, const ::Deployment::Resources &resources,::Deployment::Resource &val)
 
template<>
bool get_property_value (const char *name, const ::Deployment::Properties &properties, bool &val)
 
template<char * >
void update_property_value (const char *name,::Deployment::Properties &properties, const char *&val)
 
const char * get_instance_type (const ::Deployment::Properties &prop)
 
bool throw_exception_from_any (const CORBA::Any &excep)
 
CORBA::Any * create_any_from_user_exception (const CORBA::UserException &ex)
 
DANCE_STUB_Export bool stringify_exception_from_any (const CORBA::Any &excep, std::string &result)
 
template<class T >
bool get_property_value (const char *name, const PROPERTY_MAP &properties, T &val)
 
template<class T >
bool get_property_value (const char *name, const ::Deployment::Properties &properties, T &val)
 
template<class T >
bool get_satisfierproperty_value (const char *name, const ::Deployment::SatisfierProperties &properties, T &val)
 
template<class T >
void update_property_value (const char *name,::Deployment::Properties &properties, const T &val)
 
template<typename EXCEPTION >
void test_and_set_exception (bool &flag, EXCEPTION &exception, const char *name, const char *reason)
 
template<typename EXCEPTION >
bool extract_and_throw_exception (const CORBA::Any &excep)
 Attempt to extract the any into EXCEPTION type and throw. Returns 'false' if extraction fails. More...
 
template<typename EXCEPTION >
CORBA::Any * create_any_from_exception (const EXCEPTION &ex)
 
template<typename EXCEPTION >
bool stringify_exception (const CORBA::Any &excep, std::string &result)
 
template<>
DANCE_STUB_Export bool get_property_value (const char *name, const PROPERTY_MAP &properties, bool &val)
 
template<>
DANCE_STUB_Export bool get_property_value (const char *name, const PROPERTY_MAP &properties, const char *&val)
 
template<>
DANCE_STUB_Export bool get_property_value (const char *name, const ::Deployment::Properties &properties, const char *&val)
 
template<>
DANCE_STUB_Export bool get_satisfierproperty_value (const char *name, const ::Deployment::SatisfierProperties &properties, const char *&val)
 
template<>
DANCE_STUB_Export bool get_property_value (const char *name, const ::Deployment::Properties &properties, bool &val)
 
template<char * >
DANCE_STUB_Export void update_property_value (const char *name,::Deployment::Properties &properties, const char *&val)
 

Typedef Documentation

Function Documentation

DANCE_STUB_Export void DAnCE::Utility::append_properties ( ::Deployment::Properties dest,
const ::Deployment::Properties src 
)
DANCE_STUB_Export void DAnCE::Utility::build_property_map ( PROPERTY_MAP &  map,
const ::Deployment::Properties prop 
)
DANCE_STUB_Export void DAnCE::Utility::build_property_sequence ( ::Deployment::Properties prop,
const PROPERTY_MAP &  pmap 
)
template<typename EXCEPTION >
CORBA::Any* DAnCE::Utility::create_any_from_exception ( const EXCEPTION &  ex)
DANCE_STUB_Export CORBA::Any * DAnCE::Utility::create_any_from_user_exception ( const CORBA::UserException ex)
template<typename EXCEPTION >
bool DAnCE::Utility::extract_and_throw_exception ( const CORBA::Any &  excep)

Attempt to extract the any into EXCEPTION type and throw. Returns 'false' if extraction fails.

DANCE_STUB_Export const char * DAnCE::Utility::get_instance_type ( const ::Deployment::Properties prop)
template<class T >
bool DAnCE::Utility::get_property_value ( const char *  name,
const PROPERTY_MAP &  properties,
T &  val 
)
template<class T >
bool DAnCE::Utility::get_property_value ( const char *  name,
const ::Deployment::Properties properties,
T &  val 
)
template<>
bool DAnCE::Utility::get_property_value ( const char *  name,
const PROPERTY_MAP &  properties,
bool &  val 
)
template<>
DANCE_STUB_Export bool DAnCE::Utility::get_property_value ( const char *  name,
const PROPERTY_MAP &  properties,
bool &  val 
)
template<>
DANCE_STUB_Export bool DAnCE::Utility::get_property_value ( const char *  name,
const PROPERTY_MAP &  properties,
const char *&  val 
)
template<>
DANCE_STUB_Export bool DAnCE::Utility::get_property_value ( const char *  name,
const ::Deployment::Properties properties,
const char *&  val 
)
template<>
DANCE_STUB_Export bool DAnCE::Utility::get_property_value ( const char *  name,
const ::Deployment::Properties properties,
bool &  val 
)
template<>
bool DAnCE::Utility::get_property_value ( const char *  name,
const PROPERTY_MAP &  properties,
const char *&  val 
)
template<>
bool DAnCE::Utility::get_property_value ( const char *  name,
const ::Deployment::Properties properties,
const char *&  val 
)
template<>
bool DAnCE::Utility::get_property_value ( const char *  name,
const ::Deployment::Properties properties,
bool &  val 
)
DANCE_STUB_Export bool DAnCE::Utility::get_resource_value ( const char *  type,
const ::Deployment::Resources resources,
::Deployment::Resource val 
)
template<class T >
bool DAnCE::Utility::get_satisfierproperty_value ( const char *  name,
const ::Deployment::SatisfierProperties properties,
T &  val 
)
template<>
DANCE_STUB_Export bool DAnCE::Utility::get_satisfierproperty_value ( const char *  name,
const ::Deployment::SatisfierProperties properties,
const char *&  val 
)
template<>
bool DAnCE::Utility::get_satisfierproperty_value ( const char *  name,
const ::Deployment::SatisfierProperties properties,
const char *&  val 
)
template<typename EXCEPTION >
bool DAnCE::Utility::stringify_exception ( const CORBA::Any &  excep,
std::string &  result 
)
DANCE_STUB_Export bool DAnCE::Utility::stringify_exception_from_any ( const CORBA::Any &  excep,
std::string &  result 
)
template<typename EXCEPTION >
void DAnCE::Utility::test_and_set_exception ( bool &  flag,
EXCEPTION &  exception,
const char *  name,
const char *  reason 
)
DANCE_STUB_Export bool DAnCE::Utility::throw_exception_from_any ( const CORBA::Any &  excep)
template<class T >
void DAnCE::Utility::update_property_value ( const char *  name,
::Deployment::Properties properties,
const T &  val 
)
template<char * >
DANCE_STUB_Export void DAnCE::Utility::update_property_value ( const char *  name,
::Deployment::Properties properties,
const char *&  val 
)
template<char * >
void DAnCE::Utility::update_property_value ( const char *  name,
::Deployment::Properties properties,
const char *&  val 
)
DANCE_STUB_Export int DAnCE::Utility::write_IOR ( const ACE_TCHAR pathname,
const char *  ior 
)

Write a string (usually a stringified IOR) to a file designated by the pathname. The file named will always get overwritten.