summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjules <jules@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-09-09 22:31:54 +0000
committerjules <jules@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-09-09 22:31:54 +0000
commita97c708e5f095e3ffb04bf6adb3ae3888dc1326f (patch)
treef5e76c7f9b9511a83c200bee60b915979952afb7
parent9f563f3b58a08f816837b632da01d7c5f519fe29 (diff)
downloadATCD-a97c708e5f095e3ffb04bf6adb3ae3888dc1326f.tar.gz
Thu Sep 9 14:34:02 2004 Jules White <jules@dre.vanderbilt.edu>
-rw-r--r--TAO/CIAO/DAnCE/Config_Handlers/CEPE_Handler.cpp32
-rw-r--r--TAO/CIAO/DAnCE/Config_Handlers/CEPE_Handler.h64
2 files changed, 96 insertions, 0 deletions
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/CEPE_Handler.cpp b/TAO/CIAO/DAnCE/Config_Handlers/CEPE_Handler.cpp
new file mode 100644
index 00000000000..7b96ae526fb
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Config_Handlers/CEPE_Handler.cpp
@@ -0,0 +1,32 @@
+// $Id$
+
+#include "CEPE_Handler.h"
+#include "Basic_Deployment_Data.hpp"
+#include "ciao/Deployment_DataC.h"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+
+ CEPE_Handler::CEPE_Handler (void)
+ {
+ }
+
+ CEPE_Handler::~CEPE_Handler (void)
+ {
+ }
+
+ ///This method takes a <Deployment::ComponentExternalPortEndpoint>
+ ///and maps the values from the passed in XSC
+ ///ComponentExternalPortEndpoint to its members.
+ void CEPE_Handler::get_ComponentExternalPortEndpoint (
+ Deployment::ComponentExternalPortEndpoint& toconfig,
+ ComponentExternalPortEndpoint& desc)
+ {
+ toconfig.portName = CORBA::string_dup (desc.portName ().c_str ());
+ }
+
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/CEPE_Handler.h b/TAO/CIAO/DAnCE/Config_Handlers/CEPE_Handler.h
new file mode 100644
index 00000000000..631ce4cfbcc
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Config_Handlers/CEPE_Handler.h
@@ -0,0 +1,64 @@
+//==============================================================
+/**
+ * @file CEPE_Handler.h
+ *
+ * $Id$
+ *
+ * @author Jules White <jules@dre.vanderbilt.edu>
+ */
+//================================================================
+
+#ifndef CIAO_CONFIG_HANDLERS_CEPE_HANDLER_H
+#define CIAO_CONFIG_HANDLERS_CEPE_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "Config_Handlers_export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+namespace Deployment
+{
+ struct ComponentExternalPortEndpoint;
+}
+
+namespace CIAO
+{
+
+ namespace Config_Handlers
+ {
+
+ struct ComponentExternalPortEndpoint;
+
+ /*
+ * @class CEPE_Handler
+ *
+ * @brief Handler class for <ComponentExternalPortEndpoint> types.
+ *
+ * This class defines handler methods to map values from
+ * XSC ComponentExternalPortEndpoint objects, parsed from
+ * the descriptor files, to the corresponding CORBA IDL type.
+ *
+ */
+
+ class Config_Handlers_Export CEPE_Handler{
+
+ public:
+
+ CEPE_Handler (void);
+ virtual ~CEPE_Handler (void);
+
+ ///This method takes a <Deployment::ComponentExternalPortEndpoint>
+ ///and maps the values from the passed in XSC
+ ///ComponentExternalPortEndpoint to its members.
+ void get_ComponentExternalPortEndpoint (
+ Deployment::ComponentExternalPortEndpoint& toconfig,
+ ComponentExternalPortEndpoint& desc);
+
+ };
+ }
+}
+
+#include /**/ "ace/post.h"
+#endif /* CIAO_CONFIG_HANDLERS_CEPE_HANDLER_H*/