DAnCE  ..
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Typedefs | Functions
DAnCE_Utility.h File Reference
#include "dance/DAnCE_stub_export.h"
#include "ace/config-all.h"
#include "ace/Hash_Map_Manager_T.h"
#include "ace/Refcounted_Auto_Ptr.h"
#include "tao/AnyTypeCode/Any.h"
#include "dance/Deployment/Deployment_DeploymentPlanC.h"
#include "dance/Deployment/Deployment_TargetDataC.h"
#include "dance/Logger/Log_Macros.h"
#include "dance/DAnCE_Utility.tpp"

Namespaces

namespace  DAnCE
 
namespace  DAnCE::Utility
 

Typedefs

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

Functions

void DAnCE::Utility::build_property_map (PROPERTY_MAP &map, const ::Deployment::Properties &prop)
 
void DAnCE::Utility::build_property_sequence (::Deployment::Properties &prop, const PROPERTY_MAP &pmap)
 
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<class T >
bool DAnCE::Utility::get_satisfierproperty_value (const char *name, const ::Deployment::SatisfierProperties &properties, T &val)
 
bool DAnCE::Utility::get_resource_value (const char *type, const ::Deployment::Resources &resources,::Deployment::Resource &val)
 
template<class T >
void DAnCE::Utility::update_property_value (const char *name,::Deployment::Properties &properties, const T &val)
 
template<typename EXCEPTION >
void DAnCE::Utility::test_and_set_exception (bool &flag, EXCEPTION &exception, const char *name, const char *reason)
 
const char * DAnCE::Utility::get_instance_type (const ::Deployment::Properties &prop)
 
void DAnCE::Utility::append_properties (::Deployment::Properties &dest, const ::Deployment::Properties &src)
 
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. More...
 
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. More...
 
bool DAnCE::Utility::throw_exception_from_any (const CORBA::Any &excep)
 
template<typename EXCEPTION >
CORBA::Any * DAnCE::Utility::create_any_from_exception (const EXCEPTION &ex)
 
CORBA::Any * DAnCE::Utility::create_any_from_user_exception (const CORBA::UserException &ex)
 
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<>
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_satisfierproperty_value (const char *name, const ::Deployment::SatisfierProperties &properties, const char *&val)
 
template<>
DANCE_STUB_Export bool DAnCE::Utility::get_property_value (const char *name, const ::Deployment::Properties &properties, bool &val)
 
template<char * >
DANCE_STUB_Export void DAnCE::Utility::update_property_value (const char *name,::Deployment::Properties &properties, const char *&val)
 

Detailed Description

Author
William R. Otte wotte.nosp@m.@dre.nosp@m..vand.nosp@m.erbi.nosp@m.lt.ed.nosp@m.u

Utility methods used throughout DAnCE.