BinaryParsed< 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 binary object is serialized, it will parse the stream for a binary integer instead of a decimal integer. More...

#include <BIscan.h>

List of all members.

Public Member Functions

 BinaryParsed (IntegerType &data)

Public Attributes

IntegerType & output_

Detailed Description

template<class IntegerType>
struct BIscan::BinaryParsed< 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 binary object is serialized, it will parse the stream for a binary integer instead of a decimal integer.

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

Here is an example use:

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

Definition at line 1533 of file BIscan.h.


Constructor & Destructor Documentation

BinaryParsed ( IntegerType &  data  ) 

Definition at line 1562 of file BIscan.h.


Member Data Documentation

IntegerType& output_

Definition at line 1560 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