#ifndef ROOT_TMessage
#define ROOT_TMessage
#ifndef ROOT_TBufferFile
#include "TBufferFile.h"
#endif
#ifndef ROOT_MessageTypes
#include "MessageTypes.h"
#endif
#ifndef ROOT_TBits
#include "TBits.h"
#endif
class TList;
class TVirtualStreamerInfo;
class TMessage : public TBufferFile {
friend class TAuthenticate;
friend class TSocket;
friend class TPSocket;
friend class TXSocket;
private:
TList *fInfos;
TBits fBitsPIDs;
UInt_t fWhat;
TClass *fClass;
Int_t fCompress;
char *fBufComp;
char *fBufCompCur;
char *fCompPos;
Bool_t fEvolution;
static Bool_t fgEvolution;
TMessage(const TMessage &);
void operator=(const TMessage &);
protected:
TMessage(void *buf, Int_t bufsize);
void SetLength() const;
public:
TMessage(UInt_t what = kMESS_ANY);
virtual ~TMessage();
void ForceWriteInfo(TVirtualStreamerInfo *info, Bool_t force);
void Forward();
TClass *GetClass() const { return fClass;}
void IncrementLevel(TVirtualStreamerInfo* info);
void Reset();
void Reset(UInt_t what) { SetWhat(what); Reset(); }
UInt_t What() const { return fWhat; }
void SetWhat(UInt_t what);
void EnableSchemaEvolution(Bool_t enable = kTRUE) { fEvolution = enable; }
Bool_t UsesSchemaEvolution() const { return fEvolution; }
void SetCompressionLevel(Int_t level = 1);
Int_t GetCompressionLevel() const { return fCompress; }
Int_t Compress();
Int_t Uncompress();
char *CompBuffer() const { return fBufComp; }
Int_t CompLength() const { return (Int_t)(fBufCompCur - fBufComp); }
Bool_t TestBitNumber(UInt_t bitnumber) const {return fBitsPIDs.TestBitNumber(bitnumber);}
void WriteObject(const TObject *obj);
UShort_t WriteProcessID(TProcessID *pid);
static void EnableSchemaEvolutionForAll(Bool_t enable = kTRUE);
static Bool_t UsesSchemaEvolutionForAll();
ClassDef(TMessage,0)
};
#endif
Last change: Wed Dec 17 08:53:17 2008
Last generated: 2008-12-17 08:53
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.