library: libCore
#include "TMessage.h"

TMessage


class description - header file - source file
viewCVS header - viewCVS source

class TMessage: public TBuffer

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TMessage(UInt_t what = kMESS_ANY)
virtual~TMessage()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
char*TBuffer::Buffer() const
Int_tTBuffer::BufferSize() const
virtual Int_tTBuffer::CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass* clss)
virtual Int_tTBuffer::CheckByteCount(UInt_t startpos, UInt_t bcnt, const char* classname)
Bool_tTBuffer::CheckObject(const TObject* obj)
Bool_tTBuffer::CheckObject(const void* obj, const TClass* ptrClass)
static TClass*Class()
virtual voidTBuffer::ClassBegin(const TClass*, Version_t = -1)
virtual voidTBuffer::ClassEnd(const TClass*)
virtual voidTBuffer::ClassMember(const char*, const char* = "0", Int_t = -1, Int_t = -1)
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
char*CompBuffer() const
Int_tCompLength() const
Int_tCompress()
virtual voidTObject::Copy(TObject& object) const
virtual voidTBuffer::DecrementLevel(TStreamerInfo*)
virtual voidTObject::Delete(Option_t* option = "")
voidTBuffer::DetachBuffer()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
voidForward()
Int_tTBuffer::GetBufferDisplacement() const
Int_tTBuffer::GetBufferVersion() const
TClass*GetClass() const
Int_tGetCompressionLevel() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
static Int_tTBuffer::GetGlobalReadParam()
static Int_tTBuffer::GetGlobalWriteParam()
virtual const char*TObject::GetIconName() const
TStreamerInfo*TBuffer::GetInfo()
Int_tTBuffer::GetMapCount() const
voidTBuffer::GetMappedObject(UInt_t tag, void*& ptr, TClass*& ClassPtr) const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TObject*TBuffer::GetParent() const
UShort_tTBuffer::GetPidOffset() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTBuffer::IncrementLevel(TStreamerInfo* info)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
voidTBuffer::InitMap()
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
Bool_tTBuffer::IsReading() const
virtual Bool_tTObject::IsSortable() const
Bool_tTBuffer::IsWriting() const
Bool_tTObject::IsZombie() const
Int_tTBuffer::Length() const
virtual voidTObject::ls(Option_t* option = "") const
voidTBuffer::MapObject(const TObject* obj, UInt_t offset = 1)
voidTBuffer::MapObject(const void* obj, const TClass* cl, UInt_t offset = 1)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual TBuffer&TBuffer::operator<<(Bool_t b)
virtual TBuffer&TBuffer::operator<<(Char_t c)
virtual TBuffer&TBuffer::operator<<(UChar_t c)
virtual TBuffer&TBuffer::operator<<(Short_t h)
virtual TBuffer&TBuffer::operator<<(UShort_t h)
virtual TBuffer&TBuffer::operator<<(Int_t i)
virtual TBuffer&TBuffer::operator<<(UInt_t i)
virtual TBuffer&TBuffer::operator<<(Long_t l)
virtual TBuffer&TBuffer::operator<<(ULong_t l)
virtual TBuffer&TBuffer::operator<<(Long64_t ll)
virtual TBuffer&TBuffer::operator<<(ULong64_t ll)
virtual TBuffer&TBuffer::operator<<(Float_t f)
virtual TBuffer&TBuffer::operator<<(Double_t d)
virtual TBuffer&TBuffer::operator<<(const Char_t* c)
virtual TBuffer&TBuffer::operator>>(Bool_t& b)
virtual TBuffer&TBuffer::operator>>(Char_t& c)
virtual TBuffer&TBuffer::operator>>(UChar_t& c)
virtual TBuffer&TBuffer::operator>>(Short_t& h)
virtual TBuffer&TBuffer::operator>>(UShort_t& h)
virtual TBuffer&TBuffer::operator>>(Int_t& i)
virtual TBuffer&TBuffer::operator>>(UInt_t& i)
virtual TBuffer&TBuffer::operator>>(Long_t& l)
virtual TBuffer&TBuffer::operator>>(ULong_t& l)
virtual TBuffer&TBuffer::operator>>(Long64_t& ll)
virtual TBuffer&TBuffer::operator>>(ULong64_t& ll)
virtual TBuffer&TBuffer::operator>>(Float_t& f)
virtual TBuffer&TBuffer::operator>>(Double_t& d)
virtual TBuffer&TBuffer::operator>>(Char_t* c)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTBuffer::ReadArray(Bool_t*& b)
virtual Int_tTBuffer::ReadArray(Char_t*& c)
virtual Int_tTBuffer::ReadArray(UChar_t*& c)
virtual Int_tTBuffer::ReadArray(Short_t*& h)
virtual Int_tTBuffer::ReadArray(UShort_t*& h)
virtual Int_tTBuffer::ReadArray(Int_t*& i)
virtual Int_tTBuffer::ReadArray(UInt_t*& i)
virtual Int_tTBuffer::ReadArray(Long_t*& l)
virtual Int_tTBuffer::ReadArray(ULong_t*& l)
virtual Int_tTBuffer::ReadArray(Long64_t*& l)
virtual Int_tTBuffer::ReadArray(ULong64_t*& ll)
virtual Int_tTBuffer::ReadArray(Float_t*& f)
virtual Int_tTBuffer::ReadArray(Double_t*& d)
virtual Int_tTBuffer::ReadArrayDouble32(Double_t*& d, TStreamerElement* ele = 0)
Int_tTBuffer::ReadBuf(void* buf, Int_t max)
virtual TClass*TBuffer::ReadClass(const TClass* cl = 0, UInt_t* objTag = 0)
virtual voidTBuffer::ReadDouble32(Double_t* d, TStreamerElement* ele = 0)
virtual voidTBuffer::ReadFastArray(Bool_t* b, Int_t n)
virtual voidTBuffer::ReadFastArray(Char_t* c, Int_t n)
virtual voidTBuffer::ReadFastArray(UChar_t* c, Int_t n)
virtual voidTBuffer::ReadFastArray(Short_t* h, Int_t n)
virtual voidTBuffer::ReadFastArray(UShort_t* h, Int_t n)
virtual voidTBuffer::ReadFastArray(Int_t* i, Int_t n)
virtual voidTBuffer::ReadFastArray(UInt_t* i, Int_t n)
virtual voidTBuffer::ReadFastArray(Long_t* l, Int_t n)
virtual voidTBuffer::ReadFastArray(ULong_t* l, Int_t n)
virtual voidTBuffer::ReadFastArray(Long64_t* l, Int_t n)
virtual voidTBuffer::ReadFastArray(ULong64_t* ll, Int_t n)
virtual voidTBuffer::ReadFastArray(Float_t* f, Int_t n)
virtual voidTBuffer::ReadFastArray(Double_t* d, Int_t n)
virtual voidTBuffer::ReadFastArray(void* start, const TClass* cl, Int_t n = 1, TMemberStreamer* s = 0)
virtual voidTBuffer::ReadFastArray(void** startp, const TClass* cl, Int_t n = 1, Bool_t isPreAlloc = kFALSE, TMemberStreamer* s = 0)
virtual voidTBuffer::ReadFastArrayDouble32(Double_t* d, Int_t n, TStreamerElement* ele = 0)
virtual voidTBuffer::ReadFastArrayString(Char_t* c, Int_t n)
virtual TObject*TBuffer::ReadObject(const TClass* cl)
virtual void*TBuffer::ReadObjectAny(const TClass* cast)
virtual Int_tTBuffer::ReadStaticArray(Bool_t* b)
virtual Int_tTBuffer::ReadStaticArray(Char_t* c)
virtual Int_tTBuffer::ReadStaticArray(UChar_t* c)
virtual Int_tTBuffer::ReadStaticArray(Short_t* h)
virtual Int_tTBuffer::ReadStaticArray(UShort_t* h)
virtual Int_tTBuffer::ReadStaticArray(Int_t* i)
virtual Int_tTBuffer::ReadStaticArray(UInt_t* i)
virtual Int_tTBuffer::ReadStaticArray(Long_t* l)
virtual Int_tTBuffer::ReadStaticArray(ULong_t* l)
virtual Int_tTBuffer::ReadStaticArray(Long64_t* l)
virtual Int_tTBuffer::ReadStaticArray(ULong64_t* ll)
virtual Int_tTBuffer::ReadStaticArray(Float_t* f)
virtual Int_tTBuffer::ReadStaticArray(Double_t* d)
virtual Int_tTBuffer::ReadStaticArrayDouble32(Double_t* d, TStreamerElement* ele = 0)
char*TBuffer::ReadString(char* s, Int_t max)
virtual Version_tTBuffer::ReadVersion(UInt_t* start = 0, UInt_t* bcnt = 0, const TClass* cl = 0)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidReset()
voidReset(UInt_t what)
voidTObject::ResetBit(UInt_t f)
voidTBuffer::ResetMap()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidTBuffer::SetBuffer(void* buf, UInt_t bufsiz = 0, Bool_t adopt = kTRUE)
voidTBuffer::SetBufferDisplacement()
voidTBuffer::SetBufferDisplacement(Int_t skipped)
voidTBuffer::SetBufferOffset(Int_t offset = 0)
virtual voidTBuffer::SetByteCount(UInt_t cntpos, Bool_t packInVersion = kFALSE)
voidSetCompressionLevel(Int_t level = 1)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
static voidTBuffer::SetGlobalReadParam(Int_t mapsize)
static voidTBuffer::SetGlobalWriteParam(Int_t mapsize)
static voidTObject::SetObjectStat(Bool_t stat)
voidTBuffer::SetParent(TObject* parent)
voidTBuffer::SetPidOffset(UShort_t offset)
voidTBuffer::SetReadMode()
voidTBuffer::SetReadParam(Int_t mapsize)
virtual voidTBuffer::SetStreamerElementNumber(Int_t)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetWhat(UInt_t what)
voidTBuffer::SetWriteMode()
voidTBuffer::SetWriteParam(Int_t mapsize)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTBuffer::SkipObjectAny()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTBuffer::StreamObject(TObject* obj)
virtual voidTBuffer::StreamObject(void* obj, const type_info& typeinfo)
virtual voidTBuffer::StreamObject(void* obj, const char* className)
virtual voidTBuffer::StreamObject(void* obj, const TClass* cl)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
Int_tUncompress()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
UInt_tWhat() const
virtual voidTBuffer::WriteArray(const Bool_t* b, Int_t n)
virtual voidTBuffer::WriteArray(const Char_t* c, Int_t n)
virtual voidTBuffer::WriteArray(const UChar_t* c, Int_t n)
virtual voidTBuffer::WriteArray(const Short_t* h, Int_t n)
virtual voidTBuffer::WriteArray(const UShort_t* h, Int_t n)
virtual voidTBuffer::WriteArray(const Int_t* i, Int_t n)
virtual voidTBuffer::WriteArray(const UInt_t* i, Int_t n)
virtual voidTBuffer::WriteArray(const Long_t* l, Int_t n)
virtual voidTBuffer::WriteArray(const ULong_t* l, Int_t n)
virtual voidTBuffer::WriteArray(const Long64_t* l, Int_t n)
virtual voidTBuffer::WriteArray(const ULong64_t* ll, Int_t n)
virtual voidTBuffer::WriteArray(const Float_t* f, Int_t n)
virtual voidTBuffer::WriteArray(const Double_t* d, Int_t n)
virtual voidTBuffer::WriteArrayDouble32(const Double_t* d, Int_t n, TStreamerElement* ele = 0)
voidTBuffer::WriteBuf(const void* buf, Int_t max)
virtual voidTBuffer::WriteClass(const TClass* cl)
virtual voidTBuffer::WriteDouble32(Double_t* d, TStreamerElement* ele = 0)
virtual voidTBuffer::WriteFastArray(const Bool_t* b, Int_t n)
virtual voidTBuffer::WriteFastArray(const Char_t* c, Int_t n)
virtual voidTBuffer::WriteFastArray(const UChar_t* c, Int_t n)
virtual voidTBuffer::WriteFastArray(const Short_t* h, Int_t n)
virtual voidTBuffer::WriteFastArray(const UShort_t* h, Int_t n)
virtual voidTBuffer::WriteFastArray(const Int_t* i, Int_t n)
virtual voidTBuffer::WriteFastArray(const UInt_t* i, Int_t n)
virtual voidTBuffer::WriteFastArray(const Long_t* l, Int_t n)
virtual voidTBuffer::WriteFastArray(const ULong_t* l, Int_t n)
virtual voidTBuffer::WriteFastArray(const Long64_t* l, Int_t n)
virtual voidTBuffer::WriteFastArray(const ULong64_t* ll, Int_t n)
virtual voidTBuffer::WriteFastArray(const Float_t* f, Int_t n)
virtual voidTBuffer::WriteFastArray(const Double_t* d, Int_t n)
virtual voidTBuffer::WriteFastArray(void* start, const TClass* cl, Int_t n = 1, TMemberStreamer* s = 0)
virtual Int_tTBuffer::WriteFastArray(void** startp, const TClass* cl, Int_t n = 1, Bool_t isPreAlloc = kFALSE, TMemberStreamer* s = 0)
virtual voidTBuffer::WriteFastArrayDouble32(const Double_t* d, Int_t n, TStreamerElement* ele = 0)
virtual voidTBuffer::WriteFastArrayString(const Char_t* c, Int_t n)
virtual voidTBuffer::WriteObject(const TObject* obj)
virtual Int_tTBuffer::WriteObjectAny(const void* obj, const TClass* ptrClass)
voidTBuffer::WriteString(const char* s)
virtual UInt_tTBuffer::WriteVersion(const TClass* cl, Bool_t useBcnt = kFALSE)
virtual UInt_tTBuffer::WriteVersionMemberWise(const TClass* cl, Bool_t useBcnt = kFALSE)
protected:
TMessage(void* buf, Int_t bufsize)
Int_tTBuffer::CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass* clss, const char* classname)
voidTBuffer::CheckCount(UInt_t offset)
UInt_tTBuffer::CheckObject(UInt_t offset, const TClass* cl, Bool_t readClass = kFALSE)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTBuffer::Expand(Int_t newsize)
voidTObject::MakeZombie()
virtual Int_tTBuffer::Read(const char* name)
voidSetLength() const
virtual Int_tTBuffer::Write(const char* name, Int_t opt, Int_t bufs)
virtual Int_tTBuffer::Write(const char* name, Int_t opt, Int_t bufs) const
virtual voidTBuffer::WriteObject(const void* actualObjStart, const TClass* actualClass)
private:
TMessage(const TMessage&)
voidoperator=(const TMessage&)

Data Members

public:
enum TBuffer::EMode { kRead
kWrite
};
enum TBuffer::[unnamed] { kInitialSize
kMinimalSize
kMapSize
kStreamedMemberWise
kNotDecompressed
kIsOwner
kCannotHandleMemberWiseStreaming
kTextBasedStreaming
kUser1
kUser2
kUser3
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Bool_tTBuffer::fModeRead or write mode
Int_tTBuffer::fVersionBuffer format version
Int_tTBuffer::fBufSizeSize of buffer
char*TBuffer::fBufferBuffer used to store objects
char*TBuffer::fBufCurCurrent position in buffer
char*TBuffer::fBufMaxEnd of buffer
Int_tTBuffer::fMapCountNumber of objects or classes in map
Int_tTBuffer::fMapSizeDefault size of map
Int_tTBuffer::fDisplacementValue to be added to the map offsets
TExMap*TBuffer::fMapMap containing object,offset pairs for reading/writing
TExMap*TBuffer::fClassMapMap containing object,class pairs for reading
TObject*TBuffer::fParentPointer to the buffer parent (file) where buffer is read/written
TStreamerInfo*TBuffer::fInfoPointer to TStreamerInfo object writing/reading the buffer
vector<TStreamerInfo*,allocator<TStreamerInfo*> >TBuffer::fInfosStack of pointers to the TStreamerInfos
UShort_tTBuffer::fPidOffsetOffset to be added to the pid index in this key/buffer.
static Int_tTBuffer::fgMapSizeDefault map size for all TBuffer objects
private:
UInt_tfWhatMessage type
TClass*fClassIf message is kMESS_OBJECT pointer to object's class
Int_tfCompressCompression level from 0 (not compressed) to 9 (max compression)
char*fBufCompCompressed buffer
char*fBufCompCurCurrent position in compressed buffer
char*fCompPosPosition of fBufCur when message was compressed

Class Description

                                                                      
 TMessage                                                             
                                                                      
 Message buffer class used for serializing objects and sending them   
 over a network. This class inherits from TBuffer the basic I/O       
 serializer.                                                          
                                                                      

TMessage(UInt_t what)
 Create a TMessage object for storing objects. The "what" integer
 describes the type of message. Predifined ROOT system message types
 can be found in MessageTypes.h. Make sure your own message types are
 unique from the ROOT defined message types (i.e. 0 - 10000 are
 reserved by ROOT). In case you OR "what" with kMESS_ACK, the message
 will wait for an acknowledgement from the remote side. This makes
 the sending process synchronous. In case you OR "what" with kMESS_ZIP,
 the message will be compressed in TSocket using the zip algorithm
 (only if message is > 256 bytes).
TMessage(void *buf, Int_t bufsize)
 Create a TMessage object for reading objects. The objects will be
 read from buf. Use the What() method to get the message type.
~TMessage()
 Clean up compression buffer.
void Forward()
 Change a buffer that was received into one that can be send, i.e.
 forward a just received message.
void Reset()
 Reset the message buffer so we can use (i.e. fill) it again.
void SetLength()
 Set the message length at the beginning of the message buffer.
 This method is only called by TSocket::Send().
void SetWhat(UInt_t what)
 Using this method one can change the message type a-posteriory.
 In case you OR "what" with kMESS_ACK, the message will wait for
 an acknowledgement from the remote side. This makes the sending
 process synchronous.
void SetCompressionLevel(Int_t level)
 Set the message compression level. Can be between 0 and 9 with 0
 being no compression and 9 maximum compression. In general the default
 level of 1 is the best compromise between achieved compression and
 cpu time. Compression will only happen when the message is > 256 bytes.
Int_t Compress()
 Compress the message. The message will only be compressed if the
 compression level > 0 and the if the message is > 256 bytes.
 Returns -1 in case of error (when compression fails or
 when the message increases in size in some pathological cases),
 otherwise returns 0.
Int_t Uncompress()
 Uncompress the message. The message will only be uncompressed when
 kMESS_ZIP is set. Returns -1 in case of error, 0 otherwise.
TMessage(const TMessage &)
 TMessage objects cannot be copied or assigned
void operator=(const TMessage &)
TClass * GetClass()
{ return fClass; }
void Reset()
UInt_t What()
{ return fWhat; }
Int_t GetCompressionLevel()
{ return fCompress; }
char * CompBuffer()
{ return fBufComp; }
Int_t CompLength()
{ return (Int_t)(fBufCompCur - fBufComp); }

Author: Fons Rademakers 19/12/96
Last update: root/net:$Name: $:$Id: TMessage.cxx,v 1.6 2004/05/07 09:51:58 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

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.