ircproxy  The Ultimate Cyborg

JustInTimeLast Class Reference

#include <JustInTime.h>

Inheritance diagram for JustInTimeLast:

JustInTimeToken

List of all members.


Detailed Description

A just-in-time manipulator. This causes the passed token to be prepended with a colon, assuming it's the last parameter.

Definition at line 184 of file JustInTime.h.


Public Member Functions

 JustInTimeLast (std::string const &token)
 Construct a JustInTimeLast with value token.
 JustInTimeLast (MsgPart const &token)
 Construct a JustInTimeLast with value token.
virtual std::string value (ClientSession const &session) const
 Return the underlying value.
virtual void write_to (std::ostream &os, ClientSession const &session) const
 Write the underlying token, including seperators, to an ostream.

Private Attributes

boost::shared_ptr
< JustInTimeToken
M_token
 The token to be appended last.

Constructor & Destructor Documentation

JustInTimeLast::JustInTimeLast ( std::string const &  token  )  [inline]

Construct a JustInTimeLast with value token.

Definition at line 189 of file JustInTime.h.

00189 : M_token(NEW(JustInTimeString(token))) { }

JustInTimeLast::JustInTimeLast ( MsgPart const &  token  )  [inline]

Construct a JustInTimeLast with value token.

Definition at line 191 of file JustInTime.h.

00191 : M_token(NEW(JustInTimeMsgPart(token))) { }


Member Function Documentation

virtual std::string JustInTimeLast::value ( ClientSession const &  session  )  const [inline, virtual]

Return the underlying value.

Implements JustInTimeToken.

Definition at line 194 of file JustInTime.h.

References M_token.

00194 { return M_token->value(session); }

virtual void JustInTimeLast::write_to ( std::ostream &  os,
ClientSession const &  session 
) const [inline, virtual]

Write the underlying token, including seperators, to an ostream.

Implements JustInTimeToken.

Definition at line 197 of file JustInTime.h.

References M_token.

00197 { os << " :" << M_token->value(session); }


Member Data Documentation

boost::shared_ptr<JustInTimeToken> JustInTimeLast::M_token [private]

The token to be appended last.

Definition at line 186 of file JustInTime.h.

Referenced by value(), and write_to().


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

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