21 using namespace basis;
26 process_entry::process_entry()
30 _parent_process_id(0),
39 _parent_process_id(0),
58 if (&to_copy ==
this)
return *
this;
63 *_process_path = *to_copy._process_path;
71 { *_process_path = new_path; }
80 return a_sprintf(
"%s: pid=%u refs=%u thrd=%u par=%u mod16=%u path=%s",
a_sprintf is a specialization of astring that provides printf style support.
Provides a dynamically resizable ASCII character string.
const char * s() const
synonym for observe. the 's' stands for "string", if that helps.
Defines the base class for all string processing objects in hoople.
Provides operations commonly needed on file names.
const basis::astring & raw() const
returns the astring that we're holding onto for the path.
filename dirname() const
returns the directory for the filename.
filename basename() const
returns the base of the filename; no directory.
Encapsulates information about OS processes.
basis::un_int _parent_process_id
the process id of the owning process.
basis::un_int _references
the number of references to (users of) this process.
basis::un_int _process_id
the OS identifier of this process.
basis::astring text_form() const
returns a descriptive string for the information here.
basis::un_short _module16
non-zero if this process is a 16-bit application.
process_entry & operator=(const process_entry &to_copy)
const basis::astring & path() const
basis::un_int _threads
the number of threads in use by this process.
The guards collection helps in testing preconditions and reporting errors.
void WHACK(contents *&ptr)
deletion with clearing of the pointer.
A platform independent way to obtain the timestamp of a file.