123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef BB_STD_PROCESS_H
- #define BB_STD_PROCESS_H
- #include <bbmonkey.h>
- class bbProcess : public bbObject{
- public:
- bbProcess();
- ~bbProcess();
-
- void discard();
-
- bbFunction<void()> finished;
- bbFunction<void()> stdoutReady;
-
- bbBool start( bbString cmd );
-
- bbInt exitCode();
-
- bbInt stdoutAvail();
-
- bbString readStdout();
-
- bbInt readStdout( void *buf,bbInt count );
-
- bbInt writeStdin( bbString str );
-
- bbInt writeStdin( void *buf,bbInt count );
-
- void sendBreak();
-
- void terminate();
-
- private:
- struct Rep;
-
- Rep *_rep;
-
- void gcMark();
- };
- #endif
|