IT++ Logo Newcom Logo

binary.cpp

Go to the documentation of this file.
00001 
00033 #include <itpp/base/binary.h>
00034 #include <iostream>
00035 
00036 
00037 namespace itpp { 
00038 
00039   std::ostream &operator<<(std::ostream &output, const bin &inbin)
00040   {
00041     output << static_cast<int>(inbin);
00042     return output;
00043   }
00044 
00045   std::istream &operator>>(std::istream &input, bin &outbin)
00046   {
00047     int tmp;
00048     input >> tmp;
00049     outbin = tmp;
00050     return input;
00051   }
00052 
00053 } // namespace itpp
SourceForge Logo

Generated on Thu Apr 19 14:20:35 2007 for IT++ by Doxygen 1.4.6