#include "TStatus.h"

# TStatus

class description - source file - inheritance tree (.ps)

## class TStatus : public TNamed

| Inheritance Chart:

`TObject`

<-

`TNamed`

<-

`TStatus`

        public:

                          TStatus()
                          TStatus(const TStatus&)
                  virtual ~TStatus()
                     void Add(const char* mesg)
           static TClass* Class()
          virtual TClass* IsA() const
                   Bool_t IsOk() const
            virtual Int_t Merge(TCollection* list)
              const char* NextMesg() const
                 TStatus& operator=(const TStatus&)
             virtual void Print(Option_t* option) const
                     void Reset()
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

                    set<string,less<string>,allocator<string> > fMsgs  list of error messages
          set<string,less<string>,allocator<string> >::iterator fIter  !iterator in messages

## Class Description

     TStatus

     This class holds the status of an ongoing operation and collects
     error messages. It provides a Merge() operation allowing it to
     be used in PROOF to monitor status in the slaves.
     No messages indicates success.

TStatus()

     Deafult constructor.

void Add(const char *mesg)

     Add an error message.

Int_t Merge(TCollection *list)

     PROOF Merge() function.

void Print(Option_t */*option*/) const

     Standard print function.

void Reset()

     Reset the iterator on the messages.

const char* NextMesg()

     Return the next message or 0.

### Inline Functions

                   void ~TStatus()
                 Bool_t IsOk() const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
                TStatus TStatus(const TStatus&)
               TStatus& operator=(const TStatus&)

Author: Maarten Ballintijn 7/06/2004
Last update: root/proof:$Name: $:$Id: TStatus.cxx,v 1.1 2004/07/09 01:34:51 rdm Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *