00001 // ===================================================================== 00036 // ===================================================================== 00037 #ifndef CLDAQ__TOBJECTSTREAM_HH 00038 #define CLDAQ__TOBJECTSTREAM_HH 00039 00040 #include "Tglobals.h" 00041 00042 class TObjectFilter; 00043 00044 00064 class TObjectStream 00065 { 00066 00067 protected: 00069 Tstream_t theStreamType; 00071 Tint theDataSize; 00073 Tint theLastDataSize; 00075 Tint theTotalDataSize; 00076 00077 public: 00078 TObjectStream( Tstream_t streamtype = tUnknownStream ); 00079 00080 protected: 00081 virtual ~TObjectStream(); 00082 00083 public: 00084 Tstream_t GetStreamType() const; 00085 Tint GetDataSize() const; 00086 Tint GetLastDataSize() const; 00087 Tint GetTotalDataSize() const; 00088 Tvoid SetStreamType( Tstream_t streamtype ); 00089 Tvoid SetDataSize( Tint datasize ); 00090 Tvoid SetLastDataSize( Tint datasize ); 00091 Tvoid SetTotalDataSize( Tint datasize ); 00092 00093 #ifdef __CLDAQ_ROOT_DLL 00094 ClassDef(TObjectStream,0) 00095 #endif 00096 00097 }; 00098 00099 inline Tint TObjectStream::GetDataSize() const 00100 { 00101 return theDataSize; 00102 } 00103 00104 inline Tint TObjectStream::GetLastDataSize() const 00105 { 00106 return theLastDataSize; 00107 } 00108 00109 inline Tvoid TObjectStream::SetDataSize( Tint datasize ) 00110 { 00111 theDataSize = datasize; 00112 return; 00113 } 00114 00115 inline Tvoid TObjectStream::SetLastDataSize( Tint datasize ) 00116 { 00117 theLastDataSize = datasize; 00118 return; 00119 } 00120 00121 inline Tstream_t TObjectStream::GetStreamType() const 00122 { 00123 return theStreamType; 00124 } 00125 00126 inline Tvoid TObjectStream::SetStreamType( Tstream_t streamtype ) 00127 { 00128 theStreamType = streamtype; 00129 return; 00130 } 00131 00132 inline Tint TObjectStream::GetTotalDataSize() const 00133 { 00134 return theTotalDataSize; 00135 } 00136 00137 inline Tvoid TObjectStream::SetTotalDataSize( Tint datasize ) 00138 { 00139 theTotalDataSize = datasize; 00140 return; 00141 } 00142 00143 #endif