Introduce a method update the noteSetMap after event creation (addNote).
This commit is contained in:
parent
205ff6c033
commit
7215756fed
|
@ -291,6 +291,10 @@ void Event::createNotes(std::string ¬es) {
|
||||||
}
|
}
|
||||||
} // void Event::createNotes(std::string ¬es)
|
} // void Event::createNotes(std::string ¬es)
|
||||||
|
|
||||||
|
void Event::addNote(const char *cause, const std::string ¬e) {
|
||||||
|
noteSetMap[cause].insert(note);
|
||||||
|
}
|
||||||
|
|
||||||
bool Event::WriteFrameImage(Image *image, SystemTimePoint timestamp, const char *event_file, bool alarm_frame) const {
|
bool Event::WriteFrameImage(Image *image, SystemTimePoint timestamp, const char *event_file, bool alarm_frame) const {
|
||||||
int thisquality =
|
int thisquality =
|
||||||
(alarm_frame && (config.jpeg_alarm_file_quality > config.jpeg_file_quality)) ?
|
(alarm_frame && (config.jpeg_alarm_file_quality > config.jpeg_file_quality)) ?
|
||||||
|
|
|
@ -110,6 +110,7 @@ class Event {
|
||||||
|
|
||||||
uint64_t Id() const { return id; }
|
uint64_t Id() const { return id; }
|
||||||
const std::string &Cause() const { return cause; }
|
const std::string &Cause() const { return cause; }
|
||||||
|
void addNote(const char *cause, const std::string ¬e);
|
||||||
int Frames() const { return frames; }
|
int Frames() const { return frames; }
|
||||||
int AlarmFrames() const { return alarm_frames; }
|
int AlarmFrames() const { return alarm_frames; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue