ardour
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ARDOUR::EventTypeMap Class Reference

#include <event_type_map.h>

Inheritance diagram for ARDOUR::EventTypeMap:
Evoral::TypeMap

Public Member Functions

bool type_is_midi (uint32_t type) const
 
uint8_t parameter_midi_type (const Evoral::Parameter &param) const
 
uint32_t midi_event_type (uint8_t status) const
 
Evoral::ControlList::InterpolationStyle interpolation_of (const Evoral::Parameter &param)
 
Evoral::Parameter from_symbol (const std::string &str) const
 
std::string to_symbol (const Evoral::Parameter &param) const
 
Evoral::ParameterDescriptor descriptor (const Evoral::Parameter &param) const
 
void set_descriptor (const Evoral::Parameter &param, const Evoral::ParameterDescriptor &desc)
 
- Public Member Functions inherited from Evoral::TypeMap
virtual ~TypeMap ()
 

Static Public Member Functions

static EventTypeMapinstance ()
 

Private Types

typedef std::map
< Evoral::Parameter,
Evoral::ParameterDescriptor
Descriptors
 

Private Member Functions

 EventTypeMap (URIMap *uri_map)
 

Private Attributes

URIMap_uri_map
 
Descriptors _descriptors
 

Static Private Attributes

static EventTypeMapevent_type_map
 

Detailed Description

This is the interface Ardour provides to Evoral about what parameter and event types/ranges/names etc. to use.

Definition at line 40 of file event_type_map.h.

Member Typedef Documentation

Definition at line 58 of file event_type_map.h.

Constructor & Destructor Documentation

ARDOUR::EventTypeMap::EventTypeMap ( URIMap uri_map)
inlineprivate

Definition at line 60 of file event_type_map.h.

Member Function Documentation

Evoral::ParameterDescriptor ARDOUR::EventTypeMap::descriptor ( const Evoral::Parameter param) const
virtual

Return the description of a parameter.

Implements Evoral::TypeMap.

Definition at line 260 of file event_type_map.cc.

Evoral::Parameter ARDOUR::EventTypeMap::from_symbol ( const std::string &  str) const

Definition at line 125 of file event_type_map.cc.

EventTypeMap & ARDOUR::EventTypeMap::instance ( )
static

Definition at line 41 of file event_type_map.cc.

Evoral::ControlList::InterpolationStyle ARDOUR::EventTypeMap::interpolation_of ( const Evoral::Parameter param)

Definition at line 72 of file event_type_map.cc.

uint32_t ARDOUR::EventTypeMap::midi_event_type ( uint8_t  status) const
virtual

The type ID for a MIDI event with the given status byte

Implements Evoral::TypeMap.

Definition at line 66 of file event_type_map.cc.

uint8_t ARDOUR::EventTypeMap::parameter_midi_type ( const Evoral::Parameter param) const
virtual

Return the MIDI type (ie status byte with channel 0) for a parameter, or 0 if parameter can not be expressed as a MIDI event

Implements Evoral::TypeMap.

Definition at line 60 of file event_type_map.cc.

void ARDOUR::EventTypeMap::set_descriptor ( const Evoral::Parameter param,
const Evoral::ParameterDescriptor desc 
)

Definition at line 273 of file event_type_map.cc.

std::string ARDOUR::EventTypeMap::to_symbol ( const Evoral::Parameter param) const
virtual

Unique string representation, suitable as an XML property value. e.g. <AutomationList automation-id="whatthisreturns">

Implements Evoral::TypeMap.

Definition at line 206 of file event_type_map.cc.

bool ARDOUR::EventTypeMap::type_is_midi ( uint32_t  type) const
virtual

Return true iff the type is a MIDI event. The contents of the event will be used for specific ID

Implements Evoral::TypeMap.

Definition at line 54 of file event_type_map.cc.

Member Data Documentation

Descriptors ARDOUR::EventTypeMap::_descriptors
private

Definition at line 63 of file event_type_map.h.

URIMap* ARDOUR::EventTypeMap::_uri_map
private

Definition at line 62 of file event_type_map.h.

EventTypeMap * ARDOUR::EventTypeMap::event_type_map
staticprivate

Definition at line 65 of file event_type_map.h.


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