blob: 605ca36280a649d04416ada3a14113db5a42f73a (
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
|
// -*- C++ -*-
//
// $Id$
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
namespace FTP
{
ACE_INLINE
void Request::reset ()
{
this->command_.clear ();
this->args_.clear ();
}
ACE_INLINE
Request& Request::operator ()(const ACE_CString& cmd)
{
this->reset ();
this->command (cmd);
return *this;
}
ACE_INLINE
void Request::command (const ACE_CString& cmd)
{
this->command_ = cmd;
}
ACE_INLINE
const ACE_CString& Request::command () const
{
return this->command_;
}
ACE_INLINE
Request& Request::operator <<(const ACE_CString& arg)
{
if (!arg.empty ())
{
if (!this->args_.empty ()) this->args_ += ' ' ;
this->args_ += arg;
}
return *this;
}
ACE_INLINE
const ACE_CString& Request::arguments () const
{
return this->args_;
}
}
}
ACE_END_VERSIONED_NAMESPACE_DECL
|