#include <sstream>
#include <iostream>
#include <map>
#include <string>
#include <set>
#include "tools/MicroException.hh"
#include "tools/Toolbox.hh"
#include "XMLTool.hh"
#include "Log.hh"
#include "Detector.hh"
#include "Mysql.hh"
#include <fstream>
#include <stdlib.h>
#include <errno.h>
Include dependency graph for Toolbox.cpp:
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &out, const BinOut &x) |
std::ostream& operator<< | ( | std::ostream & | out, | |
const BinOut & | x | |||
) |
Definition at line 200 of file Toolbox.cpp.
00200 { 00201 // out << "0x" << hex << x._Num << dec << "="; 00202 //out << HexOut(x._Num, 2) << "="; 00203 for (unsigned int digit = x._Digits; digit > 0; digit--) { 00204 if ((digit != x._Digits) && (digit % 4 == 0)) 00205 out << " "; 00206 out << ((x._Num >> (digit - 1)) & 0x1); 00207 } 00208 return(out); 00209 } // BinOut.operator <<