mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Datafile: Added ::load_lines
This commit is contained in:
parent
2cc9bc8551
commit
15090cba95
2 changed files with 26 additions and 8 deletions
|
@ -52,16 +52,21 @@ public:
|
|||
std::string dump () const;
|
||||
|
||||
private:
|
||||
void load_lines ();
|
||||
|
||||
private:
|
||||
File _file {};
|
||||
std::vector <std::string> _lines {};
|
||||
std::vector <std::string> _lines_added {};
|
||||
std::vector <std::string> _lines_modified {};
|
||||
bool _lines_loaded {false};
|
||||
bool _dirty {false};
|
||||
Datetime _day1 {0};
|
||||
Datetime _dayN {0};
|
||||
// File representing data.
|
||||
File _file {};
|
||||
bool _dirty {false};
|
||||
|
||||
// Lines read from file, not parsed.
|
||||
std::vector <std::string> _lines {};
|
||||
std::vector <std::string> _lines_added {};
|
||||
std::vector <std::string> _lines_modified {};
|
||||
bool _lines_loaded {false};
|
||||
|
||||
Datetime _day1 {0};
|
||||
Datetime _dayN {0};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue