plptools
Loading...
Searching...
No Matches
psiprocess.h
Go to the documentation of this file.
1/*
2 * This file is part of plptools.
3 *
4 * Copyright (C) 1999-2002 Fritz Elfert <felfert@to.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * along with this program; if not, see <https://www.gnu.org/licenses/>.
18 *
19 */
20#ifndef _PSIPROCESS_H_
21#define _PSIPROCESS_H_
22
23#include <string>
24#include <iostream>
25
26class rpcs;
27
36
37public:
41 PsiProcess();
42
49 PsiProcess(const PsiProcess &p);
50
54 PsiProcess(const int, const char * const, const char * const, bool);
55
60
66 int getPID();
67
73 const char *getName();
74
80 const char *getArgs();
81
88 const char *getProcId();
89
99
105 friend std::ostream &operator<<(std::ostream &o, const PsiProcess &p);
106
107private:
108 friend class rpcs;
109
110 void setArgs(std::string _args);
111
112 int pid;
113 std::string name;
114 std::string args;
115 bool s5mx;
116};
117
118#endif
A class, describing a Process on the Psion.
Definition: psiprocess.h:35
const char * getName()
Retrieve the file name of a process.
Definition: psiprocess.cc:54
~PsiProcess()
Default destructor.
Definition: psiprocess.h:59
void setArgs(std::string _args)
Definition: psiprocess.cc:75
std::string name
Definition: psiprocess.h:113
friend std::ostream & operator<<(std::ostream &o, const PsiProcess &p)
Prints the object contents.
Definition: psiprocess.cc:89
PsiProcess()
Default constructor.
Definition: psiprocess.cc:29
const char * getProcId()
Retrieve the file name and PID of a process.
Definition: psiprocess.cc:64
PsiProcess & operator=(const PsiProcess &p)
Assignment operator Mainly used by STL container classes.
Definition: psiprocess.cc:80
int getPID()
Retrieves the PID of a process.
Definition: psiprocess.cc:49
std::string args
Definition: psiprocess.h:114
const char * getArgs()
Retrieve the file name of a process.
Definition: psiprocess.cc:59
Remote procedure call services via PLP.
Definition: rpcs.h:51