OctalParsed< IntegerType > Struct Template Reference

This class is a wrapper around a reference to an integer which exists so that that operator>> can be specialized such that when a Octal object is serialized, it will parse the stream for a octal integer instead of a decimal integer. More...

#include <BIscan.h>

List of all members.

Public Member Functions

 OctalParsed (IntegerType &data)

Public Attributes

IntegerType & output_

Detailed Description

template<class IntegerType>
struct BIscan::OctalParsed< IntegerType >

This class is a wrapper around a reference to an integer which exists so that that operator>> can be specialized such that when a Octal object is serialized, it will parse the stream for a octal integer instead of a decimal integer.

Note: don't use this class directly -- use the function, Octal(), below instead.

Here is an example use:

           int value;
        
           stream("10") >> BIscan::Octal(value);
        
           // value will be 8 (not 10) at this point.
Note:
This works because class there is an overloaded operator >> for class Stream that parses octal integers instead of the default decimal integers.

Definition at line 1423 of file BIscan.h.


Constructor & Destructor Documentation

OctalParsed ( IntegerType &  data  ) 

Definition at line 1451 of file BIscan.h.


Member Data Documentation

IntegerType& output_

Definition at line 1449 of file BIscan.h.


The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:52:18 2012 for CXXUtilities by  doxygen 1.6.3