]> git.tdb.fi Git - builder.git/blob - source/externalaction.h
Replace per-file copyright notices with a single file
[builder.git] / source / externalaction.h
1 #ifndef EXTERNALACTION_H_
2 #define EXTERNALACTION_H_
3
4 #include <list>
5 #include <string>
6 #include "action.h"
7 #include "misc.h"
8
9 /**
10 Base class for Actions that want to execute an external program.
11 */
12 class ExternalAction: public Action
13 {
14 protected:
15         StringList argv;
16         Msp::FS::Path work_dir;
17         int pid;
18         int exit_code;
19         
20         ExternalAction(Builder &b): Action(b), pid(0), exit_code(0) { }
21
22         /** Starts the external program.  Fill in argv before calling this. */
23         void launch();
24
25 public:
26         virtual int check();
27 };
28
29 #endif