class InstrumentData

Instrument data container class. More...

Full nameTSE3::Ins::InstrumentData
Definition#include <Instrument.h>
Inherited byControlData, NoteData, NrpnData, PatchData, RpnData
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

A base class for instrument data: many .ins file sections are based on simple lists of 0..127 values. This is a base class for such lists.

const std::string & title ()

title

[const]

Returns the title of this data group.

Returns: Title of the data group

const std::string & name (size_t index)

name

[const]

Returns the name of the item with the given index. the index value must be between 0 and 127, or the results are undefined.

If no name has been defined for this element, returns an empty string.

Returns: Name of the data element

void  write (std::ostream &out)

write

[const]

Write the .ins file subsection.

Parameters:
outostream to write output to

 InstrumentData (std::string const &title, std::string const &insHeading, std::istream &in)

InstrumentData

[protected]

Contructor is private since this is a base class.

const std::string insHeading

insHeading

[protected]

void  load (const std::string &secname, std::istream &in)

load

[protected]

Loads the subsection 'secname' from the .ins section 'insHeading'. Pre: title and insHeading have been set up.

std::string _title

_title

[protected]

std::string * _names[128]

_names[128]

[protected]

static std::string empty

empty

[protected]