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
24
#include "
ardour/libardour_visibility.h
"
25
26
namespace
ARDOUR
{
27
28
class
LIBARDOUR_API
RuntimeProfile
{
29
public
:
30
enum
Element
{
31
SmallScreen
,
32
SinglePackage
,
33
Mixbus
,
34
LiveTrax
,
35
LastElement
,
36
};
37
38
RuntimeProfile
() {
bits
.resize (LastElement); }
39
~RuntimeProfile
() {}
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
58
LIBARDOUR_API
extern
RuntimeProfile
*
Profile
;
59
60
};
// namespace ARDOUR
61
ARDOUR::RuntimeProfile
Definition:
profile.h:28
ARDOUR::RuntimeProfile::get_small_screen
bool get_small_screen() const
Definition:
profile.h:42
ARDOUR::RuntimeProfile::bits
boost::dynamic_bitset< uint64_t > bits
Definition:
profile.h:54
ARDOUR::RuntimeProfile::get_single_package
bool get_single_package() const
Definition:
profile.h:51
ARDOUR::RuntimeProfile::get_livetrax
bool get_livetrax() const
Definition:
profile.h:47
ARDOUR::RuntimeProfile::RuntimeProfile
RuntimeProfile()
Definition:
profile.h:38
ARDOUR::RuntimeProfile::set_mixbus
void set_mixbus()
Definition:
profile.h:45
ARDOUR::RuntimeProfile::get_mixbus
bool get_mixbus() const
Definition:
profile.h:44
ARDOUR::RuntimeProfile::~RuntimeProfile
~RuntimeProfile()
Definition:
profile.h:39
ARDOUR::RuntimeProfile::set_small_screen
void set_small_screen()
Definition:
profile.h:41
ARDOUR::RuntimeProfile::Element
Element
Definition:
profile.h:30
ARDOUR::RuntimeProfile::SmallScreen
@ SmallScreen
Definition:
profile.h:31
ARDOUR::RuntimeProfile::LiveTrax
@ LiveTrax
Definition:
profile.h:34
ARDOUR::RuntimeProfile::LastElement
@ LastElement
Definition:
profile.h:35
ARDOUR::RuntimeProfile::SinglePackage
@ SinglePackage
Definition:
profile.h:32
ARDOUR::RuntimeProfile::Mixbus
@ Mixbus
Definition:
profile.h:33
ARDOUR::RuntimeProfile::set_livetrax
void set_livetrax()
Definition:
profile.h:48
ARDOUR::RuntimeProfile::set_single_package
void set_single_package()
Definition:
profile.h:50
libardour_visibility.h
LIBARDOUR_API
#define LIBARDOUR_API
Definition:
libardour_visibility.h:38
ARDOUR
Definition:
analysis_window.h:44
ARDOUR::Profile
RuntimeProfile * Profile
bits
const guchar * bits
Definition:
xcursors.h:1
libs
ardour
ardour
profile.h
Generated on Wed Dec 25 2024 05:44:45 for Ardour by
1.9.1