ircproxy  The Ultimate Cyborg

JustInTimeCatenate Class Reference

#include <JustInTime.h>

Inheritance diagram for JustInTimeCatenate:

JustInTimeToken

List of all members.


Detailed Description

A just-in-time manipulator. This causes the passed token to be catenated to the previous token, without separator.

Definition at line 159 of file JustInTime.h.


Public Member Functions

 JustInTimeCatenate (char token)
 Construct a JustInTimeCatenate with value token.
 JustInTimeCatenate (std::string const &token)
 Construct a JustInTimeCatenate with value token.
 JustInTimeCatenate (boost::shared_ptr< Target > const &token)
 Construct a JustInTimeCatenate with value token.
 JustInTimeCatenate (MsgPart const &token)
 Construct a JustInTimeCatenate 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 catenated.

Constructor & Destructor Documentation

JustInTimeCatenate::JustInTimeCatenate ( char  token  )  [inline]

Construct a JustInTimeCatenate with value token.

Definition at line 164 of file JustInTime.h.

00164 : M_token(NEW(JustInTimeChar(token))) { }

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

Construct a JustInTimeCatenate with value token.

Definition at line 166 of file JustInTime.h.

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

JustInTimeCatenate::JustInTimeCatenate ( boost::shared_ptr< Target > const &  token  )  [inline]

Construct a JustInTimeCatenate with value token.

Definition at line 168 of file JustInTime.h.

00168 : M_token(NEW(JustInTimeTarget(token))) { }

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

Construct a JustInTimeCatenate with value token.

Definition at line 170 of file JustInTime.h.

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


Member Function Documentation

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

Return the underlying value.

Implements JustInTimeToken.

Definition at line 173 of file JustInTime.h.

References M_token.

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

virtual void JustInTimeCatenate::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 176 of file JustInTime.h.

References M_token.

00176 { os << M_token->value(session); }


Member Data Documentation

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

The token to be catenated.

Definition at line 161 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.