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 == | |
Encapsulate information for a single process from the process table.
| int Dwm::ProcessInfo::BZRead | ( | BZFILE * | bzf | ) |
Reads the process info from a BZFILE.
Returns the number of bytes read on success, -1 on failure.
| 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.
| int Dwm::ProcessInfo::Read | ( | gzFile | gzf | ) |
Reads the process info from a gzFile.
Returns the number of bytes read on success, -1 on failure.
| 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.