diff options
author | turkaye <turkaye@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-04-27 22:30:33 +0000 |
---|---|---|
committer | turkaye <turkaye@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-04-27 22:30:33 +0000 |
commit | 4e065bde70250571fecd00913291ede6d287de63 (patch) | |
tree | 61e65df6b42440bbf3fb7681bdcb19abb5f36ede /TAO/CIAO | |
parent | 073326dc6bf7eaafee50150be37445abe6bc7c18 (diff) | |
download | ATCD-4e065bde70250571fecd00913291ede6d287de63.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/CIAO')
-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 { |