Ardour  9.0-pre0-380-gbbdb6b0e63
ArdourSurface::US2400::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 35 of file us2400/device_profile.h.

Member Typedef Documentation

◆ ButtonActionMap

Constructor & Destructor Documentation

◆ DeviceProfile()

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

◆ ~DeviceProfile()

ArdourSurface::US2400::DeviceProfile::~DeviceProfile ( )

Member Function Documentation

◆ get_button_action()

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

◆ get_state()

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

◆ name()

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

◆ name_when_edited()

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

◆ reload_device_profiles()

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

◆ save()

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

◆ set_button_action()

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

◆ set_path()

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

◆ set_state()

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

Member Data Documentation

◆ _button_map

ButtonActionMap ArdourSurface::US2400::DeviceProfile::_button_map
private

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

◆ _name

std::string ArdourSurface::US2400::DeviceProfile::_name
private

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

◆ _path

std::string ArdourSurface::US2400::DeviceProfile::_path
private

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

◆ default_profile_name

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

Definition at line 50 of file us2400/device_profile.h.

◆ device_profiles

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

Definition at line 48 of file us2400/device_profile.h.

◆ edited

bool ArdourSurface::US2400::DeviceProfile::edited
private

Definition at line 67 of file us2400/device_profile.h.

◆ edited_indicator

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

Definition at line 69 of file us2400/device_profile.h.


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