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
25
#include "
ardour/libardour_visibility.h
"
26
27
namespace
ARDOUR
{
28
29
class
LIBARDOUR_API
RuntimeProfile
{
30
public
:
31
enum
Element
{
32
SmallScreen
,
33
SinglePackage
,
34
Mixbus
,
35
LiveTrax
,
36
LastElement
,
37
};
38
39
RuntimeProfile
() {
bits
.resize (LastElement); }
40
~RuntimeProfile
() {}
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
59
LIBARDOUR_API
extern
RuntimeProfile
*
Profile
;
60
61
};
// namespace ARDOUR
62
63
#endif
/* __ardour_profile_h__ */
ARDOUR::RuntimeProfile
Definition:
profile.h:29
ARDOUR::RuntimeProfile::get_small_screen
bool get_small_screen() const
Definition:
profile.h:43
ARDOUR::RuntimeProfile::bits
boost::dynamic_bitset< uint64_t > bits
Definition:
profile.h:55
ARDOUR::RuntimeProfile::get_single_package
bool get_single_package() const
Definition:
profile.h:52
ARDOUR::RuntimeProfile::get_livetrax
bool get_livetrax() const
Definition:
profile.h:48
ARDOUR::RuntimeProfile::RuntimeProfile
RuntimeProfile()
Definition:
profile.h:39
ARDOUR::RuntimeProfile::set_mixbus
void set_mixbus()
Definition:
profile.h:46
ARDOUR::RuntimeProfile::get_mixbus
bool get_mixbus() const
Definition:
profile.h:45
ARDOUR::RuntimeProfile::~RuntimeProfile
~RuntimeProfile()
Definition:
profile.h:40
ARDOUR::RuntimeProfile::set_small_screen
void set_small_screen()
Definition:
profile.h:42
ARDOUR::RuntimeProfile::Element
Element
Definition:
profile.h:31
ARDOUR::RuntimeProfile::SmallScreen
@ SmallScreen
Definition:
profile.h:32
ARDOUR::RuntimeProfile::LiveTrax
@ LiveTrax
Definition:
profile.h:35
ARDOUR::RuntimeProfile::LastElement
@ LastElement
Definition:
profile.h:36
ARDOUR::RuntimeProfile::SinglePackage
@ SinglePackage
Definition:
profile.h:33
ARDOUR::RuntimeProfile::Mixbus
@ Mixbus
Definition:
profile.h:34
ARDOUR::RuntimeProfile::set_livetrax
void set_livetrax()
Definition:
profile.h:49
ARDOUR::RuntimeProfile::set_single_package
void set_single_package()
Definition:
profile.h:51
libardour_visibility.h
LIBARDOUR_API
#define LIBARDOUR_API
Definition:
libardour_visibility.h:39
ARDOUR
Definition:
analysis_window.h:45
ARDOUR::Profile
RuntimeProfile * Profile
bits
const guchar * bits
Definition:
xcursors.h:1
libs
ardour
ardour
profile.h
Generated on Mon Mar 10 2025 20:26:28 for Ardour by
1.9.1