libDwm-0.9.45
Dwm::ProcessInfo Class Reference

Encapsulate information for a single process from the process table. More...

#include <DwmProcessInfo.hh>

Public Member Functions

std::istream & Read (std::istream &is)
 Reads the process info from an istream. Returns the istream.
 
std::ostream & Write (std::ostream &os) const
 Writes the process info to an ostream. Returns the ostream.
 
int Read (gzFile gzf)
 Reads the process info from a gzFile.
 
int Write (gzFile gzf) const
 Writes the process info to a gzFile.
 
int BZRead (BZFILE *bzf)
 Reads the process info from a BZFILE.
 
int BZWrite (BZFILE *bzf) const
 Writes the process info to a BZFILE.
 
uint64_t StreamedLength () const
 Returns the number of bytes that would be written if we called one of the non-compressing Write() members.
 
nlohmann::json ToJson () const
 Returns a JSON representation of the ProcessInfo.
 
bool operator== (const ProcessInfo &) const
 operator ==
 

Public Attributes

std::string user {""}
 
std::string ruser {""}
 
uint64_t pid {0}
 
uint64_t ppid {0}
 
uint64_t gid {0}
 
uint64_t uid {0}
 
uint64_t ruid {0}
 
uint64_t svuid {0}
 
uint64_t rgid {0}
 
uint64_t svgid {0}
 
uint64_t rss {0}
 
uint64_t vsz {0}
 
float pcpu {0.0}
 
float pmem {0.0}
 
int64_t pri {0}
 
int64_t lstart {0}
 
std::string tty {""}
 
std::string args {""}
 

Detailed Description

Encapsulate information for a single process from the process table.

Member Function Documentation

◆ BZRead()

int Dwm::ProcessInfo::BZRead ( BZFILE * bzf)

Reads the process info from a BZFILE.

Returns the number of bytes read on success, -1 on failure.

◆ BZWrite()

int Dwm::ProcessInfo::BZWrite ( BZFILE * bzf) const

Writes the process info to a BZFILE.

Returns the number of bytes written on success, -1 on failure.

◆ Read()

int Dwm::ProcessInfo::Read ( gzFile gzf)

Reads the process info from a gzFile.

Returns the number of bytes read on success, -1 on failure.

◆ Write()

int Dwm::ProcessInfo::Write ( gzFile gzf) const

Writes the process info to a gzFile.

Returns the number of bytes written on success, -1 on failure.


The documentation for this class was generated from the following file: