summaryrefslogtreecommitdiff
path: root/TAO/CIAO/tools/XML_Helpers/Assembly_Spec.inl
blob: e524761cc92fc4fbd407d8761628af6d9c3b2acb (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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
// $Id$

// ================================================================

ACE_INLINE
CIAO::Assembly_Placement::Node::Node (const char *id)
  : prev_ (0),
    next_ (0),
    id_ (id)
{
}

ACE_INLINE void
CIAO::Assembly_Placement::Node::usagename (const char *un)
{
  this->usagename_ = un;
}

ACE_INLINE const char *
CIAO::Assembly_Placement::Node::usagename () const
{
  return this->usagename_.c_str ();
}

ACE_INLINE const char *
CIAO::Assembly_Placement::Node::id () const
{
  return this->id_.c_str ();
}

// ================================================================

ACE_INLINE
CIAO::Assembly_Placement::Container::Container (const char *id,
                                                unsigned long cardinality)
  : CIAO::Assembly_Placement::Node (id),
    cardinality_ (cardinality)
{
}

ACE_INLINE void
CIAO::Assembly_Placement::Container::destination (const char *des)
{
  this->destination_ = des;
}

ACE_INLINE const char *
CIAO::Assembly_Placement::Container::destination (void) const
{
  if (this->destination_.length () == 0)
    return 0;
  return this->destination_.c_str ();
}

ACE_INLINE unsigned long
CIAO::Assembly_Placement::Container::cardinality (void) const
{
  return this->cardinality_;
}

// ================================================================

ACE_INLINE
CIAO::Assembly_Placement::componentinstantiation::componentinstantiation (const char *id)
  : CIAO::Assembly_Placement::Node (id)
{
}

// ================================================================

ACE_INLINE
CIAO::Assembly_Placement::homeplacement::homeplacement (const char *id,
                                                        unsigned long cardinality)
  : CIAO::Assembly_Placement::Container (id,
                                         cardinality)
{
}

ACE_INLINE const char *
CIAO::Assembly_Placement::homeplacement::componentfileref (void) const
{
  return this->componentfileref_.c_str ();
}

ACE_INLINE void
CIAO::Assembly_Placement::homeplacement::componentfileref (const char *ref)
{
  this->componentfileref_ = ref;
}

ACE_INLINE const char *
CIAO::Assembly_Placement::homeplacement::rtpolicyset_ref (void) const
{
  if (this->rtpolicyset_ref_.length () == 0)
    return 0;
  return this->rtpolicyset_ref_.c_str ();
}

ACE_INLINE void
CIAO::Assembly_Placement::homeplacement::rtpolicyset_ref (const char *ref)
{
  this->rtpolicyset_ref_ = ref;
}

// ================================================================

ACE_INLINE
CIAO::Assembly_Placement::hostcollocation::hostcollocation (const char *id,
                                                            unsigned long cardinality)
  : CIAO::Assembly_Placement::Container (id, cardinality)
{
}

// ================================================================

ACE_INLINE
CIAO::Assembly_Placement::processcollocation::processcollocation (const char *id,
                                                                  unsigned long cardinality)
  : CIAO::Assembly_Placement::Container (id, cardinality)
{
}

ACE_INLINE void
CIAO::Assembly_Placement::processcollocation::rtcad_filename (const char *fn)
{
  this->rtcad_filename_ = fn;
}

ACE_INLINE const char *
CIAO::Assembly_Placement::processcollocation::rtcad_filename () const
{
  if (this->rtcad_filename_.length () == 0)
    return 0;
  return this->rtcad_filename_.c_str ();
}

// ================================================================

ACE_INLINE
CIAO::Assembly_Placement::Visitor::Visitor (void)
{
}

// ================================================================

ACE_INLINE
CIAO::Assembly_Connection::IF_Resolver_Info::IF_Resolver_Info
(CIAO::Assembly_Connection::IF_Resolution_Method type,
 const char *info,
 CIAO::Assembly_Connection::IF_Resolver_Info *nested)
  : resolver_type_ (type),
    resolver_info_ (info),
    nested_resolver_ (nested),
    traderquery_ (0)
{
}

ACE_INLINE
CIAO::Assembly_Connection::IF_Resolver_Info::~IF_Resolver_Info (void)
{
  delete this->nested_resolver_;
}

ACE_INLINE CIAO::Assembly_Connection::IF_Resolution_Method
CIAO::Assembly_Connection::IF_Resolver_Info::resolver_type (void) const
{
  return this->resolver_type_;
}

ACE_INLINE const char *
CIAO::Assembly_Connection::IF_Resolver_Info::resolver_info (void) const
{
  return this->resolver_info_.c_str ();
}

ACE_INLINE CIAO::Assembly_Connection::IF_Resolver_Info *
CIAO::Assembly_Connection::IF_Resolver_Info::nested_resolver (void)
{
  return this->nested_resolver_;
}

ACE_INLINE void *
CIAO::Assembly_Connection::IF_Resolver_Info::traderquery (void) const
{
  return this->traderquery_;
}

// ================================================================

ACE_INLINE
CIAO::Assembly_Connection::_CII::_CII (void)
  : type_ (CIAO::Assembly_Connection::INVALID_CONN),
    component_ (0),
    interface_ (0)
{
}

ACE_INLINE
CIAO::Assembly_Connection::_CII::~_CII (void)
{
  // Do not manage memory here.  We will try to manage the memory
  // explicitly for now.
#if 0
  delete this->component_;
  delete this->interface_;
#endif /* 0 */
}

// ================================================================

ACE_INLINE
CIAO::_ASpec::_ASpec (void)
  : partitioning_ ("CIAO_ROOT_PARTITIONING",
                   0)

{
}