Public Types | |
enum | { kDebug = 17 } |
enum | EContext_t { kUNKNOWN_CONTEXT =-1 , kSYS_UserName , kSYS_EnvVar , kCINT_stdout , kCINT_stderr , kCINT_stdin , kCINT_Edit , kCINT_Load , kCINT_Exec , kCINT_EXec , kCINT_pragma , kCINT_includeSYS , kCINT_includePWD , kCINT_cpp , kROOT_Load , kSYS_FileName , kCXX_NewProto , kCXX_ConstructorProto , kCXX_ScopeProto , kCXX_DirectProto , kCXX_IndirectProto , kCXX_ScopeMember , kCXX_DirectMember , kCXX_IndirectMember , kCXX_Global , kCXX_GlobalProto , kNUM_PAT } |
typedef TList | TContainer |
typedef TListIter | TContIter |
Public Member Functions | |
TTabCom () | |
Default constructor. More... | |
virtual | ~TTabCom () |
void | ClearAll () |
clears all lists except for user names and system include files. More... | |
void | ClearClasses () |
Clear classes and namespace collections. More... | |
void | ClearCppDirectives () |
Forget all Cpp directives seen so far. More... | |
void | ClearEnvVars () |
Forget all environment variables seen so far. More... | |
void | ClearFiles () |
Close all files. More... | |
void | ClearGlobalFunctions () |
Forget all global functions seen so far. More... | |
void | ClearGlobals () |
Forget all global variables seen so far. More... | |
void | ClearPragmas () |
Forget all pragmas seen so far. More... | |
void | ClearSysIncFiles () |
Close system files. More... | |
void | ClearUsers () |
Forget all user seen so far. More... | |
const TSeqCollection * | GetListOfClasses () |
Return the list of classes. More... | |
const TSeqCollection * | GetListOfCppDirectives () |
Return the list of CPP directives. More... | |
const TSeqCollection * | GetListOfEnvVars () |
Uses "env" (Unix) or "set" (Windows) to get list of environment variables. More... | |
const TSeqCollection * | GetListOfFilesInPath (const char path[]) |
"path" should be initialized with a colon separated list of system directories More... | |
TCollection * | GetListOfGlobalFunctions () |
Return the list of global functions. More... | |
const TSeqCollection * | GetListOfGlobals () |
Return the list of globals. More... | |
const TSeqCollection * | GetListOfPragmas () |
Return the list of pragmas. More... | |
const TSeqCollection * | GetListOfSysIncFiles () |
Return the list of system include files. More... | |
const TSeqCollection * | GetListOfUsers () |
reads from "/etc/passwd" More... | |
Int_t | Hook (char *buf, int *pLoc, std::ostream &out) |
[private] More... | |
void | RehashAll () |
clears and then rebuilds all lists except for user names and system include files. More... | |
void | RehashClasses () |
Do the class rehash. More... | |
void | RehashCppDirectives () |
Cpp rehashing. More... | |
void | RehashEnvVars () |
Environemnt variables rehashing. More... | |
void | RehashFiles () |
Close files. More... | |
void | RehashGlobalFunctions () |
Reload global functions. More... | |
void | RehashGlobals () |
Reload globals. More... | |
void | RehashPragmas () |
Reload pragmas. More... | |
void | RehashSysIncFiles () |
Reload system include files. More... | |
void | RehashUsers () |
Reload users. More... | |
Static Public Member Functions | |
static Char_t | AllAgreeOnChar (int i, const TSeqCollection *pList, Int_t &nGoodStrings) |
[static utility function]/////////////////////////////////////////// More... | |
static void | AppendListOfFilesInDirectory (const char dirName[], TSeqCollection *pList) |
[static utility function]///////////////////////////// More... | |
static TString | DetermineClass (const char varName[]) |
[static utility function]///////////////////////////// More... | |
static Bool_t | ExcludedByFignore (TString s) |
[static utility function]///////////////////////////// More... | |
static TString | GetSysIncludePath () |
[static utility function]///////////////////////////// More... | |
static Bool_t | IsDirectory (const char fileName[]) |
[static utility function]///////////////////////////// More... | |
static TSeqCollection * | NewListOfFilesInPath (const char path[]) |
[static utility function]///////////////////////////// More... | |
static void | NoMsg (Int_t errorLevel) |
[static utility function]///////////////////////////// More... | |
static Bool_t | PathIsSpecifiedInFileName (const TString &fileName) |
[static utility function]///////////////////////////// More... | |
Private Member Functions | |
TTabCom (const TTabCom &) | |
Int_t | Complete (const TRegexp &re, const TSeqCollection *pListOfCandidates, const char appendage[], std::ostream &out, TString::ECaseCompare cmp=TString::kExact) |
[private] More... | |
void | CopyMatch (char dest[], const char localName[], const char appendage[]=0, const char fullName[]=0) const |
[private] More... | |
EContext_t | DetermineContext () const |
[private] More... | |
TString | DeterminePath (const TString &fileName, const char defaultPath[]) const |
[private] More... | |
TString | ExtendPath (const char originalPath[], TString newBase) const |
[private] More... | |
void | InitPatterns () |
[private] More... | |
TClass * | MakeClassFromClassName (const char className[]) const |
[private] (does some specific error handling that makes the function unsuitable for general use.) returns a new'd TClass given the name of a class. More... | |
TClass * | MakeClassFromVarName (const char varName[], EContext_t &context, int iter=0) |
[private] (does some specific error handling that makes the function unsuitable for general use.) returns a new'd TClass given the name of a variable. More... | |
TTabCom & | operator= (const TTabCom &) |
int | ParseReverse (const char *var_str, int start) |
Returns the place in the string where to put the \0, starting the search from "start". More... | |
void | SetPattern (EContext_t handle, const char regexp[]) |
[private] More... | |
TClass * | TryMakeClassFromClassName (const char className[]) const |
Same as above but does not print the error message. More... | |
Private Attributes | |
char * | fBuf |
Int_t | fLastIter |
Pattern_t | fPat [kNUM_PAT][MAX_LEN_PAT] |
TSeqCollection * | fpClasses |
TSeqCollection * | fpDirectives |
TSeqCollection * | fpEnvVars |
TSeqCollection * | fpFiles |
TSeqCollection * | fpGlobals |
int * | fpLoc |
TSeqCollection * | fpPragmas |
ULong64_t | fPrevInterpMarker |
TSeqCollection * | fpSysIncFiles |
TSeqCollection * | fpUsers |
const char * | fRegExp [kNUM_PAT] |
Bool_t | fVarIsPointer |
#include <TTabCom.h>
typedef TList TTabCom::TContainer |
typedef TListIter TTabCom::TContIter |
enum TTabCom::EContext_t |
TTabCom::TTabCom | ( | ) |
Default constructor.
Definition at line 175 of file TTabCom.cxx.
|
virtual |
Definition at line 198 of file TTabCom.cxx.
|
private |
|
static |
[static utility function]///////////////////////////////////////////
if all the strings in "*pList" have the same ith character, that character is returned. otherwise 0 is returned.
any string "s" for which "ExcludedByFignore(s)" is true will be ignored unless All the strings in "*pList" are "ExcludedByFignore()"
in addition, the number of strings which were not "ExcludedByFignore()" is returned in "nGoodStrings".
Definition at line 678 of file TTabCom.cxx.
|
static |
[static utility function]/////////////////////////////
adds a TObjString to "*pList" for each entry found in the system directory "dirName"
directories that do not exist are silently ignored.
Definition at line 743 of file TTabCom.cxx.
void TTabCom::ClearAll | ( | ) |
clears all lists except for user names and system include files.
Definition at line 317 of file TTabCom.cxx.
void TTabCom::ClearClasses | ( | ) |
Clear classes and namespace collections.
Definition at line 216 of file TTabCom.cxx.
void TTabCom::ClearCppDirectives | ( | ) |
Forget all Cpp directives seen so far.
Definition at line 228 of file TTabCom.cxx.
void TTabCom::ClearEnvVars | ( | ) |
Forget all environment variables seen so far.
Definition at line 240 of file TTabCom.cxx.
void TTabCom::ClearFiles | ( | ) |
Close all files.
Definition at line 252 of file TTabCom.cxx.
void TTabCom::ClearGlobalFunctions | ( | ) |
Forget all global functions seen so far.
Not needed anymore. Use gROOT->GetListOfGlobalFunctions()
Definition at line 265 of file TTabCom.cxx.
void TTabCom::ClearGlobals | ( | ) |
Forget all global variables seen so far.
With teh new implamentation the list is gROOT->GetListOfGlobals(true).
Definition at line 273 of file TTabCom.cxx.
void TTabCom::ClearPragmas | ( | ) |
Forget all pragmas seen so far.
Definition at line 280 of file TTabCom.cxx.
void TTabCom::ClearSysIncFiles | ( | ) |
Close system files.
Definition at line 292 of file TTabCom.cxx.
void TTabCom::ClearUsers | ( | ) |
Forget all user seen so far.
Definition at line 304 of file TTabCom.cxx.
|
private |
[private]
Definition at line 1156 of file TTabCom.cxx.
|
private |
[private]
Definition at line 1407 of file TTabCom.cxx.
|
static |
[static utility function]/////////////////////////////
returns empty string on failure. otherwise returns something like this: "TROOT*". fails for non-class types (ie, int, char, etc). fails for pointers to functions.
Definition at line 792 of file TTabCom.cxx.
|
private |
[private]
Definition at line 1459 of file TTabCom.cxx.
[private]
Definition at line 1483 of file TTabCom.cxx.
[static utility function]/////////////////////////////
returns true iff "s" ends with one of the strings listed in the "TabCom.FileIgnore" resource.
Definition at line 885 of file TTabCom.cxx.
[private]
Definition at line 1526 of file TTabCom.cxx.
const TSeqCollection * TTabCom::GetListOfClasses | ( | ) |
Return the list of classes.
Definition at line 429 of file TTabCom.cxx.
const TSeqCollection * TTabCom::GetListOfCppDirectives | ( | ) |
Return the list of CPP directives.
Definition at line 475 of file TTabCom.cxx.
const TSeqCollection * TTabCom::GetListOfEnvVars | ( | ) |
Uses "env" (Unix) or "set" (Windows) to get list of environment variables.
Definition at line 520 of file TTabCom.cxx.
const TSeqCollection * TTabCom::GetListOfFilesInPath | ( | const char | path[] | ) |
"path" should be initialized with a colon separated list of system directories
Definition at line 501 of file TTabCom.cxx.
TCollection * TTabCom::GetListOfGlobalFunctions | ( | ) |
Return the list of global functions.
Definition at line 581 of file TTabCom.cxx.
const TSeqCollection * TTabCom::GetListOfGlobals | ( | ) |
Return the list of globals.
Definition at line 573 of file TTabCom.cxx.
const TSeqCollection * TTabCom::GetListOfPragmas | ( | ) |
Return the list of pragmas.
Definition at line 589 of file TTabCom.cxx.
const TSeqCollection * TTabCom::GetListOfSysIncFiles | ( | ) |
Return the list of system include files.
Definition at line 620 of file TTabCom.cxx.
const TSeqCollection * TTabCom::GetListOfUsers | ( | ) |
reads from "/etc/passwd"
Definition at line 632 of file TTabCom.cxx.
|
static |
[static utility function]/////////////////////////////
returns a colon-separated string of directories that CINT will search when you call #include<...>
returns empty string on failure.
Definition at line 921 of file TTabCom.cxx.
[private]
Definition at line 1558 of file TTabCom.cxx.
|
private |
[private]
Definition at line 2130 of file TTabCom.cxx.
|
static |
[static utility function]/////////////////////////////
calls TSystem::GetPathInfo() to see if "fileName" is a system directory.
Definition at line 1022 of file TTabCom.cxx.
|
private |
[private] (does some specific error handling that makes the function unsuitable for general use.) returns a new'd TClass given the name of a class.
user must delete. returns 0 in case of error.
Definition at line 2197 of file TTabCom.cxx.
|
private |
[private] (does some specific error handling that makes the function unsuitable for general use.) returns a new'd TClass given the name of a variable.
user must delete. returns 0 in case of error. if user has operator.() or operator->() backwards, will modify: context, *fpLoc and fBuf. context sensitive behavior.
Definition at line 2246 of file TTabCom.cxx.
|
static |
[static utility function]/////////////////////////////
creates a list containing the full path name for each file in the (colon separated) string "path1"
memory is allocated with "new", so whoever calls this function takes responsibility for deleting it.
Definition at line 1042 of file TTabCom.cxx.
[static utility function]/////////////////////////////
calling "NoMsg( errorLevel )", sets "gErrorIgnoreLevel" to "errorLevel+1" so that all errors with "level < errorLevel" will be ignored.
calling the function with a negative argument (e.g., "NoMsg( -1 )") resets gErrorIgnoreLevel to its previous value.
Definition at line 1101 of file TTabCom.cxx.
Returns the place in the string where to put the \0, starting the search from "start".
Definition at line 2556 of file TTabCom.cxx.
[static utility function]/////////////////////////////
true if "fileName"
Definition at line 1081 of file TTabCom.cxx.
void TTabCom::RehashAll | ( | ) |
clears and then rebuilds all lists except for user names and system include files.
Definition at line 413 of file TTabCom.cxx.
void TTabCom::RehashClasses | ( | ) |
Do the class rehash.
Definition at line 333 of file TTabCom.cxx.
void TTabCom::RehashCppDirectives | ( | ) |
Cpp rehashing.
Definition at line 342 of file TTabCom.cxx.
void TTabCom::RehashEnvVars | ( | ) |
Environemnt variables rehashing.
Definition at line 351 of file TTabCom.cxx.
void TTabCom::RehashFiles | ( | ) |
Close files.
Definition at line 360 of file TTabCom.cxx.
void TTabCom::RehashGlobalFunctions | ( | ) |
Reload global functions.
Definition at line 368 of file TTabCom.cxx.
void TTabCom::RehashGlobals | ( | ) |
Reload globals.
Definition at line 376 of file TTabCom.cxx.
void TTabCom::RehashPragmas | ( | ) |
Reload pragmas.
Definition at line 385 of file TTabCom.cxx.
void TTabCom::RehashSysIncFiles | ( | ) |
Reload system include files.
Definition at line 394 of file TTabCom.cxx.
void TTabCom::RehashUsers | ( | ) |
Reload users.
Definition at line 403 of file TTabCom.cxx.
|
private |
[private]
Definition at line 2534 of file TTabCom.cxx.
|
private |
Same as above but does not print the error message.
Definition at line 2226 of file TTabCom.cxx.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |