Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ProcessBuilder.h
1 /*
2  * ProcessBuilder class interface
3  *
4  * This file is part of OTAWA
5  * Copyright (c) 2006-12, IRIT UPS.
6  *
7  * OTAWA is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * OTAWA is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with OTAWA; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 #ifndef ELM_SYS_PROCESS_BUILDER_H
22 #define ELM_SYS_PROCESS_BUILDER_H
23 
24 #include <elm/genstruct/Vector.h>
25 #include <elm/sys/SystemIO.h>
26 #include <elm/sys/Process.h>
27 
28 namespace elm { namespace sys {
29 
30 // ProcessBuilder class
33  SystemInStream *in;
34  SystemOutStream *out, *err;
35 public:
36  ProcessBuilder(CString command);
37  void addArgument(CString argument);
38  void setInput(SystemInStream *_in);
39  void setOutput(SystemOutStream *_out);
40  void setError(SystemOutStream *_out);
41  Process *run(void);
42 };
43 
44 } } // elm::sys
45 
46 #endif // ELM_SYS_PROCESS_BUILDER_H
Definition: CString.h:17
void setOutput(SystemOutStream *_out)
Definition: system_ProcessBuilder.cpp:88
void addArgument(CString argument)
Definition: system_ProcessBuilder.cpp:70
Definition: ProcessBuilder.h:31
Process * run(void)
Definition: system_ProcessBuilder.cpp:107
ProcessBuilder(CString command)
Definition: system_ProcessBuilder.cpp:57
void setError(SystemOutStream *_out)
Definition: system_ProcessBuilder.cpp:97
Definition: Process.h:27
void setInput(SystemInStream *_in)
Definition: system_ProcessBuilder.cpp:79
Definition: Vector.h:35