Skip to content
Snippets Groups Projects
Commit c9058e9b authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

move MonitorBase implementations to .cc file

parent 28da3abe
No related branches found
No related tags found
No related merge requests found
......@@ -9,10 +9,10 @@ namespace ChimeraTK {
/* Implementation of MonitorBase ***********************************************************************************/
/*******************************************************************************************************************/
MonitorBase::MonitorBase(EntityOwner* owner, const std::string& description, const std::string& outputPath,
MonitorBase::MonitorBase(ModuleGroup* owner, const std::string& description, const std::string& outputPath,
const std::string& disablePath, const std::unordered_set<std::string>& outputTags,
const std::unordered_set<std::string>& parameterTags)
: ApplicationModule(owner, "hidden", description, HierarchyModifier::hideThis),
: ApplicationModule(owner, ".", description),
disable(this, disablePath, "", "Disable the status monitor", parameterTags),
status(this, outputPath, "Resulting status", outputTags) {}
......@@ -20,10 +20,10 @@ namespace ChimeraTK {
void MonitorBase::setStatus(StatusOutput::Status newStatus) {
// update only if status has changed, but always in case of initial value
if(status.value != newStatus || getDataValidity() != lastStatusValidity ||
status.value.getVersionNumber() == VersionNumber{nullptr}) {
status.value = newStatus;
status.value.write();
if(status != newStatus || getDataValidity() != lastStatusValidity ||
status.getVersionNumber() == VersionNumber{nullptr}) {
status = newStatus;
status.write();
lastStatusValidity = getDataValidity();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment