summaryrefslogtreecommitdiff
path: root/TAO/CIAO/DAnCE/Old_Config_Handlers/PCI_Handler.cpp
blob: e26a73dab273729ad8fb59299cf18870a693f5a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// $Id$

#include "tao/Exception.h"
#include "ace/Auto_Ptr.h"
#include "ace/Log_Msg.h"
#include "CompImplDesc_Handler.h"
#include "PCI_Handler.h"
#include "Utils.h"
#include "Process_Element.h"

BEGIN_DEPLOYMENT_NAMESPACE

/// handle the package configuration and populate it
void PCI_Handler::process_PackagedComponentImplementation
                      (::Deployment::PackagedComponentImplementation &pci)
{
  for (DOMNode* node = this->iter_->nextNode();
       node != 0;
       node = this->iter_->nextNode())
    {
      XStr node_name (node->getNodeName());

      if (node_name == XStr 
            (ACE_TEXT ("Deployment:PackagedComponentImplementation")))
        {
        }
      else if
        (CIAO::Config_Handler::Utils::process_string 
              (this->iter_, node_name, "name", pci.name));
      else if
        (process_element_remote<Deployment::ComponentImplementationDescription,
                                CompImplDesc_Handler>
           (this->doc_, this->iter_, node,
            node_name, "referencedImplementation", 
            pci.referencedImplementation,
            &CompImplDesc_Handler::process_ComponentImplementationDescription, 
            this->id_map_));
      else
        {
          this->iter_->previousNode ();
          return;
        }
    }
  return;
}

END_DEPLOYMENT_NAMESPACE