comparison Framework/Plugins/IndexBackend.cpp @ 566:a7f841fc4a9f find-refactoring

fix builds on older compilers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 22 Sep 2024 10:06:51 +0200
parents 373cf7d747cc
children 77c8544bbd7d
comparison
equal deleted inserted replaced
565:373cf7d747cc 566:a7f841fc4a9f
110 } 110 }
111 } 111 }
112 } 112 }
113 113
114 114
115 namespace // Anonymous namespace to avoid clashes between compilation modules
116 {
117 struct Change
118 {
119 int64_t seq_;
120 int32_t changeType_;
121 OrthancPluginResourceType resourceType_;
122 std::string publicId_;
123 std::string changeDate_;
124
125 Change(int64_t seq, int32_t changeType, OrthancPluginResourceType resourceType, const std::string& publicId, const std::string& changeDate)
126 : seq_(seq), changeType_(changeType), resourceType_(resourceType), publicId_(publicId), changeDate_(changeDate)
127 {
128 }
129 };
130 }
131
132
115 void IndexBackend::ReadChangesInternal(IDatabaseBackendOutput& output, 133 void IndexBackend::ReadChangesInternal(IDatabaseBackendOutput& output,
116 bool& done, 134 bool& done,
117 DatabaseManager& manager, 135 DatabaseManager& manager,
118 DatabaseManager::CachedStatement& statement, 136 DatabaseManager::CachedStatement& statement,
119 const Dictionary& args, 137 const Dictionary& args,
120 uint32_t limit, 138 uint32_t limit,
121 bool returnFirstResults) 139 bool returnFirstResults)
122 { 140 {
123 struct Change
124 {
125 int64_t seq_;
126 int32_t changeType_;
127 OrthancPluginResourceType resourceType_;
128 std::string publicId_;
129 std::string changeDate_;
130
131 Change(int64_t seq, int32_t changeType, OrthancPluginResourceType resourceType, const std::string& publicId, const std::string& changeDate)
132 : seq_(seq), changeType_(changeType), resourceType_(resourceType), publicId_(publicId), changeDate_(changeDate)
133 {
134 }
135 };
136
137 statement.Execute(args); 141 statement.Execute(args);
138 142
139 std::list<Change> changes; 143 std::list<Change> changes;
140 while (!statement.IsDone()) 144 while (!statement.IsDone())
141 { 145 {