Encapsulates some O.S. specific functions.
![]() | SetSignalHandler () set unix signal handler. |
![]() | GetHostName (char* host) copies into host the hostname of the machine. |
![]() | GetHostName (string* host) |
![]() | GetLoginName (char* login) copies into login the loginname of the user. |
![]() | GetLoginName (string* login) |
![]() | GetTime (char* time) copies in time the current machine time as a string. |
![]() | GetTime (string* time) |
![]() | GenerateId (unsigned long) returns a random number based on the time and the given number. |
![]() | GetPrinter (char* printer) copies into printer the PRINTER environment variable. |
![]() | GetPrinter (string* printer) |
![]() | GetCwd (char* dir) retrieve current working directory. |
![]() | GetCwd (string* dir) |
![]() | GetHome (char* home) retrieve home directory. |
![]() | GetHome (string* home) |
![]() | GetToolkitHome (char* home) copies in home the tool home directory variable. |
![]() | GetToolkitHome (string* home) |
![]() | GiveFile (const char* path, char* dir, char* file) copies in dir and file the directory and file in the name 'path'. |
![]() | GiveFile (const string* path, string* dir, string* file) |
![]() | GiveFile (const char* path, char* file) copies in file the file in the name 'path'. |
![]() | GiveFile (const string* path, string* file) |
![]() | FileRegular (const char* file) returns if file is regular (not directory, named pipe etc). |
![]() | FileExists (const char* file) returns whether file exists |
![]() | FileExecutable (const char* file) returns whether executable file exists |
![]() | DirExists (const char* dir) returns whether directory exists |
![]() | FindProgram (char* program, const char* command) returns if there is command in a std dir, program becomes the path. |
![]() | FindProgram (string* program, const char* command) |
![]() | NxnParse (const char* desc, int &num1, int &num2) return true if desc is a 'num1'x'num2' string. |
![]() | FindArg (char** argv, int argc, const char* arg, int &index) return if argv contains arg. Index will be the position in argv. |
![]() | SendEmail (const char* recipient, const char* subject, const char* program, const char* version, const char* text) send an email message (for instance for stats or bug reports). |
![]() | SignalHandler (int s) called when signal occurs. |
Encapsulates some O.S. specific functions.
static bool GetHostName(char* host)
static bool GetHostName(string* host)
static bool GetLoginName(char* login)
static bool GetLoginName(string* login)
static bool GetTime(char* time)
static bool GetTime(string* time)
static unsigned long GenerateId(unsigned long)
static bool GetPrinter(char* printer)
static bool GetPrinter(string* printer)
static bool GetCwd(char* dir)
static bool GetCwd(string* dir)
static bool GetHome(char* home)
static bool GetHome(string* home)
static void GetToolkitHome(char* home)
static void GetToolkitHome(string* home)
static void GiveFile(const char* path, char* dir, char* file)
static void GiveFile(const string* path, string* dir, string* file)
static void GiveFile(const char* path, char* file)
static void GiveFile(const string* path, string* file)
static bool FileRegular(const char* file)
static bool FileExists(const char* file)
static bool FileExecutable(const char* file)
static bool DirExists(const char* dir)
static bool FindProgram(char* program, const char* command)
static bool FindProgram(string* program, const char* command)
static bool NxnParse(const char* desc, int &num1, int &num2)
static bool FindArg(char** argv, int argc, const char* arg, int &index)
static void SendEmail(const char* recipient, const char* subject, const char* program, const char* version, const char* text)
static const char TOOLKIT_HOME_DEFAULT[]
static const char TOOLKIT_STAT_HEADER[]
static const char TOOLKIT_BUG_HEADER[]
static const char TOOLKIT_HOME_VAR_NAME[]
static const char* STD_SEARCH_DIRS[]
static bool sendBugEmail
static char emailAddress[]
static char currentProgram[]
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de