/home/thomas/development/delivery-check/repo/src/helper.h File Reference

#include <iostream>
#include <vector>
Include dependency graph for helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HexChar
class  HexShort
class  DecLong

Functions

std::ostream & operator<< (std::ostream &os, const HexChar &h)
std::ostream & operator<< (std::ostream &os, const HexShort &h)
std::ostream & operator<< (std::ostream &os, const DecLong &h)
std::string int2str (int i)
 Convert an int into a string.
std::string int2hex (int i)
 Convert int into hex string.
std::string readline (std::istream &is)
 Reads one line from a stream.
std::vector< std::string > split (const std::string &inp, std::string splitc="\t\n\r\b ")
 Splits a string into a vector of strings at delimiters splitc.

Function Documentation

std::string int2hex ( int  i  ) 

Convert int into hex string.

Definition at line 65 of file helper.cpp.

Referenced by InvalidMem::get(), and InvalidMem::set().

Here is the caller graph for this function:

std::string int2str ( int  i  ) 

Convert an int into a string.

Definition at line 59 of file helper.cpp.

Referenced by __hlp2name(), __hlp2scope(), DumpManager::appendDeviceName(), HWIrqSystem::HWIrqSystem(), DumpManager::load(), and TraceValue::name().

Here is the caller graph for this function:

std::ostream& operator<< ( std::ostream &  os,
const DecLong h 
)

Definition at line 52 of file helper.cpp.

References DecLong::val.

std::ostream& operator<< ( std::ostream &  os,
const HexShort h 
)

Definition at line 44 of file helper.cpp.

References HexShort::val.

std::ostream& operator<< ( std::ostream &  os,
const HexChar h 
)

Definition at line 36 of file helper.cpp.

References HexChar::val.

std::string readline ( std::istream &  is  ) 

Reads one line from a stream.

Definition at line 71 of file helper.cpp.

Referenced by DumpManager::load().

Here is the caller graph for this function:

std::vector<std::string> split ( const std::string &  inp,
std::string  splitc = "\t\n\r\b " 
)

Splits a string into a vector of strings at delimiters splitc.

Definition at line 82 of file helper.cpp.

Referenced by DumpManager::load(), and SetDumpTraceArgs().

Here is the caller graph for this function:

Generated on Sun Feb 12 16:44:17 2012 for Simulavr by  doxygen 1.6.3