42#ifndef _DWMPROCESSINFO_HH_
43#define _DWMPROCESSINFO_HH_
54#include <nlohmann/json.hpp>
64 std::string user {
""};
65 std::string ruser {
""};
81 std::string args {
""};
86 std::istream &
Read(std::istream & is);
91 std::ostream &
Write(std::ostream & os)
const;
std::ostream & operator<<(std::ostream &os, const Dwm::ProcessInfo &pi)
ostream output operator
Encapsulate information for a single process from the process table.
Definition DwmProcessInfo.hh:62
std::ostream & Write(std::ostream &os) const
Writes the process info to an ostream. Returns the ostream.
bool operator==(const ProcessInfo &) const
operator ==
int BZWrite(BZFILE *bzf) const
Writes the process info to a BZFILE.
std::istream & Read(std::istream &is)
Reads the process info from an istream. Returns the istream.
int Read(gzFile gzf)
Reads the process info from a gzFile.
nlohmann::json ToJson() const
Returns a JSON representation of the ProcessInfo.
int BZRead(BZFILE *bzf)
Reads the process info from a BZFILE.
uint64_t StreamedLength() const
Returns the number of bytes that would be written if we called one of the non-compressing Write() mem...
int Write(gzFile gzf) const
Writes the process info to a gzFile.