UCData Class Reference

#include <ucdata.h>

Collaboration diagram for UCData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UCData ()
 ~UCData ()
void dump_unknown_opcodes ()
void dump_unknown_intrinsics ()
void parse_params (const unsigned int argc, char **argv)
void open_usecode (const std::string &filename)
void load_funcs ()
void disassamble ()
void dump_flags (std::ostream &o)
void output_extern_header (std::ostream &o)
std::string output_redirect () const
std::string input_usecode_file () const
bool fail () const
const std::map< unsigned int,
UCFuncSet > & 
funcmap ()
const UCOptionsopt ()

Public Attributes

UCOptions options

Private Member Functions

void file_open (const std::string &filename)
void file_seek_start ()
void file_seek_end ()

Private Attributes

std::ifstream _file
std::string _output_redirect
std::string _input_usecode_file
unsigned int _funcid
std::vector< UCc_codes
std::vector< UCFunc * > _funcs
FuncMap _funcmap
long _search_opcode
long _search_intrinsic
std::vector< unsigned int > search_funcs

Detailed Description

Definition at line 29 of file ucdata.h.


Constructor & Destructor Documentation

UCData::UCData (  ) 

Definition at line 42 of file ucdata.cc.

UCData::~UCData (  ) 

Definition at line 46 of file ucdata.cc.

References _file, and _funcs.


Member Function Documentation

void UCData::dump_unknown_opcodes (  ) 

void UCData::dump_unknown_intrinsics (  ) 

void UCData::parse_params ( const unsigned int  argc,
char **  argv 
)

Definition at line 53 of file ucdata.cc.

References UCOptions::_game, _input_usecode_file, _output_redirect, UCOptions::autocomment, UCOptions::basic, UCOptions::force_ext32, UCOptions::GAME_BG, UCOptions::GAME_SI, UCOptions::GAME_U8, UCOptions::mode_all, UCOptions::mode_dis, UCOptions::noconf, options, UCOptions::output_asm, UCOptions::output_extern_header, UCOptions::output_flag, UCOptions::output_list, UCOptions::output_trans_table, UCOptions::output_ucs, UCOptions::rawops, search_funcs, size, UCOptions::ucdebug, UCOptions::uselesscomment, UCOptions::verbose, and UCOptions::very_verbose.

Referenced by main().

void UCData::open_usecode ( const std::string &  filename  ) 

Referenced by open_usecode_file().

void UCData::load_funcs (  ) 

Definition at line 277 of file ucdata.cc.

References _file, _funcmap, _funcs, UCFunc::ext32, UCOptions::force_ext32, UCOptions::game_bg(), UCOptions::game_si(), UCOptions::game_u8(), options, readbin_U7UCFunc(), readbin_U8UCFunc(), and UCOptions::verbose.

Referenced by disassamble().

Here is the call graph for this function:

void UCData::disassamble (  ) 

Definition at line 124 of file ucdata.cc.

References _funcmap, _funcs, load_funcs(), UCOptions::mode_all, UCOptions::mode_dis, options, UCOptions::output_asm, UCOptions::output_list, UCOptions::output_trans_table, UCOptions::output_ucs, search_funcs, uc_intrinsics, UCOptions::ucdebug, and UCOptions::verbose.

Referenced by main().

Here is the call graph for this function:

void UCData::dump_flags ( std::ostream &  o  ) 

Referenced by main().

void UCData::output_extern_header ( std::ostream &  o  ) 

Referenced by main().

std::string UCData::output_redirect (  )  const [inline]

Definition at line 46 of file ucdata.h.

References _output_redirect.

Referenced by main().

std::string UCData::input_usecode_file (  )  const [inline]

Definition at line 47 of file ucdata.h.

References _input_usecode_file.

Referenced by open_usecode_file().

bool UCData::fail (  )  const [inline]

Definition at line 49 of file ucdata.h.

References _file.

Referenced by open_usecode_file().

const std::map<unsigned int, UCFuncSet>& UCData::funcmap (  )  [inline]

Definition at line 51 of file ucdata.h.

References _funcmap.

const UCOptions& UCData::opt (  )  [inline]

Definition at line 53 of file ucdata.h.

Referenced by main().

void UCData::file_open ( const std::string &  filename  )  [private]

void UCData::file_seek_start (  )  [inline, private]

Definition at line 60 of file ucdata.h.

References _file.

void UCData::file_seek_end (  )  [inline, private]

Definition at line 61 of file ucdata.h.

References _file.


Member Data Documentation

UCOptions UCData::options

Definition at line 53 of file ucdata.h.

Referenced by disassamble(), load_funcs(), main(), open_usecode_file(), and parse_params().

std::ifstream UCData::_file [private]

Definition at line 61 of file ucdata.h.

Referenced by fail(), file_seek_end(), file_seek_start(), load_funcs(), and ~UCData().

std::string UCData::_output_redirect [private]

Definition at line 65 of file ucdata.h.

Referenced by output_redirect(), and parse_params().

std::string UCData::_input_usecode_file [private]

Definition at line 66 of file ucdata.h.

Referenced by input_usecode_file(), and parse_params().

unsigned int UCData::_funcid [private]

Definition at line 68 of file ucdata.h.

std::vector<UCc> UCData::_codes [private]

Definition at line 70 of file ucdata.h.

std::vector<UCFunc *> UCData::_funcs [private]

Definition at line 72 of file ucdata.h.

Referenced by disassamble(), load_funcs(), and ~UCData().

FuncMap UCData::_funcmap [private]

Definition at line 77 of file ucdata.h.

Referenced by disassamble(), funcmap(), and load_funcs().

long UCData::_search_opcode [private]

Definition at line 79 of file ucdata.h.

long UCData::_search_intrinsic [private]

Definition at line 80 of file ucdata.h.

std::vector<unsigned int> UCData::search_funcs [private]

Definition at line 81 of file ucdata.h.

Referenced by disassamble(), and parse_params().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 15:04:53 2007 for ExultEngine by  doxygen 1.5.1