PhotosXmlDictReader(XmlReader* reader, PhotoInfo* photo_info)
: iapps::XmlDictReader(reader), photo_info_(photo_info) {}
- virtual bool HandleKeyImpl(const std::string& key) OVERRIDE {
+ bool HandleKeyImpl(const std::string& key) override {
if (key == "ImagePath") {
std::string value;
if (!iapps::ReadString(reader_, &value))
return true;
}
- virtual bool FinishedOk() OVERRIDE {
- return Found("ImagePath");
- }
+ bool FinishedOk() override { return Found("ImagePath"); }
private:
PhotoInfo* photo_info_;
AlbumXmlDictReader(XmlReader* reader, AlbumInfo* album_info)
: iapps::XmlDictReader(reader), album_info_(album_info) {}
- virtual bool ShouldLoop() OVERRIDE {
+ bool ShouldLoop() override {
return !(Found("AlbumId") && Found("AlbumName") && Found("KeyList"));
}
- virtual bool HandleKeyImpl(const std::string& key) OVERRIDE {
+ bool HandleKeyImpl(const std::string& key) override {
if (key == "AlbumId") {
if (!iapps::ReadInteger(reader_, &album_info_->id))
return false;
return true;
}
- virtual bool FinishedOk() OVERRIDE {
- return !ShouldLoop();
- }
+ bool FinishedOk() override { return !ShouldLoop(); }
private:
AlbumInfo* album_info_;
IPhotoLibraryXmlDictReader(XmlReader* reader, parser::Library* library)
: iapps::XmlDictReader(reader), library_(library), ok_(true) {}
- virtual bool ShouldLoop() OVERRIDE {
+ bool ShouldLoop() override {
return !(Found("List of Albums") && Found("Master Image List"));
}
- virtual bool HandleKeyImpl(const std::string& key) OVERRIDE {
+ bool HandleKeyImpl(const std::string& key) override {
if (key == "List of Albums") {
if (!iapps::SeekToNodeAtCurrentDepth(reader_, "array") ||
!reader_->Read()) {
return true;
}
- virtual bool FinishedOk() OVERRIDE {
- return ok_;
- }
+ bool FinishedOk() override { return ok_; }
// The IPhotoLibrary allows duplicate "List of Albums" and
// "Master Image List" keys (although that seems odd.)
- virtual bool AllowRepeats() OVERRIDE {
- return true;
- }
+ bool AllowRepeats() override { return true; }
private:
parser::Library* library_;