Skip to content

Commit

Permalink
Rename EventNotificationParameter -> NotificationParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaldoshi committed Aug 15, 2023
1 parent 3b72bbf commit f01a35d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions Source/Processors/GenericProcessor/GenericProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,15 +436,15 @@ void GenericProcessor::addTimeParameter(
dataStreamParameters.add(p);
}

void GenericProcessor::addEventNotificationParameter(
void GenericProcessor::addNotificationParameter(
Parameter::ParameterScope scope,
const String& name,
const String& displayName,
const String& description,
bool deactivateDuringAcquisition)
{

EventNotificationParameter* p = new EventNotificationParameter(
NotificationParameter* p = new NotificationParameter(
scope == Parameter::PROCESSOR_SCOPE ? this : nullptr,
scope,
name,
Expand Down Expand Up @@ -1061,8 +1061,8 @@ void GenericProcessor::update()
}
else if (param->getType() == Parameter::NOTIFICATION_PARAM)
{
EventNotificationParameter* p = (EventNotificationParameter*)param;
stream->addParameter(new EventNotificationParameter(*p));
NotificationParameter* p = (NotificationParameter*)param;
stream->addParameter(new NotificationParameter(*p));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/GenericProcessor/GenericProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class PLUGIN_API GenericProcessor : public GenericProcessorBase
bool deactivateDuringAcquisition = true);

/** Adds a path parameter which holds a path to a folder or file */
void addEventNotificationParameter(Parameter::ParameterScope scope,
void addNotificationParameter(Parameter::ParameterScope scope,
const String& name,
const String& displayName,
const String& description,
Expand Down
6 changes: 3 additions & 3 deletions Source/Processors/Parameter/Parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ void TimeParameter::fromXml(XmlElement* xml)
}


EventNotificationParameter::EventNotificationParameter(ParameterOwner* owner,
NotificationParameter::NotificationParameter(ParameterOwner* owner,
ParameterScope scope,
const String& name,
const String& displayName,
Expand All @@ -969,12 +969,12 @@ EventNotificationParameter::EventNotificationParameter(ParameterOwner* owner,

}

void EventNotificationParameter::triggerNotification()
void NotificationParameter::triggerNotification()
{
setNextValue(true);
}

void EventNotificationParameter::setNextValue(var newValue_)
void NotificationParameter::setNextValue(var newValue_)
{
getOwner()->parameterValueChanged(this);
}
4 changes: 2 additions & 2 deletions Source/Processors/Parameter/Parameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -879,11 +879,11 @@ class PLUGIN_API TimeParameter : public Parameter
Represents a Parameter that is only used for change notification.
E.g. to notify the processor that a certain event has occured.
*/
class PLUGIN_API EventNotificationParameter : public Parameter
class PLUGIN_API NotificationParameter : public Parameter
{
public:
/** Parameter constructor.*/
EventNotificationParameter(ParameterOwner* owner,
NotificationParameter(ParameterOwner* owner,
ParameterScope scope,
const String& name,
const String& displayName,
Expand Down
4 changes: 2 additions & 2 deletions Source/Processors/Visualization/Visualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,13 @@ void Visualizer::addSelectedStreamParameter(const String& name,

}

void Visualizer::addEventNotificationParameter(const String& name,
void Visualizer::addNotificationParameter(const String& name,
const String& displayName,
const String& description,
bool deactivateDuringAcquisition)
{

EventNotificationParameter* p = new EventNotificationParameter(
NotificationParameter* p = new NotificationParameter(
nullptr,
Parameter::VISUALIZER_SCOPE,
name,
Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/Visualization/Visualizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class PLUGIN_API Visualizer : public Component,
bool deactivateDuringAcquisition = true);

/** Adds a boolean parameter, which will later be accessed by name*/
void addEventNotificationParameter(const String& name,
void addNotificationParameter(const String& name,
const String& displayName,
const String& description,
bool deactivateDuringAcquisition = false);
Expand Down

0 comments on commit f01a35d

Please sign in to comment.