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

#include <midnam_patch.h>

Public Member Functions

 Patch (std::string a_name=std::string(), uint8_t a_number=0, uint16_t bank_number=0)
 
virtual ~Patch ()
 
const std::string & name () const
 
void set_name (const std::string &name)
 
const std::string & note_list_name () const
 
uint8_t program_number () const
 
void set_program_number (uint8_t n)
 
uint16_t bank_number () const
 
void set_bank_number (uint16_t n)
 
const PatchPrimaryKeypatch_primary_key () const
 
XMLNodeget_state () const
 
int set_state (const XMLTree &, const XMLNode &)
 

Private Attributes

std::string _name
 
PatchPrimaryKey _id
 
std::string _note_list_name
 

Detailed Description

Definition at line 93 of file midnam_patch.h.

Constructor & Destructor Documentation

◆ Patch()

MIDI::Name::Patch::Patch ( std::string  a_name = std::string(),
uint8_t  a_number = 0,
uint16_t  bank_number = 0 
)

◆ ~Patch()

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

Definition at line 98 of file midnam_patch.h.

Member Function Documentation

◆ bank_number()

uint16_t MIDI::Name::Patch::bank_number ( ) const
inline

Definition at line 108 of file midnam_patch.h.

◆ get_state()

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

◆ name()

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

Definition at line 100 of file midnam_patch.h.

◆ note_list_name()

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

Definition at line 103 of file midnam_patch.h.

◆ patch_primary_key()

const PatchPrimaryKey& MIDI::Name::Patch::patch_primary_key ( ) const
inline

Definition at line 111 of file midnam_patch.h.

◆ program_number()

uint8_t MIDI::Name::Patch::program_number ( ) const
inline

Definition at line 105 of file midnam_patch.h.

◆ set_bank_number()

void MIDI::Name::Patch::set_bank_number ( uint16_t  n)
inline

Definition at line 109 of file midnam_patch.h.

◆ set_name()

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

Definition at line 101 of file midnam_patch.h.

◆ set_program_number()

void MIDI::Name::Patch::set_program_number ( uint8_t  n)
inline

Definition at line 106 of file midnam_patch.h.

◆ set_state()

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

Member Data Documentation

◆ _id

PatchPrimaryKey MIDI::Name::Patch::_id
private

Definition at line 118 of file midnam_patch.h.

◆ _name

std::string MIDI::Name::Patch::_name
private

Definition at line 117 of file midnam_patch.h.

◆ _note_list_name

std::string MIDI::Name::Patch::_note_list_name
private

Definition at line 119 of file midnam_patch.h.


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