rllib  1
rlpcontrol.h
Go to the documentation of this file.
1 /***************************************************************************
2  rlspawn.h - description
3  -------------------
4  begin : Wed Dec 11 2002
5  copyright : (C) 2002 by R. Lehrig
6  email : lehrig@t-online.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13  * published by the Free Software Foundation *
14  * *
15  ***************************************************************************/
16 #ifndef _RL_PCONTROL_H_
17 #define _RL_PCONTROL_H_
18 
19 #include "rltime.h"
20 
25 {
26  public:
30  rlPcontrol();
31 
35  virtual ~rlPcontrol();
36 
40  void setStartupCommand(const char *command, const char *process_name);
41 
45  int start();
46 
50  int sigterm();
51 
55  int sigkill();
56 
60  int isAlive();
61 
65  const char *startupCommand();
66 
70  const char *processName();
71 
76 
80  void setPID(long pid);
81 
85  long pid();
86 
91 
95  rlPcontrol *addNew();
96 #ifdef __VMS
97 
100  void setInput (const char *input);
101 
105  void setOutput(const char *output);
106 
110  void setError (const char *error);
111 #endif
112 
116  void setPriority(int priority);
117 
121  int priority();
122 
123  private:
124  int rlstrlen(const char *str);
126 
127 #ifdef __VMS
129 #endif
130 
131 #ifdef RLWIN32
133 #endif
134 
135  long m_pid;
138  int prio;
139 };
140 
141 #endif
int isAlive()
Definition: rlpcontrol.cpp:301
virtual ~rlPcontrol()
Definition: rlpcontrol.cpp:64
const char * startupCommand()
Definition: rlpcontrol.cpp:78
void setOutput(const char *output)
Definition: rlpcontrol.cpp:365
void setError(const char *error)
Definition: rlpcontrol.cpp:372
rlPcontrol * getNext()
Definition: rlpcontrol.cpp:342
void setInput(const char *input)
Definition: rlpcontrol.cpp:358
char * process_name
Definition: rlpcontrol.h:125
int rlstrlen(const char *str)
Definition: rlpcontrol.cpp:133
int sigkill()
Definition: rlpcontrol.cpp:277
void setPID(long pid)
Definition: rlpcontrol.cpp:93
long m_dwProcessId
Definition: rlpcontrol.h:132
rlTime process_time
Definition: rlpcontrol.h:136
int sigterm()
Definition: rlpcontrol.cpp:232
long pid()
Definition: rlpcontrol.cpp:109
void setPriority(int priority)
Definition: rlpcontrol.cpp:380
int priority()
Definition: rlpcontrol.cpp:393
char * startup_command
Definition: rlpcontrol.h:125
rlPcontrol * next
Definition: rlpcontrol.h:137
char * m_error
Definition: rlpcontrol.h:128
char * m_input
Definition: rlpcontrol.h:128
const char * processName()
Definition: rlpcontrol.cpp:83
long m_pid
Definition: rlpcontrol.h:135
rlTime * processTime()
Definition: rlpcontrol.cpp:88
void setStartupCommand(const char *command, const char *process_name)
Definition: rlpcontrol.cpp:122
rlPcontrol * addNew()
Definition: rlpcontrol.cpp:347
Definition: rltime.h:25
char * m_output
Definition: rlpcontrol.h:128