|
a/src/utils/execmd.h |
|
b/src/utils/execmd.h |
1 |
#ifndef _EXECMD_H_INCLUDED_
|
1 |
#ifndef _EXECMD_H_INCLUDED_
|
2 |
#define _EXECMD_H_INCLUDED_
|
2 |
#define _EXECMD_H_INCLUDED_
|
3 |
/* @(#$Id: execmd.h,v 1.1 2004-12-12 08:58:12 dockes Exp $ (C) 2004 J.F.Dockes */
|
3 |
/* @(#$Id: execmd.h,v 1.2 2005-03-17 14:02:06 dockes Exp $ (C) 2004 J.F.Dockes */
|
4 |
|
4 |
|
5 |
#include <string>
|
5 |
#include <string>
|
6 |
#include <list>
|
6 |
#include <list>
|
7 |
|
7 |
|
8 |
class ExecCmd {
|
8 |
class ExecCmd {
|
9 |
public:
|
9 |
public:
|
10 |
// ExecCmd() : argv(0) {};
|
10 |
// ExecCmd() : argv(0) {};
|
11 |
// ~ExeCmd() {delete [] argv;}
|
11 |
// ~ExeCmd() {delete [] argv;}
|
12 |
int doexec(const std::string &cmd, const std::list<std::string> a,
|
12 |
int doexec(const std::string &cmd, const std::list<std::string>& a,
|
13 |
const std::string *input = 0,
|
13 |
const std::string *input = 0,
|
14 |
std::string *output = 0);
|
14 |
std::string *output = 0);
|
15 |
};
|
15 |
};
|
16 |
|
16 |
|
17 |
|
17 |
|