TMessage


class description - source file - inheritance tree

class TMessage : public TBuffer

    private:
TMessage TMessage(const TMessage&) TMessage TMessage(void* buf, Int_t bufsize) void operator=(const TMessage&) void SetLength() const public:
TMessage TMessage(UInt_t what = kMESS_ANY) virtual void ~TMessage() static TClass* Class() void Forward() TClass* GetClass() const virtual TClass* IsA() const virtual void Reset() void Reset(UInt_t what) void SetWhat(UInt_t what) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) UInt_t What() const void WriteObject(const TObject* obj)

Data Members

private:
UInt_t fWhat message type TClass* fClass if message is kMESS_OBJECT, pointer to object's class

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) : TBuffer(kWrite)
 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.

TMessage(void *buf, Int_t bufsize) : TBuffer(kRead, bufsize, buf)
 Create a TMessage object for reading objects. The objects will be
 read from buf. Use the What() method to get the message type.

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() const
 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.

void WriteObject(const TObject *obj)
 Write object to I/O buffer. Just make sure that the TStreamerInfo object
 is not added to the currently open file.



Inline Functions


               void operator=(const TMessage&)
           TMessage TMessage(UInt_t what = kMESS_ANY)
            TClass* GetClass() const
               void Reset(UInt_t what)
             UInt_t What() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
               void ~TMessage()


Author: Fons Rademakers 19/12/96
Last update: root/net:$Name: $:$Id: TMessage.cxx,v 1.3 2000/12/12 18:20:02 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - 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.