Mercurial > hg > orthanc
comparison OrthancServer/ServerIndexChange.h @ 1436:0a3e3be59094
uncoupling of SignalChange for Lua scripts
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Jun 2015 17:19:26 +0200 |
parents | 6e7e5ed91c2d |
children | ec66a16aa398 |
comparison
equal
deleted
inserted
replaced
1435:6406f5493d92 | 1436:0a3e3be59094 |
---|---|
38 #include <string> | 38 #include <string> |
39 #include <json/value.h> | 39 #include <json/value.h> |
40 | 40 |
41 namespace Orthanc | 41 namespace Orthanc |
42 { | 42 { |
43 struct ServerIndexChange | 43 struct ServerIndexChange : public IDynamicObject |
44 { | 44 { |
45 private: | 45 private: |
46 int64_t seq_; | 46 int64_t seq_; |
47 ChangeType changeType_; | 47 ChangeType changeType_; |
48 ResourceType resourceType_; | 48 ResourceType resourceType_; |
70 changeType_(changeType), | 70 changeType_(changeType), |
71 resourceType_(resourceType), | 71 resourceType_(resourceType), |
72 publicId_(publicId), | 72 publicId_(publicId), |
73 date_(date) | 73 date_(date) |
74 { | 74 { |
75 } | |
76 | |
77 ServerIndexChange(const ServerIndexChange& other) | |
78 : seq_(other.seq_), | |
79 changeType_(other.changeType_), | |
80 resourceType_(other.resourceType_), | |
81 publicId_(other.publicId_), | |
82 date_(other.date_) | |
83 { | |
84 } | |
85 | |
86 ServerIndexChange* Clone() const | |
87 { | |
88 return new ServerIndexChange(*this); | |
75 } | 89 } |
76 | 90 |
77 int64_t GetSeq() const | 91 int64_t GetSeq() const |
78 { | 92 { |
79 return seq_; | 93 return seq_; |