Database: Added location accessor

This commit is contained in:
Paul Beckingham 2016-03-19 09:00:07 -04:00
parent b2f470d113
commit 2d701b768b
2 changed files with 7 additions and 0 deletions

View file

@ -59,6 +59,12 @@ void Database::initialize (const std::string& location)
// TODO If there is no data file named YYYY—MM.data, then create it. // TODO If there is no data file named YYYY—MM.data, then create it.
} }
////////////////////////////////////////////////////////////////////////////////
std::string Database::location () const
{
return _location;
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
std::string Database::dump () const std::string Database::dump () const
{ {

View file

@ -36,6 +36,7 @@ class Database
public: public:
Database () = default; Database () = default;
void initialize (const std::string&); void initialize (const std::string&);
std::string location () const;
std::string dump () const; std::string dump () const;
private: private: