KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
Classes | Functions
KVBase.h File Reference
#include "KVConfig.h"
#include "TRandom3.h"
#include "TNamed.h"
#include "RVersion.h"
#include "TString.h"
#include "KVLockfile.h"
#include "Riostream.h"
#include "TPluginManager.h"
#include "TFile.h"
#include "TF1.h"
Include dependency graph for KVBase.h:

Classes

class  KVBase
 Base class for KaliVeda framework. More...
 

Functions

void AssignAndDelete (TString &target, char *tobedeleted)
 
Bool_t SearchFile (const Char_t *name, TString &fullpath, int ndirs,...)
 Search for file in an arbitrary number of locations, return kTRUE if file found and put full path to file in 'fullpath". More...
 

Function Documentation

◆ AssignAndDelete()

void AssignAndDelete ( TString target,
char *  tobedeleted 
)

this function is implemented in TSystem.cxx it can be used with TSystem::ConcatFileName to mop up the returned char* pointer

◆ SearchFile()

Bool_t SearchFile ( const Char_t name,
TString fullpath,
int  ndirs,
  ... 
)

Search for file in an arbitrary number of locations, return kTRUE if file found and put full path to file in 'fullpath".

Search for file in an arbitrary number of locations, return kTRUE if file found and put full path to file in 'fullpath"

'name' is a filename (not an absolute pathname) i.e. "toto.dat" 'fullpath" will contain the full path to the file if it is found (if file not found, fullpath="") 'ndirs" is the number of directories to search in the remaining arguments are the names of 'ndirs' paths to search in, i.e.

SearchFile("toto.dat", fullpath, 2, gSystem->pwd(), gSystem->HomeDirectory());

means: search for a file 'toto.dat' in current working directory, then user's home directory.

Definition at line 489 of file KVBase.cpp.