WvStreams
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
16{
17 pid_t pid;
18 WvString exe;
19 WvStringList cmdline;
20};
21
23{
24private:
25 WvDirIter dir_iter;
26 WvProcEnt proc_ent;
27
28public:
29 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
40bool wvkillall(WvStringParm basename, int sig);
41
42#endif
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
Definition wvstring.h:94
This is a WvList of WvStrings, and is a really handy way to parse strings.
WvString is an implementation of a simple and efficient printable-string class.
Definition wvstring.h:330