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

#include <midnam_patch.h>

Public Types

typedef std::set< uint8_t > AvailableForChannels
 
typedef std::list< std::shared_ptr< PatchBank > > PatchBanks
 
typedef std::map< PatchPrimaryKey, std::shared_ptr< Patch > > PatchMap
 
typedef std::list< PatchPrimaryKeyPatchList
 

Public Member Functions

 ChannelNameSet ()
 
virtual ~ChannelNameSet ()
 
 ChannelNameSet (std::string &name)
 
const std::string & name () const
 
void set_name (const std::string &name)
 
const PatchBankspatch_banks () const
 
bool available_for_channel (uint8_t channel) const
 
std::shared_ptr< Patchfind_patch (const PatchPrimaryKey &key)
 
std::shared_ptr< Patchprevious_patch (const PatchPrimaryKey &key)
 
std::shared_ptr< Patchnext_patch (const PatchPrimaryKey &key)
 
const std::string & note_list_name () const
 
const std::string & control_list_name () const
 
XMLNodeget_state () const
 
int set_state (const XMLTree &, const XMLNode &)
 
void set_patch_banks (const PatchBanks &)
 
void use_patch_name_list (const PatchNameList &)
 

Private Attributes

std::string _name
 
AvailableForChannels _available_for_channels
 
PatchBanks _patch_banks
 
PatchMap _patch_map
 
PatchList _patch_list
 
std::string _patch_list_name
 
std::string _note_list_name
 
std::string _control_list_name
 

Friends

std::ostream & operator<< (std::ostream &, const ChannelNameSet &)
 

Detailed Description

Definition at line 150 of file midnam_patch.h.

Member Typedef Documentation

◆ AvailableForChannels

Definition at line 153 of file midnam_patch.h.

◆ PatchBanks

typedef std::list<std::shared_ptr<PatchBank> > MIDI::Name::ChannelNameSet::PatchBanks

Definition at line 154 of file midnam_patch.h.

◆ PatchList

Definition at line 156 of file midnam_patch.h.

◆ PatchMap

typedef std::map<PatchPrimaryKey, std::shared_ptr<Patch> > MIDI::Name::ChannelNameSet::PatchMap

Definition at line 155 of file midnam_patch.h.

Constructor & Destructor Documentation

◆ ChannelNameSet() [1/2]

MIDI::Name::ChannelNameSet::ChannelNameSet ( )
inline

Definition at line 158 of file midnam_patch.h.

◆ ~ChannelNameSet()

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

Definition at line 159 of file midnam_patch.h.

◆ ChannelNameSet() [2/2]

MIDI::Name::ChannelNameSet::ChannelNameSet ( std::string &  name)
inline

Definition at line 160 of file midnam_patch.h.

Member Function Documentation

◆ available_for_channel()

bool MIDI::Name::ChannelNameSet::available_for_channel ( uint8_t  channel) const
inline

Definition at line 167 of file midnam_patch.h.

◆ control_list_name()

const std::string& MIDI::Name::ChannelNameSet::control_list_name ( ) const
inline

Definition at line 207 of file midnam_patch.h.

◆ find_patch()

std::shared_ptr<Patch> MIDI::Name::ChannelNameSet::find_patch ( const PatchPrimaryKey key)
inline

Definition at line 171 of file midnam_patch.h.

◆ get_state()

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

◆ name()

const std::string& MIDI::Name::ChannelNameSet::name ( ) const
inline

Definition at line 162 of file midnam_patch.h.

◆ next_patch()

std::shared_ptr<Patch> MIDI::Name::ChannelNameSet::next_patch ( const PatchPrimaryKey key)
inline

Definition at line 190 of file midnam_patch.h.

◆ note_list_name()

const std::string& MIDI::Name::ChannelNameSet::note_list_name ( ) const
inline

Definition at line 206 of file midnam_patch.h.

◆ patch_banks()

const PatchBanks& MIDI::Name::ChannelNameSet::patch_banks ( ) const
inline

Definition at line 165 of file midnam_patch.h.

◆ previous_patch()

std::shared_ptr<Patch> MIDI::Name::ChannelNameSet::previous_patch ( const PatchPrimaryKey key)
inline

Definition at line 175 of file midnam_patch.h.

◆ set_name()

void MIDI::Name::ChannelNameSet::set_name ( const std::string &  name)
inline

Definition at line 163 of file midnam_patch.h.

◆ set_patch_banks()

void MIDI::Name::ChannelNameSet::set_patch_banks ( const PatchBanks )

◆ set_state()

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

◆ use_patch_name_list()

void MIDI::Name::ChannelNameSet::use_patch_name_list ( const PatchNameList )

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const ChannelNameSet  
)
friend

Member Data Documentation

◆ _available_for_channels

AvailableForChannels MIDI::Name::ChannelNameSet::_available_for_channels
private

Definition at line 219 of file midnam_patch.h.

◆ _control_list_name

std::string MIDI::Name::ChannelNameSet::_control_list_name
private

Definition at line 225 of file midnam_patch.h.

◆ _name

std::string MIDI::Name::ChannelNameSet::_name
private

Definition at line 218 of file midnam_patch.h.

◆ _note_list_name

std::string MIDI::Name::ChannelNameSet::_note_list_name
private

Definition at line 224 of file midnam_patch.h.

◆ _patch_banks

PatchBanks MIDI::Name::ChannelNameSet::_patch_banks
private

Definition at line 220 of file midnam_patch.h.

◆ _patch_list

PatchList MIDI::Name::ChannelNameSet::_patch_list
private

Definition at line 222 of file midnam_patch.h.

◆ _patch_list_name

std::string MIDI::Name::ChannelNameSet::_patch_list_name
private

Definition at line 223 of file midnam_patch.h.

◆ _patch_map

PatchMap MIDI::Name::ChannelNameSet::_patch_map
private

Definition at line 221 of file midnam_patch.h.


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