mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
AtomicFile: Add size() and remove() methods
Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
parent
cea2e5d13f
commit
0a4644bfc7
3 changed files with 71 additions and 8 deletions
|
@ -48,7 +48,9 @@ public:
|
|||
|
||||
bool open ();
|
||||
void close ();
|
||||
void remove ();
|
||||
void truncate ();
|
||||
size_t size () const;
|
||||
void read (std::string& content);
|
||||
void read (std::vector <std::string>& lines);
|
||||
void append (const std::string& content);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue