plptools
Loading...
Searching...
No Matches
PsiProcess Class Reference

A class, describing a Process on the Psion. More...

#include <psiprocess.h>

Public Member Functions

 PsiProcess ()
 Default constructor. More...
 
 PsiProcess (const PsiProcess &p)
 A copy constructor. More...
 
 PsiProcess (const int, const char *const, const char *const, bool)
 Initializing Constructor. More...
 
 ~PsiProcess ()
 Default destructor. More...
 
int getPID ()
 Retrieves the PID of a process. More...
 
const char * getName ()
 Retrieve the file name of a process. More...
 
const char * getArgs ()
 Retrieve the file name of a process. More...
 
const char * getProcId ()
 Retrieve the file name and PID of a process. More...
 
PsiProcessoperator= (const PsiProcess &p)
 Assignment operator Mainly used by STL container classes. More...
 

Private Member Functions

void setArgs (std::string _args)
 

Private Attributes

int pid
 
std::string name
 
std::string args
 
bool s5mx
 

Friends

class rpcs
 
std::ostreamoperator<< (std::ostream &o, const PsiProcess &p)
 Prints the object contents. More...
 

Detailed Description

A class, describing a Process on the Psion.

Objects of this type are used by rpcs::queryPrograms for returning the currently running processes.

Author
Fritz Elfert felfe.nosp@m.rt@t.nosp@m.o.com

Definition at line 35 of file psiprocess.h.

Constructor & Destructor Documentation

◆ PsiProcess() [1/3]

PsiProcess::PsiProcess ( )

Default constructor.

Definition at line 29 of file psiprocess.cc.

◆ PsiProcess() [2/3]

PsiProcess::PsiProcess ( const PsiProcess p)

A copy constructor.

Mainly used by STL container classes.

Parameters
pThe object to be used as initializer.

Definition at line 33 of file psiprocess.cc.

◆ PsiProcess() [3/3]

PsiProcess::PsiProcess ( const int  _pid,
const char * const  _name,
const char * const  _args,
bool  _s5mx 
)

Initializing Constructor.

Definition at line 40 of file psiprocess.cc.

◆ ~PsiProcess()

PsiProcess::~PsiProcess ( )
inline

Default destructor.

Definition at line 59 of file psiprocess.h.

Member Function Documentation

◆ getArgs()

const char * PsiProcess::getArgs ( )

Retrieve the file name of a process.

Returns
The arguments of this instance.

Definition at line 58 of file psiprocess.cc.

◆ getName()

const char * PsiProcess::getName ( )

Retrieve the file name of a process.

Returns
The name of this instance.

Definition at line 53 of file psiprocess.cc.

◆ getPID()

int PsiProcess::getPID ( )

Retrieves the PID of a process.

Returns
The PID of this instance.

Definition at line 48 of file psiprocess.cc.

◆ getProcId()

const char * PsiProcess::getProcId ( )

Retrieve the file name and PID of a process.

Returns
The name and PID this instance in the format name.$pid .

Definition at line 63 of file psiprocess.cc.

◆ operator=()

PsiProcess & PsiProcess::operator= ( const PsiProcess p)

Assignment operator Mainly used by STL container classes.

Parameters
pThe new value to assign.
Returns
The modified object.

Definition at line 79 of file psiprocess.cc.

◆ setArgs()

void PsiProcess::setArgs ( std::string  _args)
private

Definition at line 74 of file psiprocess.cc.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream o,
const PsiProcess p 
)
friend

Prints the object contents.

The output is in human readable similar to the output of a "ls" command.

Definition at line 88 of file psiprocess.cc.

◆ rpcs

friend class rpcs
friend

Definition at line 108 of file psiprocess.h.

Member Data Documentation

◆ args

std::string PsiProcess::args
private

Definition at line 114 of file psiprocess.h.

◆ name

std::string PsiProcess::name
private

Definition at line 113 of file psiprocess.h.

◆ pid

int PsiProcess::pid
private

Definition at line 112 of file psiprocess.h.

◆ s5mx

bool PsiProcess::s5mx
private

Definition at line 115 of file psiprocess.h.


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