summaryrefslogtreecommitdiff
path: root/libs/surfaces/websockets/state.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-02-23 16:03:59 +0100
committerRobin Gareus <robin@gareus.org>2020-02-23 16:21:55 +0100
commit5e3480ba8f3dfd5368f323322de7eb79fcf8f97a (patch)
tree71a75edc24ebce9a6a6f9827f05a57488c43a2b9 /libs/surfaces/websockets/state.h
parent224be912112941199fc8c2ff79518d2d2a2262d0 (diff)
NO-OP: Re-indent websockets code
"Always use Tabstops for block-indent (the code must be formatted correctly with "[TAB] = N spaces" for any value of N). Use space only for alignment." - https://ardour.org/styleguide.html
Diffstat (limited to 'libs/surfaces/websockets/state.h')
-rw-r--r--libs/surfaces/websockets/state.h84
1 files changed, 43 insertions, 41 deletions
diff --git a/libs/surfaces/websockets/state.h b/libs/surfaces/websockets/state.h
index 0c1762c41b..b4510b02f1 100644
--- a/libs/surfaces/websockets/state.h
+++ b/libs/surfaces/websockets/state.h
@@ -19,64 +19,66 @@
#ifndef node_state_h
#define node_state_h
-#include <stdint.h>
#include <climits>
#include <cmath>
#include <cstring>
+#include <stdint.h>
#include <vector>
#include "typed_value.h"
-#define ADDR_NONE UINT_MAX
-
-namespace Node {
- const std::string tempo = "tempo";
- const std::string strip_desc = "strip_desc";
- const std::string strip_meter = "strip_meter";
- const std::string strip_gain = "strip_gain";
- const std::string strip_pan = "strip_pan";
- const std::string strip_mute = "strip_mute";
- const std::string strip_plugin_desc = "strip_plugin_desc";
- const std::string strip_plugin_enable = "strip_plugin_enable";
- const std::string strip_plugin_param_desc = "strip_plugin_param_desc";
- const std::string strip_plugin_param_value = "strip_plugin_param_value";
-}
-
-typedef std::vector<uint32_t> AddressVector;
+#define ADDR_NONE UINT_MAX
+
+namespace Node
+{
+ const std::string tempo = "tempo";
+ const std::string strip_desc = "strip_desc";
+ const std::string strip_meter = "strip_meter";
+ const std::string strip_gain = "strip_gain";
+ const std::string strip_pan = "strip_pan";
+ const std::string strip_mute = "strip_mute";
+ const std::string strip_plugin_desc = "strip_plugin_desc";
+ const std::string strip_plugin_enable = "strip_plugin_enable";
+ const std::string strip_plugin_param_desc = "strip_plugin_param_desc";
+ const std::string strip_plugin_param_value = "strip_plugin_param_value";
+} // namespace Node
+
+typedef std::vector<uint32_t> AddressVector;
typedef std::vector<TypedValue> ValueVector;
-class NodeState {
-
- public:
-
- NodeState ();
- NodeState (std::string);
- NodeState (std::string, AddressVector, ValueVector = ValueVector());
-
- std::string debug_str () const;
-
- std::string node () const { return _node; }
+class NodeState
+{
+public:
+ NodeState ();
+ NodeState (std::string);
+ NodeState (std::string, AddressVector, ValueVector = ValueVector ());
- int n_addr () const;
- uint32_t nth_addr (int) const;
- void add_addr (uint32_t);
+ std::string debug_str () const;
- int n_val () const;
- TypedValue nth_val (int) const;
- void add_val (TypedValue);
+ std::string node () const
+ {
+ return _node;
+ }
- std::size_t node_addr_hash () const;
+ int n_addr () const;
+ uint32_t nth_addr (int) const;
+ void add_addr (uint32_t);
- bool operator== (const NodeState& other) const;
+ int n_val () const;
+ TypedValue nth_val (int) const;
+ void add_val (TypedValue);
- private:
+ std::size_t node_addr_hash () const;
- std::string _node;
- AddressVector _addr;
- ValueVector _val;
+ bool operator== (const NodeState& other) const;
+private:
+ std::string _node;
+ AddressVector _addr;
+ ValueVector _val;
};
-std::size_t hash_value (const NodeState&);
+std::size_t
+hash_value (const NodeState&);
#endif // node_state_h