rooObj


class description - source file - inheritance tree

class rooObj : public roo


    public:
rooObj rooObj() rooObj rooObj(void* imp) rooObj rooObj(const rooObj&) virtual void ~rooObj() virtual void Browse(TBrowser* b) Bool_t checkin() const Bool_t checkout(Int_t mode) const TClass* Class() Bool_t close() const rooContObj containedIn() const void delete_object() Bool_t getDefaultVers(rooObj& refH) const virtual const char* GetName() const Bool_t getNameObj(rooObjItr& itr) const Bool_t getNameScope(rooObjItr& itr) const Bool_t getNextVers(rooObj& next, Int_t openMode = kooNoOpen) const TString getObjName(const rooObj& scope) const TString getObjName() const Bool_t getPrevVers(rooObj& prev) const virtual const char* GetTitle() const Int_t getVersStatus() const Bool_t is_null() const virtual TClass* IsA() const virtual Bool_t IsFolder() Bool_t isValid() const Bool_t lock(Int_t lockMode) const Bool_t lockNoProp(Int_t lockMode) const Bool_t lookupObj(const rooObj& scope, const TString& name, Int_t openMode = kooRead) const Bool_t lookupObj(const TString& name, Int_t openMode = kooRead) const virtual void ls(Option_t* option) Bool_t move(const rooObj& cont) TString nameObj(const rooObj& scope, const TString& name) const TString nameObj(const TString& name) const Bool_t open(Int_t openMode = kooRead) const Int_t openMode() const int operator int() const Bool_t operator!=(const rooObj& objH) const rooObj& operator=(const rooObj&) Bool_t operator==(const rooObj& objH) const void print(FILE* fp = stdout) const virtual void Print(Option_t* option) Bool_t setDefaultVers() const Bool_t setVersStatus(Int_t versMode) const virtual void ShowMembers(TMemberInspector& insp, char* parent) TString sprint() const virtual void Streamer(TBuffer& b) virtual Int_t typeN() const virtual TString typeName() const Bool_t unnameObj(const rooObj& scope, const TString& name) const Bool_t unnameObj(const TString& name) const Bool_t update() const

Data Members

protected:
TString fTitle TString fName


See also

rooContObj, rooDBObj, rooFDObj, rooObjItr

Class Description

 rooObj corresponds to ooHandle(ooObj) class

rooObj()
 default ctor

~rooObj()
 dtor.

rooObj(const rooObj& objH)
 copy ctor.

Bool_t checkin() const
 Cheks in the basic object

Bool_t checkout(Int_t mode) const
 Checks out the basic object in the indicated mode

Bool_t close() const
 Closes the basic object referenced by the object reference or handle.

rooContObj containedIn() const
 Returns a handle of container that contains the referenced
 basic object.

void delete_object()
 Delete the object referenced by this handle

Bool_t getDefaultVers(rooObj& refH) const
 Returns object handle to default version of the basic object.

Bool_t getNameObj(rooObjItr& itr) const
 Initializes iterator itr to find all named basic objects in a given scope.

Bool_t getNameScope(rooObjItr& itr) const
 Initializes iterator itr to traverse basic objects that serve as a name
 scope.

Bool_t getNextVers(rooObj& next,Int_t openMode) const
 Initializes next iterator to traverse all next versions of the
 basic object. Objects of the iteration are automatically opened in mode
 openMode. If no next versions exist, an empty iterator is returned (the
 first next member function invocation will return kFALSE).

TString getObjName(const rooObj& scope) const
 Returns the name of the basic object in the given scope.

TString getObjName() const
 Returns the name of the basic object in the given scope.

Bool_t getPrevVers(rooObj& prev) const
 Returns object handle to previous version of the basic object.

Int_t getVersStatus() const
 Returns current versioning mode of referenced basic object.

Bool_t isValid() const
 Checks the validity of an object handle, but does not check
 the type. A value of kTRUE returned by isValid indicates only that
 the object reference or handle is valid; that is, that it points to a
 basic object in the federated database; it does not indicate that the
 type of that basic object corresponds to the type of the object
 reference or handle.

Bool_t is_null() const

Bool_t lock(Int_t lockMode) const
 Explicitly locks the basic object and propagates the lock to any basic
 objects associated through links that have lock propagation enabled.

Bool_t lockNoProp(Int_t lockMode) const
  Explicitly locks the basic object without propagation semantics

Bool_t lookupObj( const rooObj& scope, const TString& name, Int_t openMode) const
 Sets object handle to reference the basic object matching
 the named name in the scope of the handle
 scope, and opens the basic object in mode openMode (default is
 kooRead). Default scope object is gooTopDB.

Bool_t lookupObj(const TString& name,Int_t openMode) const
 Sets object handle to reference the basic object matching
 the named name, and opens the basic object in mode openMode (default is
 kooRead). Default scope object is gooTopDB.

Bool_t move(const rooObj& cont)
 Moves the basic object to different container

TString nameObj(const rooObj& scope,const TString& name) const
 Assigns the referenced basic object the scope name name in the scope
 specified by handle scope. Default scope is gooTopDB.

TString nameObj(const TString& name) const
 Assigns the referenced basic object the scope name name in the scope
 of gooTopDB.

Bool_t open(Int_t openMode) const
 Opens the referenced basic object in the access mode specified by
 openMode.
 Valid values for openMode are the constants kooRead and
 kooUpdate. The default open mode is kooRead.
 Any number of processes may open the same basic object for read
 access as long as no process has it open for update access. No process
 may open a basic object for update access if any other process has it
 open for read access. No other process may open a basic object if any
 other process has it open for update access unless MROW is in effect.
 The access restrictions imposed by a process's access to a basic object
 applies until the transaction in which the basic object was opened is
 terminated (either committed or aborted).

Int_t openMode() const
 Returns the mode in which the basic object currently referenced has
 been opened.

void print(FILE* fp) const
 Prints information about the object, including its object identifier
 (OID), class, and open mode.

Bool_t setDefaultVers() const
 Sets default version to the current basic object.

Bool_t setVersStatus(Int_t versMode) const
 Sets the versioning mode for the referenced basic object to versMode.

TString sprint() const
 Returns a string representation of the object's identifier (OID). If a
 pointer is passed in, sprint stores the string in the buffer; otherwise
 the string is stored in a statically allocated buffer and should be copied
 before the next call to sprint.

Int_t typeN() const
 Returns the type number of the referenced basic object.

TString typeName() const
 Return string containing class name of the basic object currently
 referenced

Bool_t unnameObj(const rooObj& scope, const TString& name) const
 Removes the basic object name name in the scope specified by scope.
 Default scope object is gooTopDB.

Bool_t unnameObj(const TString& name) const
 Removes the basic object name name in the scope specified by gooTopDB.

Bool_t update() const
 Opens the referenced basic object in update access mode.

void Print(Option_t *option)
 print out persistent data for object referenced by this handle

void Browse(TBrowser *b)
 browse the object data



Inline Functions


             rooObj rooObj(const rooObj&)
            rooObj& operator=(const rooObj&)
             Bool_t operator==(const rooObj& objH) const
             Bool_t operator!=(const rooObj& objH) const
                int operator int() const
               void ls(Option_t* option)
        const char* GetName() const
        const char* GetTitle() const
             Bool_t IsFolder()
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)


Author: Valeriy Onuchin 11/09/2000


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.