Definition at line 53 of file TTabCom.h.
|
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 |
|
|
| 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 returns a new'd TClass given the name of a class. More...
|
|
TClass * | MakeClassFromVarName (const char varName[], EContext_t &context, int iter=0) |
| private 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...
|
|
#include <TTabCom.h>
◆ TContainer
◆ TContIter
◆ anonymous enum
◆ EContext_t
Enumerator |
---|
kUNKNOWN_CONTEXT | |
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 | |
Definition at line 114 of file TTabCom.h.
◆ TTabCom() [1/2]
◆ ~TTabCom()
◆ TTabCom() [2/2]
TTabCom::TTabCom |
( |
const TTabCom & |
| ) |
|
|
private |
◆ AllAgreeOnChar()
[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 676 of file TTabCom.cxx.
◆ AppendListOfFilesInDirectory()
void TTabCom::AppendListOfFilesInDirectory |
( |
const char |
dirName[], |
|
|
TSeqCollection * |
pList |
|
) |
| |
|
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 741 of file TTabCom.cxx.
◆ ClearAll()
void TTabCom::ClearAll |
( |
| ) |
|
clears all lists except for user names and system include files.
Definition at line 315 of file TTabCom.cxx.
◆ ClearClasses()
void TTabCom::ClearClasses |
( |
| ) |
|
Clear classes and namespace collections.
Definition at line 214 of file TTabCom.cxx.
◆ ClearCppDirectives()
void TTabCom::ClearCppDirectives |
( |
| ) |
|
Forget all Cpp directives seen so far.
Definition at line 226 of file TTabCom.cxx.
◆ ClearEnvVars()
void TTabCom::ClearEnvVars |
( |
| ) |
|
Forget all environment variables seen so far.
Definition at line 238 of file TTabCom.cxx.
◆ ClearFiles()
void TTabCom::ClearFiles |
( |
| ) |
|
◆ ClearGlobalFunctions()
void TTabCom::ClearGlobalFunctions |
( |
| ) |
|
◆ ClearGlobals()
void TTabCom::ClearGlobals |
( |
| ) |
|
Forget all global variables seen so far.
With teh new implamentation the list is gROOT->GetListOfGlobals(true).
Definition at line 271 of file TTabCom.cxx.
◆ ClearPragmas()
void TTabCom::ClearPragmas |
( |
| ) |
|
Forget all pragmas seen so far.
Definition at line 278 of file TTabCom.cxx.
◆ ClearSysIncFiles()
void TTabCom::ClearSysIncFiles |
( |
| ) |
|
◆ ClearUsers()
void TTabCom::ClearUsers |
( |
| ) |
|
Forget all user seen so far.
Definition at line 302 of file TTabCom.cxx.
◆ Complete()
◆ CopyMatch()
void TTabCom::CopyMatch |
( |
char |
dest[], |
|
|
const char |
localName[], |
|
|
const char |
appendage[] = 0 , |
|
|
const char |
fullName[] = 0 |
|
) |
| const |
|
private |
◆ DetermineClass()
TString TTabCom::DetermineClass |
( |
const char |
varName[] | ) |
|
|
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 790 of file TTabCom.cxx.
◆ DetermineContext()
◆ DeterminePath()
TString TTabCom::DeterminePath |
( |
const TString & |
fileName, |
|
|
const char |
defaultPath[] |
|
) |
| const |
|
private |
◆ ExcludedByFignore()
[static utility function]/////////////////////////////
returns true iff "s" ends with one of the strings listed in the "TabCom.FileIgnore" resource.
Definition at line 883 of file TTabCom.cxx.
◆ ExtendPath()
TString TTabCom::ExtendPath |
( |
const char |
originalPath[], |
|
|
TString |
newBase |
|
) |
| const |
|
private |
◆ GetListOfClasses()
Return the list of classes.
Definition at line 427 of file TTabCom.cxx.
◆ GetListOfCppDirectives()
Return the list of CPP directives.
Definition at line 473 of file TTabCom.cxx.
◆ GetListOfEnvVars()
Uses "env" (Unix) or "set" (Windows) to get list of environment variables.
Definition at line 518 of file TTabCom.cxx.
◆ GetListOfFilesInPath()
const TSeqCollection * TTabCom::GetListOfFilesInPath |
( |
const char |
path[] | ) |
|
"path" should be initialized with a colon separated list of system directories
Definition at line 499 of file TTabCom.cxx.
◆ GetListOfGlobalFunctions()
Return the list of global functions.
Definition at line 579 of file TTabCom.cxx.
◆ GetListOfGlobals()
Return the list of globals.
Definition at line 571 of file TTabCom.cxx.
◆ GetListOfPragmas()
Return the list of pragmas.
Definition at line 587 of file TTabCom.cxx.
◆ GetListOfSysIncFiles()
Return the list of system include files.
Definition at line 618 of file TTabCom.cxx.
◆ GetListOfUsers()
◆ GetSysIncludePath()
TString TTabCom::GetSysIncludePath |
( |
| ) |
|
|
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 919 of file TTabCom.cxx.
◆ Hook()
Int_t TTabCom::Hook |
( |
char * |
buf, |
|
|
int * |
pLoc, |
|
|
std::ostream & |
out |
|
) |
| |
◆ InitPatterns()
void TTabCom::InitPatterns |
( |
| ) |
|
|
private |
◆ IsDirectory()
Bool_t TTabCom::IsDirectory |
( |
const char |
fileName[] | ) |
|
|
static |
◆ MakeClassFromClassName()
TClass * TTabCom::MakeClassFromClassName |
( |
const char |
className[] | ) |
const |
|
private |
private returns a new'd TClass given the name of a class.
user must delete. returns 0 in case of error.
Definition at line 2196 of file TTabCom.cxx.
◆ MakeClassFromVarName()
TClass * TTabCom::MakeClassFromVarName |
( |
const char |
varName[], |
|
|
EContext_t & |
context, |
|
|
int |
iter = 0 |
|
) |
| |
|
private |
private 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 2245 of file TTabCom.cxx.
◆ NewListOfFilesInPath()
[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 1040 of file TTabCom.cxx.
◆ NoMsg()
[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 1099 of file TTabCom.cxx.
◆ operator=()
◆ ParseReverse()
int TTabCom::ParseReverse |
( |
const char * |
var_str, |
|
|
int |
start |
|
) |
| |
|
private |
Returns the place in the string where to put the \0, starting the search from "start".
Definition at line 2555 of file TTabCom.cxx.
◆ PathIsSpecifiedInFileName()
Bool_t TTabCom::PathIsSpecifiedInFileName |
( |
const TString & |
fileName | ) |
|
|
static |
[static utility function]/////////////////////////////
true if "fileName"
- is an absolute path ("/tmp/a")
- is a relative path ("../whatever", "./test")
- starts with user name ("~/mail")
- starts with an environment variable ("$ROOTSYS/bin")
Definition at line 1079 of file TTabCom.cxx.
◆ RehashAll()
void TTabCom::RehashAll |
( |
| ) |
|
clears and then rebuilds all lists except for user names and system include files.
Definition at line 411 of file TTabCom.cxx.
◆ RehashClasses()
void TTabCom::RehashClasses |
( |
| ) |
|
◆ RehashCppDirectives()
void TTabCom::RehashCppDirectives |
( |
| ) |
|
◆ RehashEnvVars()
void TTabCom::RehashEnvVars |
( |
| ) |
|
Environemnt variables rehashing.
Definition at line 349 of file TTabCom.cxx.
◆ RehashFiles()
void TTabCom::RehashFiles |
( |
| ) |
|
◆ RehashGlobalFunctions()
void TTabCom::RehashGlobalFunctions |
( |
| ) |
|
◆ RehashGlobals()
void TTabCom::RehashGlobals |
( |
| ) |
|
◆ RehashPragmas()
void TTabCom::RehashPragmas |
( |
| ) |
|
◆ RehashSysIncFiles()
void TTabCom::RehashSysIncFiles |
( |
| ) |
|
Reload system include files.
Definition at line 392 of file TTabCom.cxx.
◆ RehashUsers()
void TTabCom::RehashUsers |
( |
| ) |
|
◆ SetPattern()
◆ TryMakeClassFromClassName()
TClass * TTabCom::TryMakeClassFromClassName |
( |
const char |
className[] | ) |
const |
|
private |
Same as above but does not print the error message.
Definition at line 2225 of file TTabCom.cxx.
◆ fBuf
◆ fLastIter
◆ fPat
◆ fpClasses
◆ fpDirectives
◆ fpEnvVars
◆ fpFiles
◆ fpGlobals
◆ fpLoc
◆ fpPragmas
◆ fPrevInterpMarker
◆ fpSysIncFiles
◆ fpUsers
◆ fRegExp
◆ fVarIsPointer
[legend]