Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/txp/trpage_io.h
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/txp/trpage_io.h
r12536 r13041 49 49 #define TRPG_VERSION_MINOR 2 50 50 51 // defined values for the version that doesn't need 51 // defined values for the version that doesn't need 52 52 // a merge 53 53 #define TRPG_NOMERGE_VERSION_MAJOR 2 … … 79 79 // Added 11/14/98 - New material table 80 80 // {secret} 81 #define TRPGMATTABLE2 301 81 #define TRPGMATTABLE2 301 82 82 // Added 11/14/98 83 83 // {secret} 84 #define TRPGSHORTMATTABLE 302 84 #define TRPGSHORTMATTABLE 302 85 85 86 86 // {secret} … … 381 381 virtual ~trpgMemWriteBuffer(void); 382 382 // Return the current length of buffer 383 virtual int length(void) const; 383 virtual int length(void) const; 384 384 // Return the raw data (if you want to write to disk, for example) 385 virtual const char *getData(void) const; 385 virtual const char *getData(void) const; 386 386 // Allocate the given amount of space for the buffer 387 virtual void setLength(unsigned int); 387 virtual void setLength(unsigned int); 388 388 389 389 // Add a 32 bit integer to the buffer … … 518 518 /* This virtual method must be filled in by the subclass so that SkipToLimit 519 519 will work correctly. */ 520 virtual bool Skip(int) = 0; 520 virtual bool Skip(int) = 0; 521 521 /* Utility function that must be called after a successfull read to update 522 522 the outside imposed read limits. */ … … 536 536 ~trpgMemReadBuffer(void); 537 537 // Return true if we're out of data 538 bool isEmpty(void); 538 bool isEmpty(void); 539 539 // Sets the size of this read buffer. 540 540 void SetLength(int); … … 565 565 // Returns the state of the valid flag, or can be overriden by a subclass to do a more complex check. 566 566 bool isValid(void) const; 567 567 568 568 virtual TeAttrHdl GetHandle() const { 569 return handle; 569 return handle; 570 570 } 571 571 virtual void SetHandle(TeAttrHdl hdl) { … … 613 613 /* Every read/writeable must be able to reset itself to a pristine state 614 614 so that, for example, multiple objects of the same type can be read into 615 it, one after the other. */ 615 it, one after the other. */ 616 616 virtual void Reset(void) = 0; 617 617 /* The print method is optional. If it's not there, it won't do anything. … … 693 693 694 694 /* Archive File Cache. 695 This class keeps 695 This class keeps 696 696 */ 697 697 TX_EXDECL class TX_CLDECL trpgrAppFileCache {
