feisty meow concerns codebase  2.140
processes::process_entry Class Reference

Encapsulates information about OS processes. More...

#include <process_entry.h>

Inheritance diagram for processes::process_entry:
Collaboration diagram for processes::process_entry:

Public Member Functions

 process_entry ()
 
 process_entry (const process_entry &to_copy)
 
 ~process_entry ()
 
 DEFINE_CLASS_NAME ("process_entry")
 
process_entryoperator= (const process_entry &to_copy)
 
const basis::astringpath () const
 
void path (const basis::astring &new_path)
 
basis::astring text_form () const
 returns a descriptive string for the information here. More...
 
void text_form (basis::base_string &fill) const
 base class requirement. More...
 
- Public Member Functions inherited from basis::text_formable
virtual const char * class_name () const =0
 Returns the bare name of this class as a constant character pointer. More...
 

Public Attributes

basis::un_int _process_id
 the OS identifier of this process. More...
 
basis::un_int _references
 the number of references to (users of) this process. More...
 
basis::un_int _threads
 the number of threads in use by this process. More...
 
basis::un_int _parent_process_id
 the process id of the owning process. More...
 
basis::un_short _module16
 non-zero if this process is a 16-bit application. More...
 

Detailed Description

Encapsulates information about OS processes.

Definition at line 27 of file process_entry.h.

Constructor & Destructor Documentation

◆ process_entry() [1/2]

processes::process_entry::process_entry ( )

Definition at line 26 of file process_entry.cpp.

◆ process_entry() [2/2]

processes::process_entry::process_entry ( const process_entry to_copy)

Definition at line 35 of file process_entry.cpp.

References operator=().

◆ ~process_entry()

processes::process_entry::~process_entry ( )

Definition at line 46 of file process_entry.cpp.

References basis::WHACK().

Member Function Documentation

◆ DEFINE_CLASS_NAME()

processes::process_entry::DEFINE_CLASS_NAME ( "process_entry"  )

◆ operator=()

process_entry & processes::process_entry::operator= ( const process_entry to_copy)

Definition at line 56 of file process_entry.cpp.

References _module16, _parent_process_id, _process_id, _references, and _threads.

Referenced by process_entry().

◆ path() [1/2]

const astring & processes::process_entry::path ( ) const

Definition at line 68 of file process_entry.cpp.

Referenced by text_form().

◆ path() [2/2]

void processes::process_entry::path ( const basis::astring new_path)

Definition at line 70 of file process_entry.cpp.

◆ text_form() [1/2]

astring processes::process_entry::text_form ( ) const

returns a descriptive string for the information here.

Definition at line 73 of file process_entry.cpp.

References _module16, _parent_process_id, _process_id, _references, _threads, filesystem::filename::basename(), filesystem::filename::dirname(), path(), filesystem::filename::raw(), and basis::astring::s().

Referenced by text_form().

◆ text_form() [2/2]

void processes::process_entry::text_form ( basis::base_string fill) const
virtual

base class requirement.

Implements basis::text_formable.

Definition at line 51 of file process_entry.cpp.

References text_form().

Member Data Documentation

◆ _module16

basis::un_short processes::process_entry::_module16

non-zero if this process is a 16-bit application.

Definition at line 34 of file process_entry.h.

Referenced by operator=(), and text_form().

◆ _parent_process_id

basis::un_int processes::process_entry::_parent_process_id

the process id of the owning process.

Definition at line 33 of file process_entry.h.

Referenced by operator=(), and text_form().

◆ _process_id

basis::un_int processes::process_entry::_process_id

the OS identifier of this process.

Definition at line 30 of file process_entry.h.

Referenced by operator=(), and text_form().

◆ _references

basis::un_int processes::process_entry::_references

the number of references to (users of) this process.

Definition at line 31 of file process_entry.h.

Referenced by operator=(), and text_form().

◆ _threads

basis::un_int processes::process_entry::_threads

the number of threads in use by this process.

Definition at line 32 of file process_entry.h.

Referenced by operator=(), and text_form().


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