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