rllib
1
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
lib
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
24
class
rlPcontrol
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
75
rlTime
*
processTime
();
76
80
void
setPID
(
long
pid
);
81
85
long
pid
();
86
90
rlPcontrol
*
getNext
();
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);
125
char
*
startup_command
, *
process_name
;
126
127
#ifdef __VMS
128
char
*
m_input
, *
m_output
, *
m_error
;
129
#endif
130
131
#ifdef RLWIN32
132
long
m_dwProcessId
;
133
#endif
134
135
long
m_pid
;
136
rlTime
process_time
;
137
rlPcontrol
*
next
;
138
int
prio
;
139
};
140
141
#endif
Generated by
1.8.2