Encapsulates information about a single process. More...
#include <DwmProcessInfo.hh>


Public Member Functions | |
| ProcessInfo (pid_t pid) | |
| Construct from a process ID. More... | |
| pid_t | Id () const |
| Returns the process ID. | |
| pid_t | ParentId () const |
| Returns the parent process ID. | |
| pid_t | GroupId () const |
| Returns the process group ID. | |
| const std::string & | ControllingTty () const |
| Returns the controlling tty name. | |
| pid_t | SessionId () const |
| uid_t | EffectiveUserId () const |
| Returns the effective user ID. | |
| std::string | EffectiveUserName () const |
| Returns the username of the effective user ID. | |
| uid_t | RealUserId () const |
| Returns the real user ID. | |
| std::string | RealUserName () const |
| Returns the username of the real user ID. | |
| uid_t | SavedEffectiveUserId () const |
| Returns the saved effective user ID. | |
| std::string | SavedEffectiveUserName () const |
| Returns the username of the saved effective user ID. | |
| uid_t | RealGroupId () const |
| Returns the real process group ID. | |
| uid_t | SavedEffectiveGroupId () const |
| Returns the saved effective group ID. | |
| const std::string & | Command () const |
| Returns the command. | |
| const std::vector< std::string > & | Args () const |
| Returns the argument list. | |
| const TimeValue & | StartTime () const |
| Returns the proces start time. | |
| uint32_t | Size () const |
| Returns the virtual size of the process (in bytes). | |
| uint32_t | ResidentSetSize () const |
| Returns the resident set size of the process (in bytes). | |
| const Dwm::Rusage & | Rusage () const |
| Returns the process rusage. | |
| bool | operator== (const ProcessInfo &process) const |
| operator == | |
| std::istream & | Read (std::istream &is) |
| Reads from an istream. Returns the istream. | |
| std::ostream & | Write (std::ostream &os) const |
| Writes to an ostream. Returns the ostream. | |
| int | Read (gzFile gzf) |
| Reads from a gzFile. More... | |
| int | Write (gzFile gzf) const |
| Writes to a gzFile. More... | |
| ssize_t | Read (int fd) |
| NOT IMPLEMENTED. | |
| ssize_t | Write (int fd) const |
| NOT IMPLEMENTED. | |
| size_t | Read (FILE *f) |
| NOT IMPLEMENTED. | |
| size_t | Write (FILE *f) const |
| NOT IMPLEMENTED. | |
| uint32_t | StreamedLength () const |
| Returns the number of bytes that would be written if we called one of the Write() members. More... | |
| void | AddArg (const char *arg) |
| Adds an argument to the list of args. More... | |
Public Member Functions inherited from Dwm::Readable | |
| virtual | ~Readable () |
| destructor | |
Public Member Functions inherited from Dwm::Writable | |
| virtual | ~Writable () |
| Destructor. | |
Public Member Functions inherited from Dwm::GZReadable | |
| virtual | ~GZReadable () |
| destructor | |
Public Member Functions inherited from Dwm::GZWritable | |
| virtual | ~GZWritable () |
| destructor | |
Encapsulates information about a single process.
| Dwm::ProcessInfo::ProcessInfo | ( | pid_t | pid | ) |
Construct from a process ID.
This will fetch values from the current process table.
| void Dwm::ProcessInfo::AddArg | ( | const char * | arg | ) |
Adds an argument to the list of args.
This shouldn't be used by anything but GetProcessTable()
|
virtual |
Reads from a gzFile.
Returns the number of bytes read on success, -1 on failure.
Implements Dwm::GZReadable.
|
virtual |
Returns the number of bytes that would be written if we called one of the Write() members.
Implements Dwm::Writable.
|
virtual |
Writes to a gzFile.
Returns the number of bytes written on success, -1 on failure.
Implements Dwm::GZWritable.