2017-03-13 19:03:07 -07:00
|
|
|
#ifndef __BOTTLES_HPP
|
|
|
|
#define __BOTTLES_HPP
|
|
|
|
#pragma once
|
|
|
|
|
2017-03-22 19:02:14 -07:00
|
|
|
#include <map>
|
2017-03-13 19:03:07 -07:00
|
|
|
#include <string>
|
|
|
|
|
2017-03-22 19:02:14 -07:00
|
|
|
#include "json.hpp"
|
|
|
|
|
2017-03-13 19:03:07 -07:00
|
|
|
using namespace std;
|
|
|
|
|
2017-03-22 19:02:14 -07:00
|
|
|
using json = nlohmann::json;
|
|
|
|
|
2017-03-13 19:03:07 -07:00
|
|
|
namespace cellar {
|
|
|
|
namespace bottles {
|
2017-03-22 19:02:14 -07:00
|
|
|
enum bottle_type {
|
|
|
|
bottle_error,
|
|
|
|
bottle_anonymous,
|
|
|
|
bottle_labelled,
|
|
|
|
bottle_symlink
|
|
|
|
};
|
|
|
|
class Bottle {
|
|
|
|
public:
|
|
|
|
bottle_type type;
|
|
|
|
json config;
|
|
|
|
string path;
|
|
|
|
string canonical_path;
|
|
|
|
Bottle();
|
|
|
|
};
|
|
|
|
map<string, Bottle> get_bottles();
|
2017-03-13 19:03:07 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __BOTTLES_HPP
|