Annotation of parser3/src/include/pa_exec.h, revision 1.11.2.6.2.2
1.1 paf 1: /** @file
2: Parser: program executing for different OS-es decls.
3:
1.11.2.3 paf 4: Copyright (c) 2000,2001-2003 ArtLebedev Group (http://www.artlebedev.com)
1.7 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1 paf 6: */
7:
8: #ifndef PA_EXEC_H
9: #define PA_EXEC_H
1.9 paf 10:
1.11.2.6.2.2! paf 11: static const char* IDENT_EXEC_H="$Date: 2003/03/18 15:14:16 $";
1.1 paf 12:
13: #include "pa_string.h"
14: #include "pa_hash.h"
15: #include "pa_array.h"
1.11.2.1 paf 16: #include "pa_value.h"
17:
1.11.2.6.2.2! paf 18: typedef Hash<String* , String*> HashStringString;
1.1 paf 19:
1.11.2.5 paf 20: struct PA_exec_result {
21: int status; ///< exit code
1.11.2.6.2.1 paf 22: const String& out;
23: const String& err;
1.11.2.5 paf 24: };
25:
1.11.2.6.2.1 paf 26: PA_exec_result pa_exec(
1.8 paf 27: bool forced_allow, ///< allow execution regardles of --disable-execs
1.11.2.6.2.1 paf 28: const String& file_spec,
1.11.2.6 paf 29: const HashStringString* env, ///< 0 | Hash of String
1.11.2.4 paf 30: const ArrayString& argv, ///< 0 | Array of command line arguments
1.11.2.5 paf 31: String& in);
1.1 paf 32:
33: #endif
E-mail: