diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-08 22:17:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-08 22:17:35 +0000 |
| commit | 2e0c94655f51ea9f01afea57f0c5f9d0f8efeb8d (patch) | |
| tree | 2f70c2b76d1c97c786c3b205f19eb983951c8d02 /src/lib/spl.h | |
| parent | 29436ead35fbb6041fd24115623cad7638693d8e (diff) | |
swaroop: better handling of missing content in SPLs.
Diffstat (limited to 'src/lib/spl.h')
| -rw-r--r-- | src/lib/spl.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/spl.h b/src/lib/spl.h index a0b754f04..b94c08571 100644 --- a/src/lib/spl.h +++ b/src/lib/spl.h @@ -28,6 +28,10 @@ class ContentStore; class SPL { public: + SPL () + : _missing (false) + {} + void add (SPLEntry e) { _spl.push_back (e); } @@ -48,16 +52,22 @@ public: return _spl[index]; } - bool read (boost::filesystem::path path, ContentStore* store); + void read (boost::filesystem::path path, ContentStore* store); void write (boost::filesystem::path path) const; std::string name () const { return _name; } + bool missing () const { + return _missing; + } + private: std::string _name; std::vector<SPLEntry> _spl; + /** true if any content was missing when read() was last called on this SPL */ + bool _missing; }; #endif |
