ConvertUsecode Class Reference

#include <Convert.h>

Inheritance diagram for ConvertUsecode:

ConvertUsecodeCrusader ConvertUsecodeU8 List of all members.

Public Types

typedef int DebugSymbol

Public Member Functions

 ConvertUsecode ()
virtual ~ConvertUsecode ()
virtual const char *const * intrinsics ()=0
virtual const char *const * event_names ()=0
virtual void readheader (IDataSource *ucfile, UsecodeHeader &uch, uint32 &curOffset)=0
virtual void readevents (IDataSource *ucfile, const UsecodeHeader &uch)=0
virtual void readOp (TempOp &op, IDataSource *ucfile, uint32 &dbg_symbol_offset, std::vector< DebugSymbol > &debugSymbols, bool &done)=0
virtual NodereadOp (IDataSource *ucfile, uint32 &dbg_symbol_offset, std::vector< DebugSymbol > &debugSymbols, bool &done)=0
void readDbgSymbols (IDataSource *ucfile, std::vector< DebugSymbol > &debugSymbols)
void readOpGeneric (TempOp &op, IDataSource *ucfile, uint32 &dbg_symbol_offset, std::vector< DebugSymbol > &debugSymbols, bool &done, const bool crusader)
NodereadOpGeneric (IDataSource *ucfile, uint32 &dbg_symbol_offset, std::vector< DebugSymbol > &debugSymbols, bool &done, const bool crusader)
void printDbgSymbols (std::vector< DebugSymbol > &debugSymbols)
std::string UsecodeFunctionAddressToString (const sint32 uclass, const sint32 coffset, IDataSource *ucfile, const bool crusader)
virtual ~ConvertUsecode ()
uint32 read4 (IDataSource *)
virtual const char *const * intrinsics ()=0
virtual const char *const * event_names ()=0
virtual void readheader (IDataSource *ucfile, UsecodeHeader &uch, uint32 &curOffset)=0
virtual void readevents (IDataSource *ucfile, const UsecodeHeader &uch)=0
virtual void readOp (TempOp &op, IDataSource *ucfile, uint32 &dbg_symbol_offset, std::vector< DebugSymbol > &debugSymbols, bool &done)=0
virtual NodereadOp (IDataSource *ucfile, uint32 &dbg_symbol_offset, std::vector< DebugSymbol > &debugSymbols, bool &done)=0
void readOpGeneric (TempOp &, IDataSource *, uint32 &, std::vector< DebugSymbol > &, bool &, const bool)
NodereadOpGeneric (IDataSource *, uint32 &, std::vector< DebugSymbol > &, bool &, const bool)

Public Attributes

uint32 curOffset

Static Private Attributes

static const uint32 MAX_UCFUNC_NAMELEN = 256

Classes

struct  UsecodeHeader

Detailed Description

Definition at line 42 of file Convert.h.


Member Typedef Documentation

typedef int ConvertUsecode::DebugSymbol

Definition at line 31 of file ConvertUsecodeU8.h.


Constructor & Destructor Documentation

ConvertUsecode::ConvertUsecode (  )  [inline]

Definition at line 46 of file Convert.h.

virtual ConvertUsecode::~ConvertUsecode (  )  [inline, virtual]

Definition at line 47 of file Convert.h.

virtual ConvertUsecode::~ConvertUsecode (  )  [inline, virtual]

Definition at line 29 of file ConvertUsecodeU8.h.


Member Function Documentation

virtual const char* const* ConvertUsecode::event_names (  )  [pure virtual]

Implemented in ConvertUsecodeCrusader, and ConvertUsecodeU8.

virtual const char* const* ConvertUsecode::event_names (  )  [pure virtual]

Implemented in ConvertUsecodeCrusader, and ConvertUsecodeU8.

Referenced by printoverloads(), readfunction(), and UsecodeFunctionAddressToString().

virtual const char* const* ConvertUsecode::intrinsics (  )  [pure virtual]

Implemented in ConvertUsecodeCrusader, and ConvertUsecodeU8.

virtual const char* const* ConvertUsecode::intrinsics (  )  [pure virtual]

Implemented in ConvertUsecodeCrusader, and ConvertUsecodeU8.

Referenced by UCMachine::execProcess(), initfolding(), and just_print().

void ConvertUsecode::printDbgSymbols ( std::vector< DebugSymbol > &  debugSymbols  ) 

Definition at line 91 of file Convert.h.

References con, print_bp(), and Console::Printf().

Referenced by readOpGeneric().

uint32 ConvertUsecode::read4 ( IDataSource  )  [inline]

Definition at line 37 of file ConvertUsecodeU8.h.

Referenced by ConvertUsecodeU8::readevents(), ConvertUsecodeCrusader::readevents(), ConvertUsecodeU8::readheader(), ConvertUsecodeCrusader::readheader(), and readOpGeneric().

void ConvertUsecode::readDbgSymbols ( IDataSource ucfile,
std::vector< DebugSymbol > &  debugSymbols 
)

Definition at line 70 of file Convert.h.

References read1().

Referenced by readOpGeneric().

virtual void ConvertUsecode::readevents ( IDataSource ucfile,
const UsecodeHeader uch 
) [pure virtual]

virtual void ConvertUsecode::readevents ( IDataSource ucfile,
const UsecodeHeader uch 
) [pure virtual]

Referenced by printfunc().

virtual void ConvertUsecode::readheader ( IDataSource ucfile,
UsecodeHeader uch,
uint32 curOffset 
) [pure virtual]

virtual void ConvertUsecode::readheader ( IDataSource ucfile,
UsecodeHeader uch,
uint32 curOffset 
) [pure virtual]

Referenced by main(), and printfunc().

virtual Node* ConvertUsecode::readOp ( IDataSource ucfile,
uint32 dbg_symbol_offset,
std::vector< DebugSymbol > &  debugSymbols,
bool &  done 
) [pure virtual]

Implemented in ConvertUsecodeCrusader, and ConvertUsecodeU8.

virtual void ConvertUsecode::readOp ( TempOp op,
IDataSource ucfile,
uint32 dbg_symbol_offset,
std::vector< DebugSymbol > &  debugSymbols,
bool &  done 
) [pure virtual]

Implemented in ConvertUsecodeCrusader, and ConvertUsecodeU8.

virtual Node* ConvertUsecode::readOp ( IDataSource ucfile,
uint32 dbg_symbol_offset,
std::vector< DebugSymbol > &  debugSymbols,
bool &  done 
) [pure virtual]

Implemented in ConvertUsecodeCrusader, and ConvertUsecodeU8.

virtual void ConvertUsecode::readOp ( TempOp op,
IDataSource ucfile,
uint32 dbg_symbol_offset,
std::vector< DebugSymbol > &  debugSymbols,
bool &  done 
) [pure virtual]

Implemented in ConvertUsecodeCrusader, and ConvertUsecodeU8.

Referenced by readfunction().

Node* ConvertUsecode::readOpGeneric ( IDataSource ,
uint32 ,
std::vector< DebugSymbol > &  ,
bool &  ,
const   bool 
) [inline]

Definition at line 48 of file ConvertUsecodeU8.h.

void ConvertUsecode::readOpGeneric ( TempOp ,
IDataSource ,
uint32 ,
std::vector< DebugSymbol > &  ,
bool &  ,
const   bool 
) [inline]

Definition at line 46 of file ConvertUsecodeU8.h.

Node * ConvertUsecode::readOpGeneric ( IDataSource ucfile,
uint32 dbg_symbol_offset,
std::vector< DebugSymbol > &  debugSymbols,
bool &  done,
const bool  crusader 
)

Definition at line 819 of file Convert.h.

References con, curOffset, n, printbytes(), Console::Printf(), Console::Putchar(), read1(), read2(), read4(), readDbgSymbols(), and readnstr().

void ConvertUsecode::readOpGeneric ( TempOp op,
IDataSource ucfile,
uint32 dbg_symbol_offset,
std::vector< DebugSymbol > &  debugSymbols,
bool &  done,
const bool  crusader 
)

Definition at line 115 of file Convert.h.

References con, curOffset, TempOp::i0, TempOp::i1, TempOp::i2, TempOp::i3, TempOp::i4, TempOp::nextoffset, TempOp::offset, TempOp::op(), printDbgSymbols(), Console::Printf(), read1(), read2(), read4(), readDbgSymbols(), and TempOp::str.

Referenced by ConvertUsecodeU8::readOp(), and ConvertUsecodeCrusader::readOp().

std::string ConvertUsecode::UsecodeFunctionAddressToString ( const sint32  uclass,
const sint32  coffset,
IDataSource ucfile,
const bool  crusader 
)

Definition at line 1023 of file Convert.h.

References event_names(), FuncNames, IDataSource::getPos(), MAX_UCFUNC_NAMELEN, IDataSource::read(), IDataSource::read4(), IDataSource::seek(), and snprintf().

Referenced by just_print().


Member Data Documentation

uint32 ConvertUsecode::curOffset

Definition at line 38 of file ConvertUsecodeU8.h.

Referenced by readOpGeneric().

const uint32 ConvertUsecode::MAX_UCFUNC_NAMELEN = 256 [static, private]

Definition at line 66 of file Convert.h.

Referenced by UsecodeFunctionAddressToString().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:28:58 2007 for pentagram by  doxygen 1.4.7