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
|
/* -*- C++ -*- */
// $Id$
ACE_INLINE
ACE_URL_Property::ACE_URL_Property (LPCTSTR name, LPCTSTR value)
: name_ (0), value_ (0)
{
this->name (name);
this->value (value);
}
ACE_INLINE
ACE_URL_Property::ACE_URL_Property (ACE_URL_Property &p)
: name_ (0), value_ (0)
{
this->name (p.name ());
this->value (p.value ());
}
ACE_INLINE
ACE_URL_Property::~ACE_URL_Property ()
{
delete[] this->name_;
delete[] this->value_;
}
ACE_INLINE ACE_URL_Property &
ACE_URL_Property::operator= (ACE_URL_Property &rhs)
{
if (this != &rhs)
{
this->name (rhs.name ());
this->value (rhs.value ());
}
return *this;
}
ACE_INLINE int
ACE_URL_Property::operator== (ACE_URL_Property &rhs) const
{
if (this == &rhs)
{
if (ACE_OS::strcmp (this->name (), rhs.name ()) ||
ACE_OS::strcmp (this->value (), rhs.value ()))
return 0;
}
return 1;
}
ACE_INLINE int
ACE_URL_Property::operator!= (ACE_URL_Property &rhs) const
{
return ! (*this == rhs);
}
ACE_INLINE LPCTSTR
ACE_URL_Property::name (void) const
{
return this->name_;
}
ACE_INLINE void
ACE_URL_Property::name (LPCTSTR name)
{
delete[] this->name_;
if (name)
{
ACE_NEW (this->name_, TCHAR[ACE_OS::strlen (name) + 1]);
ACE_OS::strcpy (this->name_, name);
}
else
this->name_ = 0;
}
ACE_INLINE LPCTSTR
ACE_URL_Property::value (void) const
{
return this->value_;
}
ACE_INLINE void
ACE_URL_Property::value (LPCTSTR value)
{
delete[] this->value_;
if (value)
{
ACE_NEW (this->value_, TCHAR[ACE_OS::strlen (value) + 1]);
ACE_OS::strcpy (this->value_, value);
}
else
this->value_ = 0;
}
ACE_INLINE
ACE_URL_Offer::ACE_URL_Offer (LPCTSTR url, ACE_URL_Property_Seq &prop_seq)
: url_ (0), prop_ (prop_seq)
{
this->url (url);
}
ACE_INLINE
ACE_URL_Offer::~ACE_URL_Offer (void)
{
delete[] this->url_;
}
ACE_INLINE ACE_URL_Offer &
ACE_URL_Offer::operator= (ACE_URL_Offer &rhs)
{
if (this != &rhs)
{
this->url (rhs.url ());
this->url_properties (rhs.url_properties ());
}
return *this;
}
ACE_INLINE int
ACE_URL_Offer::operator== (ACE_URL_Offer &rhs) const
{
if (this != &rhs)
if (ACE_OS::strcmp (this->url (), rhs.url ()) ||
(this->prop_ != rhs.url_properties ()))
return 0;
return 1;
}
ACE_INLINE int
ACE_URL_Offer::operator!= (ACE_URL_Offer &rhs) const
{
return ! (*this == rhs);
}
ACE_INLINE LPCTSTR
ACE_URL_Offer::url (void) const
{
return this->url_;
}
ACE_INLINE void
ACE_URL_Offer::url (LPCTSTR url)
{
delete[] this->url_;
if (url != 0)
{
ACE_NEW (this->url_, TCHAR[ACE_OS::strlen (url) + 1]);
ACE_OS::strcpy (this->url_, url);
}
else
this->url_ = 0;
}
ACE_INLINE ACE_URL_Property_Seq &
ACE_URL_Offer::url_properties (void)
{
return this->prop_;
}
ACE_INLINE void
ACE_URL_Offer::url_properties (ACE_URL_Property_Seq &prop)
{
if (&this->prop_ != &prop)
this->prop_ = prop;
}
ACE_INLINE void
ACE_URL_Locator::set_timeout (const ACE_Time_Value &timeout)
{
this->timeout_ = timeout;
}
ACE_INLINE ACE_Time_Value
ACE_URL_Locator::get_timeout (void) const
{
return this->timeout_;
}
ACE_INLINE void
ACE_URL_Locator::set_handle (ACE_HANDLE handle)
{
this->handle_ = handle ;
}
ACE_INLINE ACE_HANDLE
ACE_URL_Locator::get_handle (void) const
{
return this->handle_;
}
ACE_INLINE
ACE_URL_Locator_Query::ACE_URL_Locator_Query (ACE_HANDLE handle,
const ACE_Time_Value &timeout)
: ACE_URL_Locator (handle, timeout)
{
}
ACE_INLINE
ACE_URL_Locator_Query::~ACE_URL_Locator_Query (void)
{
}
ACE_INLINE
ACE_URL_Locator_Register::ACE_URL_Locator_Register (ACE_HANDLE handle,
const ACE_Time_Value &timeout)
: ACE_URL_Locator (handle, timeout)
{
}
ACE_INLINE
ACE_URL_Locator_Register::~ACE_URL_Locator_Register (void)
{
}
|