Ardour  9.0-pre0-380-gbbdb6b0e63
surfaces/us2400/control_group.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Ben Loftis <ben@harrisonconsoles.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef __ardour_us2400_control_protocol_control_group_h__
20 #define __ardour_us2400_control_protocol_control_group_h__
21 
22 #include <string>
23 #include <vector>
24 
25 namespace ArdourSurface {
26 namespace US2400 {
27 
28 class Control;
29 
34 class Group
35 {
36 public:
37  Group (const std::string & name)
38  : _name (name) {}
39 
40  virtual ~Group() {}
41 
42  virtual bool is_strip() const { return false; }
43  virtual bool is_master() const { return false; }
44 
45  virtual void add (Control & control);
46 
47  const std::string & name() const { return _name; }
48  void set_name (const std::string & rhs) { _name = rhs; }
49 
50  typedef std::vector<Control*> Controls;
51  const Controls & controls() const { return _controls; }
52 
53 protected:
55 
56 private:
57  std::string _name;
58 };
59 
60 }
61 }
62 
63 #endif
void set_name(const std::string &rhs)
virtual void add(Control &control)
DebugBits US2400