Configuration
Revision 0:339a22594c8a, committed 2021-05-07
- Comitter:
- lmarketin
- Date:
- Fri May 07 13:50:47 2021 +0000
- Commit message:
- Configuration
Changed in this revision
configuration.cpp | Show annotated file Show diff for this revision Revisions of this file |
configuration.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 339a22594c8a configuration.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configuration.cpp Fri May 07 13:50:47 2021 +0000 @@ -0,0 +1,61 @@ +#include "configuration.h" + + +Configuration::Configuration() +{ +} + +Configuration::~Configuration() +{ +} + +int Configuration::getMode() +{ + return m_mode; +} + +void Configuration::setMode(int mode) +{ + m_mode = mode; +} + +float Configuration::getDistance() +{ + return m_distance; +} + +void Configuration::setDistance(float distance) +{ + m_distance = distance; +} + +int Configuration::getMonitoringDuration() +{ + return m_monitoringDuration; +} + +void Configuration::setMonitoringDuration(int monitoringDuration) +{ + m_monitoringDuration = monitoringDuration; +} + +int Configuration::getFanWorkingDuration() +{ + return m_fanWorkingDuration; +} + +void Configuration::setFanWorkingDuration(int fanWorkingDuration) +{ + m_fanWorkingDuration = fanWorkingDuration; +} + +int Configuration::getFanYCoordinate() +{ + return m_fanYCoordinate; +} + +void Configuration::setFanYCoordinate(int fanYCoordinate) +{ + m_fanYCoordinate = fanYCoordinate; +} +
diff -r 000000000000 -r 339a22594c8a configuration.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configuration.h Fri May 07 13:50:47 2021 +0000 @@ -0,0 +1,42 @@ +#ifndef CONFIGURATION_H +#define CONFIGURATION_H + +/* +*This class is used to storing configuration parameters and carry them +*/ +class Configuration +{ +public: + + Configuration(); + + ~Configuration(); + + /**Returns working mode (0 - circle mode, 1 - square mode)*/ + int getMode(); + + /**Setting working mode (0 - circle mode, 1 - square mode)*/ + void setMode(int mode); + + /**Returns the maximum distance at which objects are in the restricted area*/ + float getDistance(); + + /**Setting the maximum distance at which objects are in the restricted area*/ + void setDistance(float distance); + + int getMonitoringDuration(); + void setMonitoringDuration(int monitoringDuration); + int getFanWorkingDuration(); + void setFanWorkingDuration(int fanWorkingDuration); + int getFanYCoordinate(); + void setFanYCoordinate(int fanYCoordinate); + +private : + int m_mode; + float m_distance; + int m_monitoringDuration; //in a seconds + int m_fanWorkingDuration; //in a seconds + int m_fanYCoordinate; + +}; +#endif \ No newline at end of file