Ardour  8.7-14-g57a6773833
ArdourSurface::NS_MCU::DeviceProfile Class Reference

#include <device_profile.h>

Classes

struct  ButtonActions
 

Public Member Functions

 DeviceProfile (const std::string &name="")
 
 ~DeviceProfile ()
 
std::string get_button_action (Button::ID, int modifier_state) const
 
void set_button_action (Button::ID, int modifier_state, const std::string &)
 
std::string name () const
 
void set_path (const std::string &)
 

Static Public Member Functions

static void reload_device_profiles ()
 
static std::string name_when_edited (std::string const &name)
 

Static Public Attributes

static std::map< std::string, DeviceProfiledevice_profiles
 
static const std::string default_profile_name
 

Private Types

typedef std::map< Button::ID, ButtonActionsButtonActionMap
 

Private Member Functions

int set_state (const XMLNode &, int version)
 
XMLNodeget_state () const
 
void save ()
 

Private Attributes

std::string _name
 
std::string _path
 
ButtonActionMap _button_map
 
bool edited
 

Static Private Attributes

static const std::string edited_indicator
 

Detailed Description

Definition at line 34 of file mackie/device_profile.h.

Member Typedef Documentation

◆ ButtonActionMap

Constructor & Destructor Documentation

◆ DeviceProfile()

ArdourSurface::NS_MCU::DeviceProfile::DeviceProfile ( const std::string &  name = "")

◆ ~DeviceProfile()

ArdourSurface::NS_MCU::DeviceProfile::~DeviceProfile ( )

Member Function Documentation

◆ get_button_action()

std::string ArdourSurface::NS_MCU::DeviceProfile::get_button_action ( Button::ID  ,
int  modifier_state 
) const

◆ get_state()

XMLNode& ArdourSurface::NS_MCU::DeviceProfile::get_state ( ) const
private

◆ name()

std::string ArdourSurface::NS_MCU::DeviceProfile::name ( ) const

◆ name_when_edited()

static std::string ArdourSurface::NS_MCU::DeviceProfile::name_when_edited ( std::string const &  name)
static

◆ reload_device_profiles()

static void ArdourSurface::NS_MCU::DeviceProfile::reload_device_profiles ( )
static

◆ save()

void ArdourSurface::NS_MCU::DeviceProfile::save ( )
private

◆ set_button_action()

void ArdourSurface::NS_MCU::DeviceProfile::set_button_action ( Button::ID  ,
int  modifier_state,
const std::string &   
)

◆ set_path()

void ArdourSurface::NS_MCU::DeviceProfile::set_path ( const std::string &  )

◆ set_state()

int ArdourSurface::NS_MCU::DeviceProfile::set_state ( const XMLNode ,
int  version 
)
private

Member Data Documentation

◆ _button_map

ButtonActionMap ArdourSurface::NS_MCU::DeviceProfile::_button_map
private

Definition at line 65 of file mackie/device_profile.h.

◆ _name

std::string ArdourSurface::NS_MCU::DeviceProfile::_name
private

Definition at line 63 of file mackie/device_profile.h.

◆ _path

std::string ArdourSurface::NS_MCU::DeviceProfile::_path
private

Definition at line 64 of file mackie/device_profile.h.

◆ default_profile_name

const std::string ArdourSurface::NS_MCU::DeviceProfile::default_profile_name
static

Definition at line 49 of file mackie/device_profile.h.

◆ device_profiles

std::map<std::string,DeviceProfile> ArdourSurface::NS_MCU::DeviceProfile::device_profiles
static

Definition at line 47 of file mackie/device_profile.h.

◆ edited

bool ArdourSurface::NS_MCU::DeviceProfile::edited
private

Definition at line 66 of file mackie/device_profile.h.

◆ edited_indicator

const std::string ArdourSurface::NS_MCU::DeviceProfile::edited_indicator
staticprivate

Definition at line 68 of file mackie/device_profile.h.


The documentation for this class was generated from the following file: