23 #ifndef REFCOUNTFILE_H
24 #define REFCOUNTFILE_H
54 const std::string& GetFilePath()
const
90 std::string mFilePath;
Class that represents a reference count file.
Definition: RefCountFile.h:41
int Increment()
Increment the reference count in the file.
Definition: RefCountFile.cpp:105
int Write(int ref)
Write the reference count to file.
Definition: RefCountFile.cpp:189
int Decrement()
Decrement the reference count in the file.
Definition: RefCountFile.cpp:126
void Reset()
Reset the reference count in the file if it is not 0.
Definition: RefCountFile.cpp:87
int Read()
Read the reference count file.
Definition: RefCountFile.cpp:155
void Close()
Close the file descriptor if it's not already closed.
Definition: RefCountFile.cpp:62