diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-21 22:30:13 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-21 22:31:35 -0400 |
commit | 6ca3a1593e1467e057637e5ba863ca613e576eb8 (patch) | |
tree | 69ae27a0896f0522d238cb99f37651866f3d1d84 | |
parent | 217b2c77539c78b1fb1e3f353ff048ced52bc153 (diff) |
add commentary and clean up blank lines
-rw-r--r-- | libs/pbd/pbd/controllable.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libs/pbd/pbd/controllable.h b/libs/pbd/pbd/controllable.h index 2dfe7d8785..a0cffdfcd6 100644 --- a/libs/pbd/pbd/controllable.h +++ b/libs/pbd/pbd/controllable.h @@ -37,6 +37,18 @@ class XMLNode; namespace PBD { +/* This is a pure virtual class to represent a scalar control. + * + * Note that it contains no storage/state for the controllable thing that it + * represents. Derived classes must provide set_value()/get_value() methods, + * which will involve (somehow) an actual location to store the value. + * + * In essence, this is an interface, not a class. + * + * Without overriding upper() and lower(), a derived class will function + * as a control whose value can range between 0 and 1.0. + */ + class LIBPBD_API Controllable : public PBD::StatefulDestructible { public: enum Flag { @@ -116,9 +128,7 @@ class LIBPBD_API Controllable : public PBD::StatefulDestructible { static const std::string xml_node_name; private: std::string _name; - std::string _units; - Flag _flags; bool _touching; |