/** * @file * Copyright 2014 (c) Anna Schumaker. */ #include Library :: Library() : _enabled(false), count(0) { } Library :: Library(const std::string &s) : _path(s), _enabled(true), count(0) { } const std::string Library :: primary_key() const { return _path; } void Library :: read(File &f) { f >> _enabled; _path = f.getline(); } void Library :: write(File &f) { f << _enabled << " " << _path; } const bool Library :: enabled() { return _enabled; } void Library :: set_enabled(bool enabled) { _enabled = enabled; }