ircproxy  The Ultimate Cyborg

JustInTimeCommand Class Reference

#include <JustInTime.h>

Inheritance diagram for JustInTimeCommand:

JustInTimeToken

List of all members.


Detailed Description

A just-in-time command.

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.

Constructor & Destructor Documentation

JustInTimeCommand::JustInTimeCommand ( int  token  )  [inline]

Construct a JustInTimeCommand with value token.

Definition at line 108 of file JustInTime.h.

00108 : M_token(token) { }


Member Function Documentation

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; }


Member Data Documentation

The command or numeric.

Definition at line 105 of file JustInTime.h.

Referenced by command(), value(), and write_to().


The documentation for this class was generated from the following file:

Copyright © 2005-2007 Carlo Wood.  All rights reserved.