Image.h 445 B

1234567891011121314151617181920212223242526272829
  1. #ifndef KIND_IMAGE_H
  2. #define KIND_IMAGE_H
  3. #include <string>
  4. #include <vector>
  5. #include "DateTime.h"
  6. #include "expiretools.h"
  7. class Image
  8. {
  9. public:
  10. Image(const std::string& dir);
  11. std::string name;
  12. DateTime time;
  13. std::string series;
  14. bool valid;
  15. DateTime expire;
  16. std::string expireRule;
  17. friend bool operator<(const Image& i1, const Image& i2)
  18. {
  19. return i1.time < i2.time;
  20. }
  21. };
  22. typedef std::vector<Image> Images;
  23. #endif