KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | Protected Attributes | List of all members
KVEnv Class Reference

Extension of TEnv to allow the writing of comments in the file.

Created by KVClassFactory on Mon Jan 14 12:23:45 2013 Author: bonnet

Definition at line 16 of file KVEnv.h.

Public Member Functions

 KVEnv (const char *name="")
 Write your code here. More...
 
 KVEnv (const KVEnv &obj)
 
virtual ~KVEnv ()
 Destructor. More...
 
void AddCommentLine (const Char_t *line)
 
void AddComments (const Char_t *comments)
 
void ClearComments ()
 
void Copy (TObject &obj) const
 
void CopyTable (TEnv &env)
 Copy table of env to this. More...
 
void PrintComments ()
 
virtual Int_t WriteFile (const char *fname, EEnvLevel level=kEnvAll)
 
- Public Member Functions inherited from TEnv
 TEnv (const char *name="")
 
virtual ~TEnv ()
 
Bool_t Defined (const char *name) const
 
virtual const char * GetRcName () const
 
THashListGetTable () const
 
virtual const char * GetValue (const char *name, const char *dflt) const
 
virtual Double_t GetValue (const char *name, Double_t dflt) const
 
virtual Int_t GetValue (const char *name, Int_t dflt) const
 
Bool_t IgnoreDuplicates (Bool_t ignore)
 
virtual TEnvRecLookup (const char *n) const
 
virtual void Print (Option_t *option="") const
 
virtual void PrintEnv (EEnvLevel level=kEnvAll) const
 
virtual Int_t ReadFile (const char *fname, EEnvLevel level)
 
virtual void Save ()
 
virtual void SaveLevel (EEnvLevel level)
 
virtual void SetRcName (const char *name)
 
virtual void SetValue (const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=nullptr)
 
virtual void SetValue (const char *name, Double_t value)
 
virtual void SetValue (const char *name, EEnvLevel level=kEnvChange)
 
virtual void SetValue (const char *name, Int_t value)
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
virtual void Browse (TBrowser *b)
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 
virtual Int_t Compare (const TObject *obj) const
 
virtual void Delete (Option_t *option="")
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void Draw (Option_t *option="")
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *option="") const
 
virtual void Dump () const
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual const char * GetName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
virtual ULong_t Hash () const
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
virtual void Inspect () const
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 
virtual Bool_t IsFolder () const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete[] (void *ptr)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Paint (Option_t *option="")
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
virtual void RecursiveRemove (TObject *obj)
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetUniqueID (UInt_t uid)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 

Protected Attributes

TList fComments
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

Additional Inherited Members

- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Static Public Member Functions inherited from TObject
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 

#include <KVEnv.h>

Inheritance diagram for KVEnv:
Inheritance graph
[legend]

Constructor & Destructor Documentation

◆ KVEnv() [1/2]

KVEnv::KVEnv ( const KVEnv obj)

Copy constructor This ctor is used to make a copy of an existing object (for example when a method returns an object), and it is always a good idea to implement it. If your class allocates memory in its constructor(s) then it is ESSENTIAL :-)

Definition at line 22 of file KVEnv.cpp.

◆ KVEnv() [2/2]

KVEnv::KVEnv ( const char *  name = "")

Write your code here.

Definition at line 39 of file KVEnv.cpp.

◆ ~KVEnv()

KVEnv::~KVEnv ( )
virtual

Destructor.

Definition at line 49 of file KVEnv.cpp.

Member Function Documentation

◆ AddCommentLine()

void KVEnv::AddCommentLine ( const Char_t line)

Add a comment for the current TEnv the line will started with "# " prefix and will be ended with "\n" postfix

Definition at line 104 of file KVEnv.cpp.

◆ AddComments()

void KVEnv::AddComments ( const Char_t comments)

Add comments the comments can contains "\n" character each line contained in the comments will begin with "# " prefix and will be ended with "\n" postfix

Definition at line 123 of file KVEnv.cpp.

◆ ClearComments()

void KVEnv::ClearComments ( )

Definition at line 142 of file KVEnv.cpp.

◆ Copy()

void KVEnv::Copy ( TObject obj) const
virtual

This method copies the current state of 'this' object into 'obj' You should add here any member variables, for example: (supposing a member variable KVEnv::fToto) CastedObj.fToto = fToto; or CastedObj.SetToto( GetToto() );

Reimplemented from TObject.

Definition at line 65 of file KVEnv.cpp.

◆ CopyTable()

void KVEnv::CopyTable ( TEnv env)

Copy table of env to this.

Definition at line 82 of file KVEnv.cpp.

◆ PrintComments()

void KVEnv::PrintComments ( )

print comments as they will be written in the file

Definition at line 153 of file KVEnv.cpp.

◆ WriteFile()

Int_t KVEnv::WriteFile ( const char *  fname,
EEnvLevel  level = kEnvAll 
)
virtual

Write first comments associated to the current TEnv Write resourse records to file fname for a certain level. Use level kEnvAll to write all resources. Returns -1 on case of error, 0 in case of success.

Reimplemented from TEnv.

Definition at line 174 of file KVEnv.cpp.

Member Data Documentation

◆ fComments

TList KVEnv::fComments
protected

Definition at line 18 of file KVEnv.h.


The documentation for this class was generated from the following files: