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

#include <BIscan.h>

List of all members.

Public Member Functions

 HexParsed (IntegerType &data)

Public Attributes

IntegerType & output_

Detailed Description

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

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

Here is an example use:

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

Definition at line 1313 of file BIscan.h.


Constructor & Destructor Documentation

HexParsed ( IntegerType &  data  ) 

Definition at line 1342 of file BIscan.h.


Member Data Documentation

IntegerType& output_

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