diff options
Diffstat (limited to 'TAO/CIAO/DnC')
-rw-r--r-- | TAO/CIAO/DnC/Config_Handlers/IAD_Handler.cpp | 1 | ||||
-rw-r--r-- | TAO/CIAO/DnC/Config_Handlers/IR_Handler.cpp | 33 | ||||
-rw-r--r-- | TAO/CIAO/DnC/Config_Handlers/IR_Handler.h | 8 |
3 files changed, 42 insertions, 0 deletions
diff --git a/TAO/CIAO/DnC/Config_Handlers/IAD_Handler.cpp b/TAO/CIAO/DnC/Config_Handlers/IAD_Handler.cpp index 9dc3f06d37d..9b3c6a60734 100644 --- a/TAO/CIAO/DnC/Config_Handlers/IAD_Handler.cpp +++ b/TAO/CIAO/DnC/Config_Handlers/IAD_Handler.cpp @@ -11,6 +11,7 @@ #include "Requirement_Handler.h" #include "PCI_Handler.h" #include "CompIntrDesc_Handler.h" +#include "NIA_Handler.h" #include "IAD_Handler.h" #include <iostream> diff --git a/TAO/CIAO/DnC/Config_Handlers/IR_Handler.cpp b/TAO/CIAO/DnC/Config_Handlers/IR_Handler.cpp index 70c5458a0de..25dd9bbf71a 100644 --- a/TAO/CIAO/DnC/Config_Handlers/IR_Handler.cpp +++ b/TAO/CIAO/DnC/Config_Handlers/IR_Handler.cpp @@ -20,6 +20,39 @@ namespace CIAO namespace Config_Handler { /* + * Class ResourceUsageKind_Handler + */ + + void ResourceUsageKind_Handler::process_ResourceUsageKind + (DOMNodeIterator *iter, ::Deployment::ResourceUsageKind &ruq) + { + // -- ResourceUsageKind enum + XStr none ("None"); + XStr instance_uses_resource ("InstanceUsesResource"); + XStr resource_uses_instance ("ResourceUsesInstance"); + XStr port_uses_resource ("PortUsesResource"); + XStr resource_uses_port ("ResourceUsesPort"); + + XStr kind_str = XStr (Utils::parse_string (iter)); + if (kind_str == none) + kind = Deployment::None; + else if (kind_str = instance_uses_resource) + kind = Deployment::InstanceUsesResource; + else if (kind_str == resource_uses_instance) + kind = Deployment::ResourceUsesInstance; + else if (kind_str == port_uses_resource) + kind = Deployment::PortUsesResource; + else if (kind_str == resource_uses_port) + kind = Deployment::ResourceUsesPort; + + // Something wrong here.. Throw exception + ACE_DEBUG ((LM_DEBUG, + "Config_Handler::ResourceUsageKind_Handler::process_ResourceUsageKind \ + illegal <ResourceUsageKind> value found \n")); + ACE_THROW (CORBA::INTERNAL ()); + } + + /* * Class Req_Handler */ diff --git a/TAO/CIAO/DnC/Config_Handlers/IR_Handler.h b/TAO/CIAO/DnC/Config_Handlers/IR_Handler.h index ccf3b7fd217..f431c2c4729 100644 --- a/TAO/CIAO/DnC/Config_Handlers/IR_Handler.h +++ b/TAO/CIAO/DnC/Config_Handlers/IR_Handler.h @@ -39,6 +39,14 @@ namespace CIAO { namespace Config_Handler { + class ResourceUsageKind_Handler { + public: + + /// Process elements of type ResourceUsageKind definitions in + /// the description files. + static void process_ResourceUsageKind (DOMNodeIterator *iter, + ::Deployment::ResourceUsageKind &ruq); + }; class Req_Handler { |