diff options
Diffstat (limited to 'modules/CIAO/ciao/Client_init.h')
-rw-r--r-- | modules/CIAO/ciao/Client_init.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/modules/CIAO/ciao/Client_init.h b/modules/CIAO/ciao/Client_init.h new file mode 100644 index 00000000000..d62ad6a0757 --- /dev/null +++ b/modules/CIAO/ciao/Client_init.h @@ -0,0 +1,70 @@ +// -*- C++ -*- +// +// $Id$ + +/** + * @file Client_init.h + * + * Initializing CIAO client side ORB, if they need to. + * + * @author Nanbor Wang <nanbor@cs.wustl.edu> + */ + +#ifndef CIAO_CLIENT_INIT_H +#define CIAO_CLIENT_INIT_H + +#include /**/ "ace/pre.h" + +#include "CIAO_Client_Export.h" + +#if !defined ACE_LACKS_PRAGMA_ONCE +#pragma once +#endif /* ! ACE_LACKS_PRAGMA_ONCE */ + +#include "ace/Hash_Map_Manager_T.h" +#include "tao/orbconf.h" +#include "tao/AnyTypeCode/Any.h" +#include "ccm/CCM_StandardConfiguratorC.h" + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL +namespace CORBA +{ + class ORB; + typedef ORB *ORB_ptr; +} +TAO_END_VERSIONED_NAMESPACE_DECL + +namespace CIAO +{ + /** + * The initialize routine for any clients that need to access + * component. This routine now simply registers various valuetype + * factories defined in CIAO_Component.pidl. Currently, this method + * should be call right after ORB initialization but we should try + * to register these stuff automatically. + */ + CIAO_CLIENT_Export int Client_init (CORBA::ORB_ptr o); + + namespace Utility + { + typedef ACE_Hash_Map_Manager_Ex<ACE_CString, + CORBA::Any, + ACE_Hash<ACE_CString>, + ACE_Equal_To<ACE_CString>, + ACE_Null_Mutex> CONFIGVALUE_MAP; + + void CIAO_CLIENT_Export build_config_values_map (CONFIGVALUE_MAP &map, + const ::Components::ConfigValues &config); + + void CIAO_CLIENT_Export build_config_values_sequence (::Components::ConfigValues &config, + const CONFIGVALUE_MAP &map); + + /*void CIAO_SERVER_Export print_config_values (const ::Components::ConfigValues &config, + ACE_Log_Priority prio, + const char * prefix);*/ + } +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_CLIENT_INIT_H */ |