#ifndef JES_CORE_H
#define JES_CORE_H

#include "jes/Ref.h"
#include "jes/Path.h"
#include <string>

#ifdef _WIN32
#define JES_O_BINARY O_BINARY
#else
#define JES_O_BINARY 0
#endif

namespace jes
{
    typedef Ref<std::string> StringRef;

    class Core
    {
    public:
        static Core instance;

        void init(const std::string & bin_path);
        PathRef get_bin_path() { return m_bin_path; }

    protected:
        PathRef m_bin_path;
    };
}

#endif
