bottles now initialize their config in a new constructor instead of get_bottles

This commit is contained in:
Nicholas O'Connor
2017-03-24 17:58:24 -07:00
parent 20844ae72b
commit 22cffca2d8
2 changed files with 35 additions and 23 deletions

View File

@@ -22,13 +22,21 @@ namespace cellar {
};
class Bottle {
public:
// public members
bottle_type type;
json config;
string path;
string canonical_path;
// constructors
Bottle();
Bottle(string);
// methods
bool load_config();
bool save_config();
string get_config(string);
bool set_config(string, string);
};
extern map<string, Bottle> get_bottles();
}