#include <system.hh>
Inheritance diagram for mpcl::system::ISystem:
Public Types | |
enum | ELogLevel { eEmerg, eAlert, eCrit, eErr, eWarning, eNotice, eInfo, eDebug } |
enum | ELogFacility { eAuthPriv, eCron, eDaemon, eKern, eLocal0, eLocal1, eLocal2, eLocal3, eLocal4, eLocal5, eLocal6, eLocal7, eLpr, eMail, eNews, eUser, eUucp } |
Public Methods | |
virtual | ~ISystem (void) |
Destroys the instance. | |
virtual TString | getCurrentDirectory (void) const=0 |
virtual char | getDirectorySeparator (void) const=0 |
virtual std::size_t | getFileSize (const char *pkcFILE_NAME) const=0 |
virtual vector< TString > | getPathItems (const string &rkySOURCE_PATH_COLLECTION) const |
virtual char | getPathSeparator (void) const=0 |
virtual int | getProcessId (void) const=0 |
virtual void | sleep (std::size_t zSECONDS, std::size_t zNANOSECONDS=0) const=0 |
virtual void | writeLogEntry (const string &rkyMESSAGE, ELogLevel eLEVEL=eNotice, ELogFacility eFACILITY=eUser) const=0 |
virtual void | yield (void) const=0 |
Definition at line 48 of file system.hh.
|
The facility is used to specify what type of program is logging the message. This lets the configuration file specify that messages from different facilities will be handled differently.
|
|
This determines the importance of the message. The levels are, in order of decreasing importance:
|
|
Get current directory.
Implemented in mpcl::system::TSystem. |
|
Get symbol for directory separator.
Implemented in mpcl::system::TSystem. Referenced by getPathItems(). |
|
Get file size.
Implemented in mpcl::system::TSystem. |
|
Split a search path string into the path components. The components must be separated using the symbol returned by getPathSeparator(). Path items with zero length will be omitted. Returned paths will always be symbol terminated.
Definition at line 101 of file system.cc. References getDirectorySeparator(), getPathSeparator(), and mpcl::text::Split(). |
|
Get symbol for path separator.
Implemented in mpcl::system::TSystem. Referenced by getPathItems(). |
|
Gets an unique integer value that identifies the current process.
Implemented in mpcl::system::TSystem. |
|
Sleeps the process or thread zSECONDS seconds and zNANOSECONDS nanoseconds.
Implemented in mpcl::system::TSystem. |
|
Sends a message to the system logger.
|
|
Yields yield the processor. A process can relinquish the processor voluntarily without blocking by calling yield(). The process will then be moved to the end of the queue for its static priority and a new process gets to run.
Implemented in mpcl::system::TSystem. |