/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/include/tools/Toolbox.hh File Reference

#include <string>
#include "mTypes.h"

Include dependency graph for Toolbox.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Toolbox
struct  BinOut

Defines

#define NO_V   0
#define LAW_V   1
#define HIGHT_V   2

Functions

std::ostream & operator<< (std::ostream &out, const BinOut &x)


Define Documentation

#define NO_V   0

Definition at line 17 of file Toolbox.hh.

#define LAW_V   1

Definition at line 18 of file Toolbox.hh.

#define HIGHT_V   2

Definition at line 19 of file Toolbox.hh.


Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const BinOut x 
)

Definition at line 187 of file Toolbox.cpp.

00187                                                           {
00188 //  out << "0x" << hex << x._Num << dec << "=";
00189   //out << HexOut(x._Num, 2) << "=";
00190   for (unsigned int digit = x._Digits; digit > 0; digit--) {
00191     if ((digit != x._Digits) && (digit % 4 == 0))
00192       out << " ";
00193     out << ((x._Num >> (digit - 1)) & 0x1);
00194   }
00195   return(out);
00196 } // BinOut.operator <<


Generated on Mon Jun 11 16:56:50 2012 for MicromegasFramework by  doxygen 1.4.7