ircproxy  The Ultimate Cyborg

JustInTimeLong Class Reference

#include <JustInTime.h>

Inheritance diagram for JustInTimeLong:

JustInTimeToken

List of all members.


Detailed Description

A just-in-time long.

Definition at line 69 of file JustInTime.h.


Public Member Functions

 JustInTimeLong (long token)
 Construct a JustInTimeLong 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

long M_token
 The token.

Constructor & Destructor Documentation

JustInTimeLong::JustInTimeLong ( long  token  )  [inline]

Construct a JustInTimeLong with value token.

Definition at line 74 of file JustInTime.h.

00074 : M_token(token) { }


Member Function Documentation

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

Return the underlying value.

Implements JustInTimeToken.

Definition at line 76 of file JustInTime.h.

References M_token.

00076 { std::ostringstream result; result << M_token; return result.str(); }

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

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

Implements JustInTimeToken.

Definition at line 79 of file JustInTime.h.

00079 { os << ' ' << M_token; }


Member Data Documentation

long JustInTimeLong::M_token [private]

The token.

Definition at line 71 of file JustInTime.h.

Referenced by value().


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

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