diff options
author | jules <jules@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-08-30 17:36:24 +0000 |
---|---|---|
committer | jules <jules@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-08-30 17:36:24 +0000 |
commit | 5162ad3bb101616d0af9acb6de6ba6add8cbea29 (patch) | |
tree | 030b3250babc0630c5f802dc409ce47888d09d63 | |
parent | f038c2cc16f5c0c04b146e4bd3fa48a26916e2e0 (diff) | |
download | ATCD-5162ad3bb101616d0af9acb6de6ba6add8cbea29.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/CIAO/DAnCE/Config_Handlers/BaseTypes_Handler.cpp | 20 | ||||
-rw-r--r-- | TAO/CIAO/DAnCE/Config_Handlers/BaseTypes_Handler.h | 61 |
2 files changed, 81 insertions, 0 deletions
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/BaseTypes_Handler.cpp b/TAO/CIAO/DAnCE/Config_Handlers/BaseTypes_Handler.cpp new file mode 100644 index 00000000000..326ac345649 --- /dev/null +++ b/TAO/CIAO/DAnCE/Config_Handlers/BaseTypes_Handler.cpp @@ -0,0 +1,20 @@ +// $Id$ + +#include "BaseTypes_Handler.h" + +CIAO::Config_Handlers::BaseTypes_Handler::BaseTypes_Handler() +{} +CIAO::Config_Handlers::BaseTypes_Handler::~BaseTypes_Handler() +{} + +///This method takes a <CORBA::string> and an +///<XMLSchema::string> and stores the value from +///the <XMLSchema::string> in the <CORBA::string>. +void +CIAO::Config_Handlers::get_string (Corba::string& str, + XMLSchema::string& desc) +{ + //Convert duplicate the XMLSchema::string and + //assign it to the Corba::string. + str = CORBA::string_dup(desc.c_str()); +} diff --git a/TAO/CIAO/DAnCE/Config_Handlers/BaseTypes_Handler.h b/TAO/CIAO/DAnCE/Config_Handlers/BaseTypes_Handler.h new file mode 100644 index 00000000000..d9ce9729de4 --- /dev/null +++ b/TAO/CIAO/DAnCE/Config_Handlers/BaseTypes_Handler.h @@ -0,0 +1,61 @@ +//================================================ +/** + * @file BaseTypes_Handler.h + * + * $Id$ + * + * @author Jules White <jules@dre.vanderbilt.edu> + */ +//================================================ + +#ifndef BaseTypes_HANDLER_H +#define BaseTypes_HANDLER_H + +#include /**/ "ace/pre.h" + +#include "ciao/DeploymentC.h" +#include "Basic_Deployment_Data.hpp" + + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + + +namespace CIAO{ + + namespace Config_Handlers{ + + + /* + * @class BaseTypes_Handler + * + * @brief Handler class for <ComponentInterfaceDescription> types. + * + * This class defines handler methods to map values from + * XSC Any objects, parsed from the descriptor files, to the + * corresponding CORBA IDL Any type. + * + */ + + class BaseTypes_Handler{ + + public: + + BaseTypes_Handler(); + virtual ~BaseTypes_Handler(); + + ///This method takes a <CORBA::string> and an + ///<XMLSchema::string> and stores the value from + ///the <XMLSchema::string> in the <CORBA::string>. + static void get_string (Corba::string& str, + XMLSchema::string& desc); + + }; + + } + +} +#include /**/ "ace/post.h" +#endif /* BaseTypes_HANDLER_H */ + |