00001 // ===================================================================== 00029 // ===================================================================== 00030 #ifndef __TOBJECTSTREAM_HH 00031 #define __TOBJECTSTREAM_HH 00032 00033 #include "Tglobals.h" 00034 00035 class TObjectFilter; 00036 00037 00057 class TObjectStream 00058 { 00059 00060 protected: 00062 Tstream_t theStreamType; 00064 Tint theDataSize; 00066 Tint theLastDataSize; 00068 Tint theTotalDataSize; 00069 00070 public: 00071 TObjectStream( Tstream_t streamtype = tUnknownStream ); 00072 00073 protected: 00074 virtual ~TObjectStream(); 00075 00076 public: 00077 Tstream_t GetStreamType() const; 00078 Tint GetDataSize() const; 00079 Tint GetLastDataSize() const; 00080 Tint GetTotalDataSize() const; 00081 Tvoid SetStreamType( Tstream_t streamtype ); 00082 Tvoid SetDataSize( Tint datasize ); 00083 Tvoid SetLastDataSize( Tint datasize ); 00084 Tvoid SetTotalDataSize( Tint datasize ); 00085 00086 }; 00087 00088 inline Tint TObjectStream::GetDataSize() const 00089 { 00090 return theDataSize; 00091 } 00092 00093 inline Tint TObjectStream::GetLastDataSize() const 00094 { 00095 return theLastDataSize; 00096 } 00097 00098 inline Tvoid TObjectStream::SetDataSize( Tint datasize ) 00099 { 00100 theDataSize = datasize; 00101 return; 00102 } 00103 00104 inline Tvoid TObjectStream::SetLastDataSize( Tint datasize ) 00105 { 00106 theLastDataSize = datasize; 00107 return; 00108 } 00109 00110 inline Tstream_t TObjectStream::GetStreamType() const 00111 { 00112 return theStreamType; 00113 } 00114 00115 inline Tvoid TObjectStream::SetStreamType( Tstream_t streamtype ) 00116 { 00117 theStreamType = streamtype; 00118 return; 00119 } 00120 00121 inline Tint TObjectStream::GetTotalDataSize() const 00122 { 00123 return theTotalDataSize; 00124 } 00125 00126 inline Tvoid TObjectStream::SetTotalDataSize( Tint datasize ) 00127 { 00128 theTotalDataSize = datasize; 00129 return; 00130 } 00131 00132 #endif