TQLibrary The TQLibrary is a global/static class of which there should only be one instance at a time. It is not intended to be instantiated by the user -- instead, an instance of it is created automatically at runtime as a global static member variable TQLibrary::gQFramework. It facilitates a set of OS and/or root-version specific 'hacks' to help the user in keeping his or her own code clean of such workarounds. It also provides functions to access version numbers of the compiler and root itself.
virtual | ~TQLibrary() |
static void | allowCapturing(bool allow = true) |
static void | allowCapturing_stderr(bool allow = true) |
static void | allowCapturing_stdout(bool allow = true) |
static void | allowRedirection(bool allow = true) |
static void | allowRedirection_stderr(bool allow = true) |
static void | allowRedirection_stdout(bool allow = true) |
static int | captureStderr() |
static int | captureStdout() |
static int | captureStdoutStderr() |
void | cd(TString newpath) |
static TClass* | Class() |
static bool | closeLogFile() |
static bool | embedFonts(const TString& filename, bool verbose = false) |
static bool | enableEXIFsupport(bool val = true) |
static bool | enablePDFfontEmbedding(bool val = true) |
void | findConsoleWidth() |
static TString | findLibrary(const TString& filename) |
static TString | getAbsolutePath(const TString& path) |
static const TString& | getApplicationName() |
static int | getConsoleWidth() |
static const TString& | getdCachePathHead() |
static const TString& | getDQ2cmd() |
static const TString& | getDQ2PathHead() |
static TString | getEOScmd() |
static const TString& | getEXIFtoolPath() |
static const TString& | getGCCVersion() |
static float | getGCCVersionNumber() |
static const TString& | getlibXMLpath() |
static vector<string> | getListOfPackages() |
static const TString& | getLocalGroupDisk() |
static TMultiGraph* | getMemoryGraph(bool differential = false) |
static const TString& | getPDFfontEmbedCommand() |
static const TString& | getProcStatPath() |
static TQLibrary* | getQLibrary() |
static const TString& | getROOTVersion() |
static float | getROOTVersionNumber() |
bool | getSnowflakeMode() |
unsigned long | getTimeOfConstruction() |
unsigned long | getTimeSinceConstruction() |
static const TString& | getTQPATH() |
static const TString& | getVersion() |
static int | getVersionNumber() |
static Long64_t | getVirtualMemory() |
static const TString& | getWebsite() |
static const TString& | getWorkingDirectory() |
static bool | hasEXIFsupport() |
static bool | hasPackage(const char* pkgname) |
static bool | hasPDFfontEmbedding() |
virtual TClass* | IsA() const |
static bool | openLogFile(const TString& fname, bool allowColors = false) |
static void | printGlobAlertMessageCount() |
static void | printGlobMessageCount() |
static void | printMemory() |
static void | printMessage() |
static const TString& | pwd() |
static TString | readAndResetCapturedStderr() |
static TString | readAndResetCapturedStdout() |
static TString | readAndResetCapturedStdoutStderr() |
static TString | readCapturedStderr() |
static TString | readCapturedStdout() |
static TString | readCapturedStdoutStderr() |
static void | recordMemory(short color = 1) |
static int | redirect(const TString& fname, bool append = false) |
static int | redirect_stderr(const TString& fname, bool append = false) |
static int | redirect_stdout(const TString& fname, bool append = false) |
static int | resetCapturedStderr() |
static int | resetCapturedStdout() |
static int | resetCapturedStdoutStderr() |
static bool | restore() |
static int | restore_stderr() |
static int | restore_stdout() |
void | setApplicationName(TString newName) |
static void | setConsoleWidth(int width) |
void | setdCachePathHead(const TString&) |
void | setDQ2cmd(const TString&) |
void | setDQ2PathHead(const TString&) |
void | setEOScmd(TString neweoscmd) |
void | setEOSurl(TString neweoscmd) |
static bool | setEXIF(const TString& fname, const TString& title, const TString& keywords = "ROOT ATLAS HSG3") |
void | setEXIFtoolPath(TString newpath) |
void | setLocalGroupDisk(const TString&) |
static void | setMessageStream(ostream& os, bool allowColors = true) |
static void | setMessageStream(ostream* os = __null, bool allowColors = true) |
void | setPDFfontEmbedCommand(TString newpath) |
void | setProcStatPath(TString newpath) |
void | setSnowflakeMode(bool snowflakeMode, unsigned int maxWarningsAllowed = 0) |
void | setTQPATH(TString newpath) |
void | setWorkingDirectory(TString newpath) |
virtual void | ShowMembers(TMemberInspector& insp) const |
virtual void | Streamer(TBuffer&) |
void | StreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b) |
TQLibrary() | |
TQLibrary(const TQLibrary&) |
virtual Bool_t | CheckTObjectHashConsistency() const |
static TQMessageStream | msgStream |
TString | appName | |
static stringstream* | capturingStderrStream | |
static stringstream* | capturingStdoutStderrStream | |
static stringstream* | capturingStdoutStream | |
int | consoleWidth | |
TString | dCachePathHead | |
static streambuf* | defaultStderrStreamBuf | |
static streambuf* | defaultStdoutStreamBuf | |
TString | dq2PathHead | |
TString | dq2cmd | |
TString | eoscmd | |
TString | eosmgmurl | |
bool | exiftoolEnabled | |
TString | exiftoolPath | |
static TQLibrary | gQFramework | |
const TString | gccversion | |
static bool | isInitialized | |
TString | libXMLpath | |
const TString | libversion | |
TString | localGroupDiskIdentifier | |
unsigned int | maxWarningsAllowed | |
vector<string> | packages | |
TString | pdfFontEmbedCommand | |
bool | pdfFontEmbedEnabled | |
TString | procStatPath | |
const TString | rootversion | |
vector<short> | rssUsageColors | |
vector<size_t> | rssUsageMemory | |
vector<unsigned long> | rssUsageTimestamps | |
bool | snowflakeMode | |
static int | stderrfd | |
static bool | stderrfd_allowRedirection | |
static bool | stderrfd_isRedirected | |
static bool | stderrstr_allowCapturing | |
static bool | stderrstr_isCaptured | |
static bool | stdouterrstr_areCaptured | |
static int | stdoutfd | |
static bool | stdoutfd_allowRedirection | |
static bool | stdoutfd_isRedirected | |
static bool | stdoutstr_allowCapturing | |
static bool | stdoutstr_isCaptured | |
unsigned long | timeOfConstruction | |
TString | tqpath | |
TString | website | |
TString | workingDirectory |
Inheritance Chart: | |||||
|
If snowflakeMode, check the number of printed messages. If they exceed a threshold, break. A threshold can be set for warnings. The threshold value for everything worse than that is 0.
retrieve the string identifying the local group disk this is the local group disk identifier, i.e. something like UNI-FREIBURG_LOCALGROUPDISK
set the string identifying the local group disk this is the local group disk identifier, i.e. something like UNI-FREIBURG_LOCALGROUPDISK
retrieve the DQ2 path head for the local storage this is something like srm://se.bfg.uni-freiburg.de
set the DQ2 path head for the local storage this is something like srm://se.bfg.uni-freiburg.de
retrieve the dCache path head for the local storage this is something like dcap://se.bfg.uni-freiburg.de:22125
set the dCache path head for the local storage this is something like dcap://se.bfg.uni-freiburg.de:22125
retrieve the eos activation command on CERN AFS and for the ATLAS EOS, this is export EOS_MGM_URL=root://eosatlas.cern.ch; /afs/cern.ch/project/eos/installation/atlas/bin/eos
set the path to the eos binary on CERN AFS, this is /afs/cern.ch/project/eos/installation/atlas/bin/eos
set the eos url, for example root://eosuser.cern.ch for USER EOS root://eosatlas.cern.ch for ATLAS EOS
redirect stdout to the file of the given name if the file exists, it will be overwritten if the file does not exist, it will be created
if TQLibrary::redirect_stdout or TQLibrary::capture_stdout was called previously this function will restore the original output stream
redirect stderr to the file of the given name if the file exists, it will be overwritten if the file does not exist, it will be created
if TQLibrary::redirect_stderr or TQLibrary::capture_stderr was called previously this function will restore the original output stream
Don't print stdout, but instead store it in TQLibrary::capturingStdoutStream. The stored string can be read using TQLibrary::readCapturedStdout(). Use TQLibrary::restore_stdout() to stop capturing.
Don't print stderr, but instead store it in TQLibrary::capturingStderrStream. The stored string can be read using TQLibrary::readCapturedStderr(). Use TQLibrary::restore_stderr() to stop capturing.
redirect stdout and stderr to the file of the given name if the file exists, it will be overwritten if the file does not exist, it will be created
if TQLibrary::redirect_stdout was called previously this function will restore the original output stream
returns a TGraph recording the memory usage over time
retrieve the path of the EXIFtool binary which allows modifying PDF meta-information
set the path of the EXIFtool binary which allows modifying PDF meta-information
return true if TQLibrary is configured for EXIF support return false otherwise
enable support of EXIFtool this requires a valid EXIFtool path to be set
use the EXIFtool to set the title and keywords metainformation on some PDF
return true if TQLibrary is configured to perfrom font embedding in PDFs return false otherwise
enable font embedding in PDFs this requires pdfFonntEmbedCommand to be set
embed fonts in some PDF file if verbose, print the command output
retrieve the absolute path to some local path inside the working directory
open a log file at the given location
close the currently opened log file and redirect logging to std::cout the same effect can be accomplished by calling TQLibrary::setMessageStream(std::cout)