summaryrefslogtreecommitdiff
path: root/TAO/CIAO/tools/Config_Handlers/Property_Handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/tools/Config_Handlers/Property_Handler.h')
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Property_Handler.h85
1 files changed, 47 insertions, 38 deletions
diff --git a/TAO/CIAO/tools/Config_Handlers/Property_Handler.h b/TAO/CIAO/tools/Config_Handlers/Property_Handler.h
index ae6dee192da..07044faed8e 100644
--- a/TAO/CIAO/tools/Config_Handlers/Property_Handler.h
+++ b/TAO/CIAO/tools/Config_Handlers/Property_Handler.h
@@ -1,11 +1,11 @@
//================================================
/**
- * @file Property_Handler.h
- *
- * $Id$
- *
- * @author Jules White <jules@dre.vanderbilt.edu>
- */
+* @file Property_Handler.h
+*
+* $Id$
+*
+* @author Jules White <jules@dre.vanderbilt.edu>
+*/
//================================================
#ifndef CIAO_CONFIG_HANDLERS_PROPERTY_HANDLER_H
@@ -14,6 +14,7 @@
#include /**/ "ace/pre.h"
#include "Config_Handlers_Export.h"
+#include "Utils/Functors.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -21,42 +22,50 @@
namespace Deployment
{
- struct Property;
+struct Property;
+class Properties;
}
namespace CIAO
{
- namespace Config_Handlers
- {
- class Property;
-
- /*
- * @class Property_Handler
- *
- * @brief Handler class for <CCMComponentPortDescription> types.
- *
- * This class defines handler methods to map values from
- * XSC objects, parsed from the descriptor files, to the
- * corresponding CORBA IDL type for the schema element.
- *
- */
-
- class Config_Handlers_Export Property_Handler
- {
- public:
- Property_Handler (void);
- virtual ~Property_Handler (void);
-
- /// This method maps the values from the XSC object
- /// <CIAO::Config_Handlers::Property> to the CORBA IDL type
- /// <Deployment::Property>.
- static void get_property (const Property& desc,
- ::Deployment::Property& toconfig);
- static Property get_property (
- const ::Deployment::Property& src);
- };
-
- }
+namespace Config_Handlers
+{
+class Property;
+
+/*
+* @class Property_Handler
+*
+* @brief Handler class for <CCMComponentPortDescription> types.
+*
+* This class defines handler methods to map values from
+* XSC objects, parsed from the descriptor files, to the
+* corresponding CORBA IDL type for the schema element.
+*
+*/
+
+class Config_Handlers_Export Property_Handler
+{
+public:
+Property_Handler (void);
+virtual ~Property_Handler (void);
+
+typedef Sequence_Iterator< const ::Deployment::Properties, const ::Deployment::Property > prop_iter;
+
+/// This method maps the values from the XSC object
+/// <CIAO::Config_Handlers::Property> to the CORBA IDL type
+/// <Deployment::Property>.
+static void get_property (const Property& desc,
+::Deployment::Property& toconfig);
+static Property get_property (
+const ::Deployment::Property& src);
+};
+
+typedef Sequence_Handler < Property,
+::Deployment::Properties,
+::Deployment::Property,
+Property_Handler::get_property> Property_Functor;
+
+}
}
#include /**/ "ace/post.h"