AtomicFile: Add size() and remove() methods

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
Shaun Ruffell 2020-06-06 20:41:45 -05:00 committed by lauft
parent cea2e5d13f
commit 0a4644bfc7
3 changed files with 71 additions and 8 deletions

View file

@ -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);