git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add corporations.h, services.h and plugin_creator.h to install
[stg.git]
/
projects
/
stargazer
/
plugins
/
other
/
smux
/
sensors.h
diff --git
a/projects/stargazer/plugins/other/smux/sensors.h
b/projects/stargazer/plugins/other/smux/sensors.h
index 7c11751eca9551e5ee75f93910fcca8c773daf40..f751c82ebb689b59b75b2534b90ec7f93c109700 100644
(file)
--- a/
projects/stargazer/plugins/other/smux/sensors.h
+++ b/
projects/stargazer/plugins/other/smux/sensors.h
@@
-18,6
+18,7
@@
class Sensor {
public:
class Sensor {
public:
+ virtual ~Sensor() {}
virtual bool GetValue(ObjectSyntax_t * objectSyntax) const = 0;
#ifdef DEBUG
virtual std::string ToString() const = 0;
virtual bool GetValue(ObjectSyntax_t * objectSyntax) const = 0;
#ifdef DEBUG
virtual std::string ToString() const = 0;
@@
-280,11
+281,13
@@
class ConstSensor : public Sensor {
T value;
};
T value;
};
+#ifdef DEBUG
template <>
inline
std::string ConstSensor<std::string>::ToString() const
{
return value;
}
template <>
inline
std::string ConstSensor<std::string>::ToString() const
{
return value;
}
+#endif
#endif
#endif