Ardour  9.0-pre0-582-g084a23a80d
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 #pragma once
20 
21 #include <boost/dynamic_bitset.hpp>
22 #include <stdint.h>
23 
25 
26 namespace ARDOUR {
27 
29 public:
30  enum Element {
36  };
37 
38  RuntimeProfile() { bits.resize (LastElement); }
40 
41  void set_small_screen() { bits[SmallScreen] = true; }
42  bool get_small_screen() const { return bits[SmallScreen]; }
43 
44  bool get_mixbus() const { return bits[Mixbus]; }
45  void set_mixbus() { bits[Mixbus] = true; }
46 
47  bool get_livetrax() const { return bits[LiveTrax]; }
48  void set_livetrax() { bits[LiveTrax] = true; }
49 
50  void set_single_package () { bits[SinglePackage] = true; }
51  bool get_single_package () const { return bits[SinglePackage]; }
52 
53 private:
54  boost::dynamic_bitset<uint64_t> bits;
55 
56 };
57 
59 
60 }; // namespace ARDOUR
61 
bool get_small_screen() const
Definition: profile.h:42
boost::dynamic_bitset< uint64_t > bits
Definition: profile.h:54
bool get_single_package() const
Definition: profile.h:51
bool get_livetrax() const
Definition: profile.h:47
bool get_mixbus() const
Definition: profile.h:44
void set_small_screen()
Definition: profile.h:41
void set_single_package()
Definition: profile.h:50
#define LIBARDOUR_API
RuntimeProfile * Profile
const guchar * bits
Definition: xcursors.h:1