summaryrefslogtreecommitdiff
path: root/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h')
-rw-r--r--CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h b/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h
new file mode 100644
index 00000000000..4109fee1a21
--- /dev/null
+++ b/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h
@@ -0,0 +1,60 @@
+//$Id$
+/* -*- C++ -*- */
+/***************************************************************
+ * @file ImplementationInfo.h
+ *
+ * @brief This file defines some helper functions for preparing the
+ * Component ImplementationInfo and properties from
+ * the plan.
+ *
+ * @author Tao Lu <lu@dre.vanderbilt.edu>
+ * @author Gan Deng <dengg@dre.vanderbilt.edu>
+ ***************************************************************/
+
+#ifndef IMPLEMENTATIONIFO_H
+#define IMPLEMENTATIONIFO_H
+#include /**/ "ace/pre.h"
+
+#include "ace/config-all.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "DAnCE/Deployment/Deployment_NodeApplicationC.h"
+#include "ace/SString.h"
+#include "ace/Hash_Map_Manager.h"
+#include "Containers_Info_Map.h"
+#include "CIAO_NAM_Export.h"
+
+namespace CIAO
+{
+ /// This class is a helper class to parse the local deployment plan into the
+ /// NodeImplementationInfo struct.
+ class CIAO_NAM_Export NodeImplementationInfoHandler
+ {
+ public:
+ NodeImplementationInfoHandler (
+ const ::Deployment::DeploymentPlan & plan,
+ const Deployment::ComponentPlans & shared_components);
+
+ Deployment::NodeImplementationInfo *
+ node_impl_info (void) const;
+
+ private:
+ Deployment::DeploymentPlan plan_;
+
+ Deployment::NodeImplementationInfo_var node_info_;
+
+ void populate_server_resource_def (void);
+
+ void populate_container_impl_infos (void);
+
+ /// Helper class that helps populate the container_impl_infos
+ /// field.
+ Containers_Info_Map containers_info_map_;
+ };
+}
+
+#include /**/ "ace/post.h"
+#endif /* IMPLEMENTATIONIFO_H */