Ardour  9.0-pre0-582-g084a23a80d
MIDI::Name::MasterDeviceNames Class Reference

#include <midnam_patch.h>

Public Types

typedef std::set< std::string > Models
 
typedef std::map< std::string, std::shared_ptr< CustomDeviceMode > > CustomDeviceModes
 maps name to CustomDeviceMode More...
 
typedef std::list< std::string > CustomDeviceModeNames
 
typedef std::map< std::string, std::shared_ptr< ChannelNameSet > > ChannelNameSets
 maps name to ChannelNameSet More...
 
typedef std::map< std::string, std::shared_ptr< NoteNameList > > NoteNameLists
 
typedef std::map< std::string, std::shared_ptr< ControlNameList > > ControlNameLists
 
typedef std::map< std::string, std::shared_ptr< ValueNameList > > ValueNameLists
 
typedef std::map< std::string, PatchNameListPatchNameLists
 

Public Member Functions

 MasterDeviceNames ()
 
virtual ~MasterDeviceNames ()
 
const std::string & manufacturer () const
 
void set_manufacturer (const std::string &manufacturer)
 
const Modelsmodels () const
 
void set_models (const Models some_models)
 
const ControlNameListscontrols () const
 
const ValueNameListsvalues () const
 
std::shared_ptr< const ValueNameListvalue_name_list_by_control (const std::string &mode, uint8_t channel, uint8_t number)
 
const CustomDeviceModeNamescustom_device_mode_names () const
 
std::shared_ptr< CustomDeviceModecustom_device_mode_by_name (const std::string &mode_name)
 
std::shared_ptr< ChannelNameSetchannel_name_set_by_channel (const std::string &mode, uint8_t channel)
 
std::shared_ptr< Patchfind_patch (const std::string &mode, uint8_t channel, const PatchPrimaryKey &key)
 
std::shared_ptr< ControlNameListcontrol_name_list (const std::string &name)
 
std::shared_ptr< ValueNameListvalue_name_list (const std::string &name)
 
std::shared_ptr< NoteNameListnote_name_list (const std::string &name)
 
std::shared_ptr< ChannelNameSetchannel_name_set (const std::string &name)
 
std::string note_name (const std::string &mode_name, uint8_t channel, uint16_t bank, uint8_t program, uint8_t number)
 
XMLNodeget_state () const
 
int set_state (const XMLTree &, const XMLNode &)
 

Private Attributes

std::string _manufacturer
 
Models _models
 
CustomDeviceModes _custom_device_modes
 
CustomDeviceModeNames _custom_device_mode_names
 
ChannelNameSets _channel_name_sets
 
NoteNameLists _note_name_lists
 
PatchNameLists _patch_name_lists
 
ControlNameLists _control_name_lists
 
ValueNameLists _value_name_lists
 

Detailed Description

Definition at line 405 of file midnam_patch.h.

Member Typedef Documentation

◆ ChannelNameSets

typedef std::map<std::string, std::shared_ptr<ChannelNameSet> > MIDI::Name::MasterDeviceNames::ChannelNameSets

maps name to ChannelNameSet

Definition at line 413 of file midnam_patch.h.

◆ ControlNameLists

typedef std::map<std::string, std::shared_ptr<ControlNameList> > MIDI::Name::MasterDeviceNames::ControlNameLists

Definition at line 415 of file midnam_patch.h.

◆ CustomDeviceModeNames

Definition at line 411 of file midnam_patch.h.

◆ CustomDeviceModes

typedef std::map<std::string, std::shared_ptr<CustomDeviceMode> > MIDI::Name::MasterDeviceNames::CustomDeviceModes

maps name to CustomDeviceMode

Definition at line 410 of file midnam_patch.h.

◆ Models

typedef std::set<std::string> MIDI::Name::MasterDeviceNames::Models

Definition at line 408 of file midnam_patch.h.

◆ NoteNameLists

typedef std::map<std::string, std::shared_ptr<NoteNameList> > MIDI::Name::MasterDeviceNames::NoteNameLists

Definition at line 414 of file midnam_patch.h.

◆ PatchNameLists

Definition at line 417 of file midnam_patch.h.

◆ ValueNameLists

typedef std::map<std::string, std::shared_ptr<ValueNameList> > MIDI::Name::MasterDeviceNames::ValueNameLists

Definition at line 416 of file midnam_patch.h.

Constructor & Destructor Documentation

◆ MasterDeviceNames()

MIDI::Name::MasterDeviceNames::MasterDeviceNames ( )
inline

Definition at line 419 of file midnam_patch.h.

◆ ~MasterDeviceNames()

virtual MIDI::Name::MasterDeviceNames::~MasterDeviceNames ( )
inlinevirtual

Definition at line 420 of file midnam_patch.h.

Member Function Documentation

◆ channel_name_set()

std::shared_ptr<ChannelNameSet> MIDI::Name::MasterDeviceNames::channel_name_set ( const std::string &  name)

◆ channel_name_set_by_channel()

std::shared_ptr<ChannelNameSet> MIDI::Name::MasterDeviceNames::channel_name_set_by_channel ( const std::string &  mode,
uint8_t  channel 
)

◆ control_name_list()

std::shared_ptr<ControlNameList> MIDI::Name::MasterDeviceNames::control_name_list ( const std::string &  name)

◆ controls()

const ControlNameLists& MIDI::Name::MasterDeviceNames::controls ( ) const
inline

Definition at line 428 of file midnam_patch.h.

◆ custom_device_mode_by_name()

std::shared_ptr<CustomDeviceMode> MIDI::Name::MasterDeviceNames::custom_device_mode_by_name ( const std::string &  mode_name)

◆ custom_device_mode_names()

const CustomDeviceModeNames& MIDI::Name::MasterDeviceNames::custom_device_mode_names ( ) const
inline

Definition at line 436 of file midnam_patch.h.

◆ find_patch()

std::shared_ptr<Patch> MIDI::Name::MasterDeviceNames::find_patch ( const std::string &  mode,
uint8_t  channel,
const PatchPrimaryKey key 
)

◆ get_state()

XMLNode& MIDI::Name::MasterDeviceNames::get_state ( ) const

◆ manufacturer()

const std::string& MIDI::Name::MasterDeviceNames::manufacturer ( ) const
inline

Definition at line 422 of file midnam_patch.h.

◆ models()

const Models& MIDI::Name::MasterDeviceNames::models ( ) const
inline

Definition at line 425 of file midnam_patch.h.

◆ note_name()

std::string MIDI::Name::MasterDeviceNames::note_name ( const std::string &  mode_name,
uint8_t  channel,
uint16_t  bank,
uint8_t  program,
uint8_t  number 
)

◆ note_name_list()

std::shared_ptr<NoteNameList> MIDI::Name::MasterDeviceNames::note_name_list ( const std::string &  name)

◆ set_manufacturer()

void MIDI::Name::MasterDeviceNames::set_manufacturer ( const std::string &  manufacturer)
inline

Definition at line 423 of file midnam_patch.h.

◆ set_models()

void MIDI::Name::MasterDeviceNames::set_models ( const Models  some_models)
inline

Definition at line 426 of file midnam_patch.h.

◆ set_state()

int MIDI::Name::MasterDeviceNames::set_state ( const XMLTree ,
const XMLNode  
)

◆ value_name_list()

std::shared_ptr<ValueNameList> MIDI::Name::MasterDeviceNames::value_name_list ( const std::string &  name)

◆ value_name_list_by_control()

std::shared_ptr<const ValueNameList> MIDI::Name::MasterDeviceNames::value_name_list_by_control ( const std::string &  mode,
uint8_t  channel,
uint8_t  number 
)

◆ values()

const ValueNameLists& MIDI::Name::MasterDeviceNames::values ( ) const
inline

Definition at line 429 of file midnam_patch.h.

Member Data Documentation

◆ _channel_name_sets

ChannelNameSets MIDI::Name::MasterDeviceNames::_channel_name_sets
private

Definition at line 461 of file midnam_patch.h.

◆ _control_name_lists

ControlNameLists MIDI::Name::MasterDeviceNames::_control_name_lists
private

Definition at line 464 of file midnam_patch.h.

◆ _custom_device_mode_names

CustomDeviceModeNames MIDI::Name::MasterDeviceNames::_custom_device_mode_names
private

Definition at line 460 of file midnam_patch.h.

◆ _custom_device_modes

CustomDeviceModes MIDI::Name::MasterDeviceNames::_custom_device_modes
private

Definition at line 459 of file midnam_patch.h.

◆ _manufacturer

std::string MIDI::Name::MasterDeviceNames::_manufacturer
private

Definition at line 457 of file midnam_patch.h.

◆ _models

Models MIDI::Name::MasterDeviceNames::_models
private

Definition at line 458 of file midnam_patch.h.

◆ _note_name_lists

NoteNameLists MIDI::Name::MasterDeviceNames::_note_name_lists
private

Definition at line 462 of file midnam_patch.h.

◆ _patch_name_lists

PatchNameLists MIDI::Name::MasterDeviceNames::_patch_name_lists
private

Definition at line 463 of file midnam_patch.h.

◆ _value_name_lists

ValueNameLists MIDI::Name::MasterDeviceNames::_value_name_lists
private

Definition at line 465 of file midnam_patch.h.


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