Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Classes | Typedefs | Functions | Variables
v Namespace Reference

Classes

class  pair
 
class  basic_teebuf
 
class  Color
 Output colors. More...
 
class  Number
 Output colors. More...
 
class  msgstream
 
class  logstream
 

Typedefs

typedef basic_teebuf< charteebuf
 

Functions

teebuf logbuf (std::cout.rdbuf(), NULL)
 
void logFile (const char *name)
 
void logApplication (const char *name)
 
std::ostream & operator<< (std::ostream &os, const Color &cl)
 Display the color code on the std::ostream. More...
 
std::ostream & operator<< (std::ostream &os, const Number &n)
 Display the color code on the std::ostream. More...
 

Variables

std::ofstream outfile
 
logstream< 0 > errorlogbuf
 
Color bgBlack ("\e[40m")
 
Color bgWhite ("\e[47m")
 
Color bgYellow ("\e[43m")
 
Color bgRed ("\e[41m")
 
Color bgGreen ("\e[42m")
 
Color bgBlue ("\e[44m")
 
Color bgMagenta ("\e[45m")
 
Color bgCyan ("\e[46m")
 
Color Black ("\e[30m")
 
Color White ("\e[37m")
 
Color Yellow ("\e[33m")
 
Color Red ("\e[31m")
 
Color Green ("\e[32m")
 
Color Blue ("\e[34m")
 
Color Magenta ("\e[35m")
 
Color Cyan ("\e[36m")
 
Color Normal ("\e[0m")
 
Color Bold ("\033[1m")
 
Color Blink ("\e[36m")
 
Color Beep ("\e[36m")
 
Number uint64 ("0x", '0', 16, true)
 
Number uint32 ("0x", '0', 8, true)
 
Number uintptr ("0x", '0', 8, true)
 
Number uint16 ("0x", '0', 4, true)
 
Number uint8 ("0x", '0', 2, true)
 
Number noint ("", ' ', 0, false)
 
logstream< 0 > error
 
logstream< 1 > warn
 
logstream< 2 > report
 
logstream< 3 > info
 
logstream< 4 > analysis
 
logstream< 5 > debug
 
logstream< 99 > null_log
 

Typedef Documentation

Function Documentation

void v::logApplication ( const char name)

This function is intended to create a logfile next to the executable simply callit like:

v::logApplication(argv[0])

If argv[0] is "./build/test1/mytest" the logfile will be "./build/test1/mytest.log"

Parameters
nameApplication name

References logFile().

Here is the call graph for this function:

teebuf v::logbuf ( std::cout.  rdbuf(),
NULL   
)
void v::logFile ( const char filename)

This function can be used if you wish to log all verbose output in a file. The logfile gets filled with data in parallel to the screen output. If you want to end the logging to a file simply call the function with NULL as parameter.

Parameters
filenameThe file name of the logfile.

References logbuf, and outfile.

Referenced by logApplication().

std::ostream& v::operator<< ( std::ostream &  os,
const Color &  cl 
)
inline

Display the color code on the std::ostream.

Prints the color code.

std::ostream& v::operator<< ( std::ostream &  os,
const Number &  n 
)
inline

Display the color code on the std::ostream.

Variable Documentation

logstream<4> v::analysis
Color v::Beep
Color v::bgBlack

Linux internal consol color pattern

Color v::bgBlue
Color v::bgCyan
Color v::bgGreen
Color v::bgMagenta
Color v::bgRed
Color v::bgWhite
Color v::bgYellow
Color v::Black
Color v::Blink
Color v::Blue
Color v::Bold
Color v::Cyan
logstream<5> v::debug

Referenced by AHBCtrl::AcceptThread(), Irqmp::acknowledged_irq(), Memory::b_transport(), leon3_funclt_trap::IntrTLMPort_32::callbackMethod(), GPCounter::chaining(), GPCounter::ctrl_write(), mmu_cache::dcio_b_transport(), mmu_cache::dcio_nb_transport_fw(), mmu_cache::dcio_service_thread(), mmu::diag_read_dctlb(), mmu::diag_read_itlb(), CLKDevice::dorst(), AHBCtrl::EndResponseThread(), mmu_cache::exec_data(), mmu_cache_base::exec_data(), APBCtrl::exec_func(), Mctrl::exec_func(), mmu_cache::exec_instr(), vectorcache::flush(), Irqmp::force_write(), APBCtrl::getPNPReg(), mmu_cache::icio_b_transport(), mmu_cache::icio_nb_transport_fw(), mmu_cache::icio_service_thread(), Irqmp::incomming_irq(), Irqmp::launch_irq(), mmu::lru_update(), Mctrl::mcfg1_write(), Mctrl::mcfg2_write(), localram::mem_read(), localram::mem_write(), mmu::mmu(), leon3_funclt_trap::PinTLM_out_32::on_run(), CLKDevice::onrst(), Leon3::read_byte(), leon3_funclt_trap::TLMMemory::read_byte(), Leon3::read_byte_dbg(), leon3_funclt_trap::TLMMemory::read_byte_dbg(), leon3_funclt_trap::TLMMemory::read_dword(), Leon3::read_dword(), Leon3::read_dword_dbg(), leon3_funclt_trap::TLMMemory::read_dword_dbg(), Leon3::read_half(), leon3_funclt_trap::TLMMemory::read_half(), Leon3::read_half_dbg(), leon3_funclt_trap::TLMMemory::read_half_dbg(), Leon3::read_instr(), leon3_funclt_trap::TLMMemory::read_instr(), mmu::read_mcr(), mmu::read_mctpr(), mmu::read_mctxr(), mmu::read_mfar(), mmu::read_mfsr(), leon3_funclt_trap::TLMMemory::read_word(), Leon3::read_word(), Leon3::read_word_dbg(), leon3_funclt_trap::TLMMemory::read_word_dbg(), AHBCtrl::RequestThread(), AHBCtrl::ResponseThread(), leon3_funclt_trap::PinTLM_out_32::send_pin_req(), GPCounter::start(), Mctrl::start_of_simulation(), GPCounter::stop(), Mctrl::switch_power_mode(), mmu::tlb_flush(), mmu::tlb_lookup(), mmu::tlb_remove(), AHBCtrl::transport_dbg(), Memory::transport_dbg(), Leon3::write_byte(), leon3_funclt_trap::TLMMemory::write_byte(), Leon3::write_byte_dbg(), leon3_funclt_trap::TLMMemory::write_byte_dbg(), Leon3::write_dword(), leon3_funclt_trap::TLMMemory::write_dword(), Leon3::write_dword_dbg(), leon3_funclt_trap::TLMMemory::write_dword_dbg(), Leon3::write_half(), leon3_funclt_trap::TLMMemory::write_half(), Leon3::write_half_dbg(), leon3_funclt_trap::TLMMemory::write_half_dbg(), mmu::write_mcr(), mmu::write_mctpr(), mmu::write_mctxr(), Leon3::write_word(), leon3_funclt_trap::TLMMemory::write_word(), Leon3::write_word_dbg(), and leon3_funclt_trap::TLMMemory::write_word_dbg().

logstream<0> v::error
Color v::Green
logstream<3> v::info
logstream< 99 > null_log & v::logbuf

Referenced by logFile().

Color v::Magenta
Number v::noint
Color v::Normal
logstream<99> v::null_log
std::ofstream v::outfile
Color v::Red
logstream<2> v::report
Number v::uint16
Number v::uint32
Number v::uint64
Number v::uint8
Number v::uintptr
logstream<1> v::warn
Color v::White
Color v::Yellow