Ardour  8.12
profile.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2015 Paul Davis <paul@linuxaudiosystems.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_profile_h__
20 #define __ardour_profile_h__
21 
22 #include <boost/dynamic_bitset.hpp>
23 #include <stdint.h>
24 
26 
27 namespace ARDOUR {
28 
30 public:
31  enum Element {
37  };
38 
39  RuntimeProfile() { bits.resize (LastElement); }
41 
42  void set_small_screen() { bits[SmallScreen] = true; }
43  bool get_small_screen() const { return bits[SmallScreen]; }
44 
45  bool get_mixbus() const { return bits[Mixbus]; }
46  void set_mixbus() { bits[Mixbus] = true; }
47 
48  bool get_livetrax() const { return bits[LiveTrax]; }
49  void set_livetrax() { bits[LiveTrax] = true; }
50 
51  void set_single_package () { bits[SinglePackage] = true; }
52  bool get_single_package () const { return bits[SinglePackage]; }
53 
54 private:
55  boost::dynamic_bitset<uint64_t> bits;
56 
57 };
58 
60 
61 }; // namespace ARDOUR
62 
63 #endif /* __ardour_profile_h__ */
bool get_small_screen() const
Definition: profile.h:43
boost::dynamic_bitset< uint64_t > bits
Definition: profile.h:55
bool get_single_package() const
Definition: profile.h:52
bool get_livetrax() const
Definition: profile.h:48
bool get_mixbus() const
Definition: profile.h:45
void set_small_screen()
Definition: profile.h:42
void set_single_package()
Definition: profile.h:51
#define LIBARDOUR_API
RuntimeProfile * Profile
const guchar * bits
Definition: xcursors.h:1