ircproxy The Ultimate Cyborg |
#include <JustInTime.h>
Definition at line 103 of file JustInTime.h.
Public Member Functions | |
JustInTimeCommand (int token) | |
Construct a JustInTimeCommand with value token. | |
virtual std::string | value (ClientSession const &) const |
Return the underlying value. | |
virtual void | write_to (std::ostream &os, ClientSession const &) const |
Write the underlying token, including seperators, to an ostream. | |
virtual int | command (void) const |
Return the command. | |
Private Attributes | |
int | M_token |
The command or numeric. |
JustInTimeCommand::JustInTimeCommand | ( | int | token | ) | [inline] |
Construct a JustInTimeCommand with value token.
Definition at line 108 of file JustInTime.h.
00108 : M_token(token) { }
virtual std::string JustInTimeCommand::value | ( | ClientSession const & | ) | const [inline, virtual] |
Return the underlying value.
Implements JustInTimeToken.
Definition at line 110 of file JustInTime.h.
References M_token.
00110 { return command_to_str(M_token); }
virtual void JustInTimeCommand::write_to | ( | std::ostream & | os, | |
ClientSession const & | ||||
) | const [inline, virtual] |
Write the underlying token, including seperators, to an ostream.
Implements JustInTimeToken.
Definition at line 113 of file JustInTime.h.
References M_token.
00113 { os << command_to_str(M_token); }
virtual int JustInTimeCommand::command | ( | void | ) | const [inline, virtual] |
Return the command.
Definition at line 116 of file JustInTime.h.
References M_token.
00116 { return M_token; }
int JustInTimeCommand::M_token [private] |
The command or numeric.
Definition at line 105 of file JustInTime.h.
Referenced by command(), value(), and write_to().
Copyright © 2005-2007 Carlo Wood. All rights reserved. |
---|