#include <suif_print.h>
Inheritance diagram for formater:
Public Methods | |
formater (SuifEnv *suif, vtty *text, int depth=-1 , int detail = PRINT_BRIEF) | |
ApplyStatus | operator() (SuifObject *zot) |
Subclasses must override this to perform their actions. | |
void | set_current_filter ( const LString **filter ) |
virtual void | print_zot (const SuifObject *the_zot, fstream& the_ion) |
virtual void | print_zot_ref ( const SuifObject *the_zot, fstream& the_ion) |
virtual int | get_depth () |
virtual void | print_zot_prefix (const SuifObject *the_zot, fstream& the_ion) |
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... | |
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... | |
Public Attributes | |
vtty* | _text |
int | _depth |
bool | _first |
bool | _want_tag |
int | _detail |
vnode* | _vnode |
bool | _want_fold |
list<vnode *> | vnode_list |
Static Public Attributes | |
const LString* | mark_filter [] = { new LString("/mrk"), new LString("/mrk_inst"), 0 } |
const LString* | null_filter [] = { 0 } |
Protected Methods | |
virtual vnode* | make_tag_begin ( const SuifObject* the_zot, bool want_fold = false ) |
virtual void | make_tag_end ( vnode* vn ) |
virtual void | handle_zot (SuifObject* the_zot ) |
virtual void | handle_for_statement ( ForStatement* the_zot ) |
virtual void | handle_scope_statement ( ScopeStatement* the_zot ) |
virtual void | handle_while_statement ( WhileStatement* the_zot ) |
virtual void | handle_zot_with_tag ( const SuifObject* the_zot ) |
virtual bool | prepend_tag ( const SuifObject* ) |
virtual bool | filter_tag ( const SuifObject* ) |
Protected Attributes | |
const LString** | _current_filter |
Static Protected Methods | |
void | print_helper ( vtty *text, vnode *tn_vnode, int depth, int detail, void *pr) |
Static Protected Attributes | |
LString* | tag_list [] = { new LString("/scope"), new LString("/while"), new LString("/for"), new LString("/if"), 0 } |
|
|
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 from SuifPrinterModule.
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from default_zot_print_helper.
|
Reimplemented from default_zot_print_helper.
|
Reimplemented from default_zot_print_helper.
|
|
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 from SuifPrinterModule.
|
|
|
|
|
|
|
|
|
|
|
|