summaryrefslogtreecommitdiff
path: root/modules/CIAO/RACE/Input_Adapters/PlanGenerator/PCVisitorBase.inl
blob: f67876013532de21748fc7cfbe61c51acc164898 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/* -*- C++ -*- */

//========================================================================
/*
 *  file  PCVisitorBase.inl
 *
 * $Id$
 *
 *  This file contains the implementation of the sequence-based
 *  PackageConfiguration Visitor functions. By implementing these
 *  we relieve developers of derived classes of the burden of handling
 *  the correct traversal of sequence-based elements. This implementation
 *  used the visit_sequence templatized function to do the heavy lifting.
 *
 *  author Stoyan Paunov <spaunov@isis.vanderbilt.edu
 */
//========================================================================


  /// A whole slew of overloaded routines for different IDL
  /// data types part of the PackageConfiguration.

  ACE_INLINE void PCVisitorBase::Visit
    (Deployment::PackageConfigurations &pcs)
  {
    visit_sequence (pcs, *this);
  }

  //!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!

  //ComponentPackageDescription descendents

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::ComponentPackageDescriptions &cpds)
  {
    visit_sequence (cpds, *this);
  }

  //NOT a member of Deployment

  //ACE_INLINE void PCVisitorBase::Visit
  //    (Deployment::ComponentInterfaceDescriptions &cids)
  //{
  //  visit_sequence (cids, *this);
  //}

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::PackagedComponentImplementations &pcis)
  {
    visit_sequence (pcis, *this);
  }

  //NOT a member of Deployment

  //ACE_INLINE void PCVisitorBase::Visit
  //    (Deployment::ComponentImplementationDescriptions &cids)
  //{
  //  visit_sequence (cids, *this);
  //}

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::ComponentAssemblyDescriptions &cads)
  {
    visit_sequence (cads, *this);
  }

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::SubcomponentInstantiationDescriptions &sids)
  {
    visit_sequence (sids, *this);
  }

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::MonolithicImplementationDescriptions &mids)
  {
    visit_sequence (mids, *this);
  }

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::NamedImplementationArtifacts &nias)
  {
    visit_sequence (nias, *this);
  }

  //ACE_INLINE void PCVisitorBase::Visit
  //    (Deployment::ImplementationArtifactDescriptions &iads)
  //{
  //  visit_sequence (iads, *this);
  //}

  //!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!

  //ComponentPackageReference descendents

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::ComponentPackageReferences &cprs)
  {
    visit_sequence (cprs, *this);
  }

  //!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!

  //properties

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::AssemblyPropertyMappings &apms)
  {
    visit_sequence (apms, *this);
  }

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::Properties &properties)
  {
    visit_sequence (properties, *this);
  }

  //requirements & capabilities

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::Requirements &requirements)
  {
    visit_sequence (requirements, *this);
  }

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::Capabilities &capabilities)
  {
    visit_sequence (capabilities, *this);
  }

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::ImplementationRequirements &irs)
  {
    visit_sequence (irs, *this);
  }

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::ImplementationDependencies &ids)
  {
    visit_sequence (ids, *this);
  }

  //ports and connections

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::AssemblyConnectionDescriptions &acds)
  {
    visit_sequence (acds, *this);
  }

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::SubcomponentPortEndpoints &spes)
  {
    visit_sequence (spes, *this);
  }

  ACE_INLINE void PCVisitorBase::Visit
      (Deployment::ComponentExternalPortEndpoints &cepes)
  {
    visit_sequence (cepes, *this);
  }