#ifndef __BLOP_BOOKKEEPER_H__
#define __BLOP_BOOKKEEPER_H__
#include <string>
#include <vector>
#include "var.h"
namespace blop
{
class blop_initializer
{
private:
void call_INIT();
public:
blop_initializer();
};
class blop_bookkeeper
{
private:
static std::string tmpdir_;
static int tmp_count_;
static std::string get_tmpdir_();
static std::vector<int> wait_pid_;
public:
static std::string tmpfile(var tmp);
static std::string tmpdir(var tmp);
static void register_pid(int pid);
static void wait(int pid);
~blop_bookkeeper();
};
extern blop_bookkeeper BLOP;
}
#endif