File: decaf_ConnectionID_Impl.cc

package info (click to toggle)
babel 0.10.2-1
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 43,932 kB
  • ctags: 29,707
  • sloc: java: 74,695; ansic: 73,142; cpp: 40,649; sh: 18,411; f90: 10,062; fortran: 6,727; python: 6,406; makefile: 3,866; xml: 118; perl: 48
file content (184 lines) | stat: -rw-r--r-- 5,979 bytes parent folder | download
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
// 
// File:          decaf_ConnectionID_Impl.cc
// Symbol:        decaf.ConnectionID-v0.6.3
// Symbol Type:   class
// Babel Version: 0.10.2
// Description:   Server-side implementation for decaf.ConnectionID
// 
// WARNING: Automatically generated; only changes within splicers preserved
// 
// babel-version = 0.10.2
// 
#include "decaf_ConnectionID_Impl.hh"

#line 14 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
// DO-NOT-DELETE splicer.begin(decaf.ConnectionID._includes)
// Put additional includes or other arbitrary code here...
// DO-NOT-DELETE splicer.end(decaf.ConnectionID._includes)
#line 18 "decaf_ConnectionID_Impl.cc"

// user-defined constructor.
void decaf::ConnectionID_impl::_ctor() {
#line 20 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
  // DO-NOT-DELETE splicer.begin(decaf.ConnectionID._ctor)
  // add construction details here
  // DO-NOT-DELETE splicer.end(decaf.ConnectionID._ctor)
#line 26 "decaf_ConnectionID_Impl.cc"
}

// user-defined destructor.
void decaf::ConnectionID_impl::_dtor() {
#line 27 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
  // DO-NOT-DELETE splicer.begin(decaf.ConnectionID._dtor)
  // add destruction details here
  // DO-NOT-DELETE splicer.end(decaf.ConnectionID._dtor)
#line 35 "decaf_ConnectionID_Impl.cc"
}

// static class initializer.
void decaf::ConnectionID_impl::_load() {
#line 34 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
  // DO-NOT-DELETE splicer.begin(decaf.ConnectionID._load)
  // guaranteed to be called at most once before any other method in this class
  // DO-NOT-DELETE splicer.end(decaf.ConnectionID._load)
#line 44 "decaf_ConnectionID_Impl.cc"
}

// user-defined static methods: (none)

// user-defined non-static methods:
/**
 * Method:  initialize[]
 */
void
decaf::ConnectionID_impl::initialize (
  /* in */ ::gov::cca::ComponentID user,
  /* in */ const ::std::string& userPortName,
  /* in */ ::gov::cca::ComponentID provider,
  /* in */ const ::std::string& providerPortName,
  /* in */ ::gov::cca::TypeMap properties ) 
throw () 
{
#line 54 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
  // DO-NOT-DELETE splicer.begin(decaf.ConnectionID.initialize)
  d_provider = provider;
  d_providerPortName = providerPortName;
  d_user = user;
  d_userPortName = userPortName; 
  d_properties = properties;
  // DO-NOT-DELETE splicer.end(decaf.ConnectionID.initialize)
#line 70 "decaf_ConnectionID_Impl.cc"
}

/**
 * Method:  setProperties[]
 */
void
decaf::ConnectionID_impl::setProperties (
  /* in */ ::gov::cca::TypeMap properties ) 
throw () 
{
#line 71 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
  // DO-NOT-DELETE splicer.begin(decaf.ConnectionID.setProperties)
  d_properties = properties;
  // DO-NOT-DELETE splicer.end(decaf.ConnectionID.setProperties)
#line 85 "decaf_ConnectionID_Impl.cc"
}

/**
 * Method:  getProperties[]
 */
::gov::cca::TypeMap
decaf::ConnectionID_impl::getProperties ()
throw () 

{
#line 84 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
  // DO-NOT-DELETE splicer.begin(decaf.ConnectionID.getProperties)
  return d_properties.cloneTypeMap();
  // DO-NOT-DELETE splicer.end(decaf.ConnectionID.getProperties)
#line 100 "decaf_ConnectionID_Impl.cc"
}

/**
 *  Get the providing component (callee) ID.
 *  @return ComponentID of the component that has 
 *          provided the Port for this connection. 
 *  @throws CCAException if the underlying connection 
 *            is no longer valid.
 */
::gov::cca::ComponentID
decaf::ConnectionID_impl::getProvider ()
throw ( 
  ::gov::cca::CCAException
)
{
#line 102 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
  // DO-NOT-DELETE splicer.begin(decaf.ConnectionID.getProvider)
  return d_provider;
  // DO-NOT-DELETE splicer.end(decaf.ConnectionID.getProvider)
#line 120 "decaf_ConnectionID_Impl.cc"
}

/**
 *  Get the using component (caller) ID.
 *  @return ComponentID of the component that is using the provided Port.
 *  @throws CCAException if the underlying connection is no longer valid.
 */
::gov::cca::ComponentID
decaf::ConnectionID_impl::getUser ()
throw ( 
  ::gov::cca::CCAException
)
{
#line 118 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
  // DO-NOT-DELETE splicer.begin(decaf.ConnectionID.getUser)
  return d_user;
  // DO-NOT-DELETE splicer.end(decaf.ConnectionID.getUser)
#line 138 "decaf_ConnectionID_Impl.cc"
}

/**
 *  Get the port name in the providing component of this connection.
 *  @return the instance name of the provided Port.
 *  @throws CCAException if the underlying connection is no longer valid.
 */
::std::string
decaf::ConnectionID_impl::getProviderPortName ()
throw ( 
  ::gov::cca::CCAException
)
{
#line 134 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
  // DO-NOT-DELETE splicer.begin(decaf.ConnectionID.getProviderPortName)
  return d_providerPortName;
  // DO-NOT-DELETE splicer.end(decaf.ConnectionID.getProviderPortName)
#line 156 "decaf_ConnectionID_Impl.cc"
}

/**
 *  Get the port name in the using component of this connection.
 *  Return the instance name of the Port registered for use in 
 *  this connection.
 *  @throws CCAException if the underlying connection is no longer valid.
 */
::std::string
decaf::ConnectionID_impl::getUserPortName ()
throw ( 
  ::gov::cca::CCAException
)
{
#line 151 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
  // DO-NOT-DELETE splicer.begin(decaf.ConnectionID.getUserPortName)
  return d_userPortName;
  // DO-NOT-DELETE splicer.end(decaf.ConnectionID.getUserPortName)
#line 175 "decaf_ConnectionID_Impl.cc"
}


#line 157 "../../../../babel/examples/cca/libdecaf/decaf_ConnectionID_Impl.cc"
// DO-NOT-DELETE splicer.begin(decaf.ConnectionID._misc)
// Put miscellaneous code here
// DO-NOT-DELETE splicer.end(decaf.ConnectionID._misc)
#line 183 "decaf_ConnectionID_Impl.cc"