WvStreams
include
wvprociter.h
1
/* -*- Mode: C++ -*-
2
* Worldvisions Weaver Software:
3
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4
*
5
* Process iterator. Iterates through the running processes.
6
*
7
*/
8
9
#ifndef __WVPROCITER_H
10
#define __WVPROCITER_H
11
12
#include "wvdiriter.h"
13
#include "wvstringlist.h"
14
15
struct
WvProcEnt
16
{
17
pid_t pid;
18
WvString
exe;
19
WvStringList
cmdline;
20
};
21
22
class
WvProcIter
23
{
24
private
:
25
WvDirIter
dir_iter;
26
WvProcEnt
proc_ent;
27
28
public
:
29
WvProcIter
();
30
~
WvProcIter
();
31
32
bool
isok()
const
;
33
void
rewind();
34
bool
next();
35
36
const
WvProcEnt
*ptr()
const
{
return
&proc_ent; }
37
WvIterStuff(
const
WvProcEnt
);
38
};
39
40
bool
wvkillall(WvStringParm basename,
int
sig);
41
42
#endif
WvProcIter
Definition:
wvprociter.h:22
WvProcEnt
Definition:
wvprociter.h:15
WvString
WvString is an implementation of a simple and efficient printable-string class.
Definition:
wvstring.h:329
WvDirIter
Definition:
wvdiriter.h:31
WvStringList
This is a WvList of WvStrings, and is a really handy way to parse strings.
Definition:
wvstringlist.h:27
Generated by
1.8.17