#ifndef BB_STD_PROCESS_H #define BB_STD_PROCESS_H #include class bbProcess : public bbObject{ public: bbProcess(); ~bbProcess(); void discard(); bbFunction finished; bbFunction 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