diff options
Diffstat (limited to 'modules/CIAO/tools/Config_Handlers/DD_Handler.h')
-rw-r--r-- | modules/CIAO/tools/Config_Handlers/DD_Handler.h | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/modules/CIAO/tools/Config_Handlers/DD_Handler.h b/modules/CIAO/tools/Config_Handlers/DD_Handler.h new file mode 100644 index 00000000000..f3a9e0c60c9 --- /dev/null +++ b/modules/CIAO/tools/Config_Handlers/DD_Handler.h @@ -0,0 +1,114 @@ +// $Id$ +//====================================== +/** +* @file DD_Handler.h +* +* @brief Contains the Domain Descriptior +* Handler +* +* @author Nilabja Roy <nilabjar@dre.vanderbilt.edu> +* +*/ +//====================================== + +#ifndef CIAO_CONFIG_HANDLERS_DD_HANDLER_H +#define CIAO_CONFIG_HANDLERS_DD_HANDLER_H +#include /**/ "ace/pre.h" + +#include "Config_Handlers_Export.h" +#include "ace/Auto_Ptr.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +namespace Deployment +{ +struct Domain; +} + +namespace CIAO +{ +namespace Config_Handlers +{ +class Domain; + +/* +* @class DD_Handler +* +* @brief Handler class for <Domain> +*/ + +class Config_Handlers_Export DD_Handler +{ +public: +class NoDomain {}; + +/** +* @param file The file to be read +*/ +DD_Handler (const ACE_TCHAR *file); + +/** +* @param dmn The Domain structure +*/ +DD_Handler(Domain *dmn); + +/** +* @param dmn The Deployment::Domain structure +*/ +DD_Handler(::Deployment::Domain *dmn); + +/** +*/ +~DD_Handler (void); + +/** +* @brief Returns the const IDL domain +* @return Domain* the IDL domain pointer +*/ + ::Deployment::Domain const *domain_idl (void) const; + +/** +* @brief Returns the IDL domain +* @return Domain* the IDL domain pointer +*/ + ::Deployment::Domain *domain_idl (void); + +/** +* @brief Returns the const XSC domain +* @return Domain* the XSC domain pointer +*/ + Domain const *domain_xsc (void) const; + +/** +* @brief Returns the XSC domain +* @return Domain* the XSC domain pointer +*/ + Domain *domain_xsc (void); + +private: +/** +* @brief builds the domain structure +*/ +bool build_domain (); + +/** +* @brief builds the XSC data structure +*/ +bool build_xsc (); + +/// The Deployment Domain structure +auto_ptr < ::Deployment::Domain > idl_domain_; + +/// The XSC Domain structure +auto_ptr <Domain> domain_; + +/// The return value used +bool retval_; +}; +} +} + +#include /**/ "ace/post.h" +#endif /* DD_HANDLER_H */ |