mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Database: Added location accessor
This commit is contained in:
parent
b2f470d113
commit
2d701b768b
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue