#include <vector>
#include <msp/fs/path.h>
#include <msp/io/base.h>
+#include "mspcore_api.h"
#include "noncopyable.h"
namespace Msp {
the self object take effect immediately. It is recommended to perform such
redirections directly on the Console objects.
*/
-class Process: private NonCopyable
+class MSPCORE_API Process: private NonCopyable
{
public:
typedef std::vector<std::string> Arguments;
private:
struct Private;
- Private *priv = 0;
+ Private *priv = nullptr;
FS::Path work_dir;
bool redirect = false;
- IO::Base *cin = 0;
- IO::Base *cout = 0;
- IO::Base *cerr = 0;
+ IO::Base *cin = nullptr;
+ IO::Base *cout = nullptr;
+ IO::Base *cerr = nullptr;
bool running = false;
bool finished = false;
unsigned exit_code = 0;