16 #ifndef trpage_print_h_
17 #define trpage_print_h_
35 virtual bool isValid(
void) {
return true; }
38 virtual bool prnLine(
const char *str=NULL)=0;
41 virtual void IncreaseIndent(
int amount=1);
43 virtual void DecreaseIndent(
int amount=1);
45 void updateIndent(
void);
64 bool prnLine(
const char *str = NULL);
86 unsigned int GetNbChildrenRef()
const;
113 unsigned int GetNbChildrenRef()
const;
116 const trpgChildRef* GetChildRef(
unsigned int idx)
const;
144 #define TRPGPRN_ALL -1
145 #define TRPGPRN_HEADER (1<<0)
146 #define TRPGPRN_BODY (1<<1)
TX_CPPDECL bool trpgPrintArchive(char *filename, trpgPrintBuffer &pBuf, int flags=TRPGPRN_ALL)
virtual bool isValid(void)
Check if print buffer is valid.
Definition: trpage_print.h:35
int curIndent
Definition: trpage_print.h:46
Definition: trpage_read.h:256
bool valid
Definition: trpage_print.h:66
#define TRPGPRN_ALL
Print utitility for while archive.
Definition: trpage_print.h:144
ReadHelper(trpgPrintGraphParser *inPG, trpgPrintBuffer *inBuf)
Definition: trpage_print.h:107
virtual ~trpgPrintGraphParser(void)
Definition: trpage_print.h:80
#define DT_DLL_osgdb_vrftxp
Contains DLL export macros.
Definition: osgdb_vrftxpDefines.h:25
trpgPrintGraphParser * parse
Definition: trpage_print.h:119
Definition: trpage_print.h:53
trpgrImageHelper * imageHelp
Definition: trpage_print.h:136
bool isValid(void)
Check if file print buffer is valid (i.e. if file was opened)
Definition: trpage_print.h:61
std::vector< trpgChildRef > ChildRefList
typedef std::vector<const trpgChildRef> ChildRefList; The const in the template parameter was removed...
Definition: trpage_print.h:105
virtual ~trpgPrintBuffer(void)
Definition: trpage_print.h:32
trpgr_Archive * archive
Definition: trpage_print.h:135
trpgrImageHelper * GetImageHelp()
Definition: trpage_print.h:128
~ReadHelper()
Definition: trpage_print.h:108
voidpf void * buf
Definition: ioapi.h:39
Definition: trpage_print.h:96
virtual bool prnLine(const char *str=NULL)=0
The main print function. Subclasses must fill this in.
Definition: trpage_geom.h:2476
bool isMine
Definition: trpage_print.h:67
Definition: trpage_print.h:76
trpgPrintBuffer * pBuf
Definition: trpage_print.h:118
#define TX_CPPDECL
Exports a C++ function properly in a windows DLL.
Definition: trdll.h:71
ChildRefList childRefList
Definition: trpage_print.h:123
Definition: trpage_read.h:185
{secret}
Definition: trpage_read.h:32
ReadHelper * childRefCB
Definition: trpage_print.h:138
Definition: trpage_print.h:28
FILE * fp
Definition: trpage_print.h:68
trpgr_Archive * GetArchive()
Fetch the archive associated with this print.
Definition: trpage_print.h:127
virtual bool EndChildren(void *)
Definition: trpage_read.h:267
Definition: trpage_read.h:99
#define TX_EXDECL
Goes before "class" to handle DLL export in windows.
Definition: trdll.h:69
Definition: trpage_io.h:452
virtual bool StartChildren(void *)
Start defining children for the given object.
Definition: trpage_read.h:266
trpgPrintBuffer * printBuf
Definition: trpage_print.h:134
short trpgToken
16 bit token definition value. These are values such as TRPGTEXTABLE or TRPG_ATTACH, etc...
Definition: trpage_io.h:61