Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SuifPrinterModule Class Reference

#include <suifprinter.h>

Inheritance diagram for SuifPrinterModule:

Module zot_print_helper default_zot_print_helper formater List of all members.

Public Types

typedef void (* print_init_fn )(SuifEnv *)

Public Methods

 SuifPrinterModule (SuifEnv* suif)
void initialize ()
 initializes the modules. More...

void execute ()
 executes the Module parse_command_line should be called before this method is invoked.

virtual Moduleclone () const
 generates a new copy of the current instance if necessary The implementor of a subclass is responsible for overriding this method if the implementation has a unique state the default implementation returns the current instance.

ostream& get_default_stream ()
void print (ostream& output, const ObjectWrapper &obj)
void print (const Address what, const MetaClass* type)
void print (ostream& output)
void print (const SuifObject *root)
void print (ostream& output, const SuifObject *root)
void print (ostream& output, const SuifObject* s, const MetaClass* type)
void print ()
void print (ostream& output, const Address what, const MetaClass* type, int indent = 2)
bool print2 (ostream& output, const ObjectWrapper &obj, const LString &name = emptyLString, int _indent = 2, int deref = 0)
void init ()
void set_print_all ()
void unset_print_all ()
bool print_all () const
void set_use_print_string ()
void set_use_print_ref_string ()
void unset_use_print_string ()
void unset_use_print_ref_string ()
bool use_print_string () const
bool use_print_ref_string () const
String get_print_string (const LString &meta_class_name)
String get_print_ref_string (const LString &meta_class_name)
void indent (ostream& o, int _indent)
size_t retrieve_tag (const ObjectWrapper &obj)
size_t get_tag (const ObjectWrapper &obj)
bool has_tag (const ObjectWrapper &obj)
virtual void interface_object_created (Module *producer, const LString &interface_name)
virtual bool start_of_object (ostream& output, const ObjectWrapper &obj,int derefs)
 You can override this function to control actions at the start of the printing of an object. More...

virtual void end_of_object (ostream& output, const ObjectWrapper &obj)
 You can override this function to gain control at the end of printing an object. More...


Static Public Methods

void print_dispatch (Module *, ostream &, const ObjectWrapper &)

Static Public Attributes

LString ClassName


Detailed Description


Member Typedef Documentation

typedef void (* SuifPrinterModule::print_init_fn)(SuifEnv *)


Constructor & Destructor Documentation

SuifPrinterModule::SuifPrinterModule ( SuifEnv * suif)


Member Function Documentation

Module * SuifPrinterModule::clone ( void) const [virtual]

generates a new copy of the current instance if necessary The implementor of a subclass is responsible for overriding this method if the implementation has a unique state the default implementation returns the current instance.

Reimplemented from Module.

void SuifPrinterModule::end_of_object ( ostream & output,
const ObjectWrapper & obj) [inline, virtual]

You can override this function to gain control at the end of printing an object.

Note - not called if start_of_object returned false

Reimplemented in formater.

void SuifPrinterModule::execute ( void) [virtual]

executes the Module parse_command_line should be called before this method is invoked.

Reimplemented from Module.

ostream & SuifPrinterModule::get_default_stream () [inline]

String SuifPrinterModule::get_print_ref_string ( const LString & meta_class_name) [inline]

String SuifPrinterModule::get_print_string ( const LString & meta_class_name) [inline]

size_t SuifPrinterModule::get_tag ( const ObjectWrapper & obj) [inline]

bool SuifPrinterModule::has_tag ( const ObjectWrapper & obj) [inline]

void SuifPrinterModule::indent ( ostream & o,
int _indent) [inline]

void SuifPrinterModule::init ()

void SuifPrinterModule::initialize ( void) [virtual]

initializes the modules.

This method must/will be called before a call to parse_command_line or execute

Reimplemented from Module.

void SuifPrinterModule::interface_object_created ( Module * producer,
const LString & interface_name) [virtual]

Reimplemented from Module.

void SuifPrinterModule::print ( ostream & output,
const Address what,
const MetaClass * type,
int _indent = 2)

void SuifPrinterModule::print ()

void SuifPrinterModule::print ( ostream & output,
const SuifObject * s,
const MetaClass * type)

void SuifPrinterModule::print ( ostream & output,
const SuifObject * rootNode)

void SuifPrinterModule::print ( const SuifObject * rootNode)

void SuifPrinterModule::print ( ostream & o)

void SuifPrinterModule::print ( const Address what,
const MetaClass * type)

void SuifPrinterModule::print ( ostream & output,
const ObjectWrapper & obj)

bool SuifPrinterModule::print2 ( ostream & output,
const ObjectWrapper & obj,
const LString & name = emptyLString,
int _indent = 2,
int deref = 0)

bool SuifPrinterModule::print_all () const [inline]

void SuifPrinterModule::print_dispatch ( Module * module,
ostream & str,
const ObjectWrapper & obj) [static]

size_t SuifPrinterModule::retrieve_tag ( const ObjectWrapper & obj) [inline]

void SuifPrinterModule::set_print_all () [inline]

void SuifPrinterModule::set_use_print_ref_string () [inline]

void SuifPrinterModule::set_use_print_string () [inline]

bool SuifPrinterModule::start_of_object ( ostream & output,
const ObjectWrapper & obj,
int deref) [inline, virtual]

You can override this function to control actions at the start of the printing of an object.

If the function returns false, no printing is performed

Reimplemented in formater.

void SuifPrinterModule::unset_print_all () [inline]

void SuifPrinterModule::unset_use_print_ref_string () [inline]

void SuifPrinterModule::unset_use_print_string () [inline]

bool SuifPrinterModule::use_print_ref_string () const [inline]

bool SuifPrinterModule::use_print_string () const [inline]


Member Data Documentation

LString SuifPrinterModule::ClassName [static]


The documentation for this class was generated from the following files:
Generated at Mon Jul 31 13:44:41 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000