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);
61 virtual bool isValid(
void)
override {
return valid; };
64 virtual bool prnLine(
const char* str = NULL)
override;
86 unsigned int GetNbChildrenRef()
const;
117 unsigned int GetNbChildrenRef()
const;
120 const trpgChildRef* GetChildRef(
unsigned int idx)
const;
148 #define TRPGPRN_ALL -1
149 #define TRPGPRN_HEADER (1<<0)
150 #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
virtual ~trpgPrintGraphParser(void) override
Definition: trpage_print.h:80
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:148
ReadHelper(trpgPrintGraphParser *inPG, trpgPrintBuffer *inBuf)
Definition: trpage_print.h:107
#define DT_DLL_osgdb_vrftxp
Contains DLL export macros.
Definition: osgdb_vrftxpDefines.h:25
trpgPrintGraphParser * parse
Definition: trpage_print.h:123
Definition: trpage_print.h:53
trpgrImageHelper * imageHelp
Definition: trpage_print.h:140
std::vector< trpgChildRef > ChildRefList
typedef std::vector<const trpgChildRef> ChildRefList; The const in the template parameter was removed b...
Definition: trpage_print.h:105
virtual ~trpgPrintBuffer(void)
Definition: trpage_print.h:32
trpgr_Archive * archive
Definition: trpage_print.h:139
trpgrImageHelper * GetImageHelp()
Definition: trpage_print.h:132
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:122
#define TX_CPPDECL
Exports a C++ function properly in a windows DLL.
Definition: trdll.h:71
ChildRefList childRefList
Definition: trpage_print.h:127
Definition: trpage_read.h:185
{secret}
Definition: trpage_read.h:32
ReadHelper * childRefCB
Definition: trpage_print.h:142
Definition: trpage_print.h:28
FILE * fp
Definition: trpage_print.h:68
virtual bool isValid(void) override
Check if file print buffer is valid (i.e. if file was opened)
Definition: trpage_print.h:61
trpgr_Archive * GetArchive()
Fetch the archive associated with this print.
Definition: trpage_print.h:131
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
virtual ~ReadHelper() override
Definition: trpage_print.h:112
trpgPrintBuffer * printBuf
Definition: trpage_print.h:138
short trpgToken
16 bit token definition value. These are values such as TRPGTEXTABLE or TRPG_ATTACH, etc...
Definition: trpage_io.h:61