diff options
Diffstat (limited to 'xsig/include')
-rw-r--r-- | xsig/include/signature_db.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xsig/include/signature_db.hpp b/xsig/include/signature_db.hpp index 9b14fbb..23e3aae 100644 --- a/xsig/include/signature_db.hpp +++ b/xsig/include/signature_db.hpp @@ -45,7 +45,12 @@ public: signature_db(const fs::path &dbpath = fs::path()); ~signature_db(); + //true if db is valid, false if not. + //only useful when opening an existing db file bool valid(); + //true if db has changes that are not written to disk, false otherwise + //always true if db is not in RAM. + bool is_dirty(); //insert image signature into database //if id is omitted, it's assigned automatically and returned |