ircproxy  The Ultimate Cyborg

JustInTimeChar Class Reference

#include <JustInTime.h>

Inheritance diagram for JustInTimeChar:

JustInTimeToken

List of all members.


Detailed Description

A just-in-time char.

Definition at line 54 of file JustInTime.h.


Public Member Functions

 JustInTimeChar (char token)
 Construct a JustInTimeChar 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.

Private Attributes

char M_token
 The token char.

Constructor & Destructor Documentation

JustInTimeChar::JustInTimeChar ( char  token  )  [inline]

Construct a JustInTimeChar with value token.

Definition at line 59 of file JustInTime.h.

00059 : M_token(token) { }


Member Function Documentation

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

Return the underlying value.

Implements JustInTimeToken.

Definition at line 61 of file JustInTime.h.

References M_token.

00061 { std::string result; result = M_token; return result; }

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

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

Implements JustInTimeToken.

Definition at line 64 of file JustInTime.h.

References M_token.

00064 { os << ' ' << M_token; }


Member Data Documentation

char JustInTimeChar::M_token [private]

The token char.

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