feisty meow concerns codebase 2.140
process_entry.h
Go to the documentation of this file.
1#ifndef PROCESS_ENTRY_CLASS
2#define PROCESS_ENTRY_CLASS
3
4/*****************************************************************************\
5* *
6* Name : process_entry *
7* Author : Chris Koeritz *
8* *
9*******************************************************************************
10* Copyright (c) 2000-$now By Author. This program is free software; you can *
11* redistribute it and/or modify it under the terms of the GNU General Public *
12* License as published by the Free Software Foundation; either version 2 of *
13* the License or (at your option) any later version. This is online at: *
14* http://www.fsf.org/copyleft/gpl.html *
15* Please send any updates to: fred@gruntose.com *
16\*****************************************************************************/
17
18#include <basis/array.h>
19#include <basis/astring.h>
20#include <basis/contracts.h>
21#include <basis/definitions.h>
22
23namespace processes {
24
26
27class process_entry : public virtual basis::text_formable
28{
29public:
35
37 process_entry(const process_entry &to_copy);
39
40 DEFINE_CLASS_NAME("process_entry");
41
42 process_entry &operator =(const process_entry &to_copy);
43
44 const basis::astring &path() const;
45 void path(const basis::astring &new_path);
46
49
50 void text_form(basis::base_string &fill) const;
51
52private:
53 basis::astring *_process_path;
54};
55
57
59
60class process_entry_array : public basis::array<process_entry> {};
61
63
64} //namespace.
65
66#endif
67
Represents a sequential, ordered, contiguous collection of objects.
Definition array.h:54
Provides a dynamically resizable ASCII character string.
Definition astring.h:35
Defines the base class for all string processing objects in hoople.
Definition base_string.h:28
A base class for objects that can provide a synopsis of their current state.
Definition contracts.h:142
a handy class that implements an array of process entries.
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.
DEFINE_CLASS_NAME("process_entry")
~process_entry()
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)
process_entry()
const basis::astring & path() const
basis::un_int _threads
the number of threads in use by this process.
Constants and objects used throughout HOOPLE.
unsigned int un_int
Abbreviated name for unsigned integers.
Definition definitions.h:62
unsigned short un_short
Abbreviated name for unsigned short integers.
Definition definitions.h:64