MIDI::MetaGenericEvent Class Reference

#include <MetaGenericEvent.h>

Inherits MIDI::MetaEvent.

Collaboration diagram for MIDI::MetaGenericEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MetaGenericEvent ()
 Default constructor.
 MetaGenericEvent (const MetaGenericEvent &o)
 Copy constructor.
 MetaGenericEvent (dword deltaTime, byte metaType, byte data[], int dataLength)
 Constructor.
 MetaGenericEvent (dword deltaTime, byte metaType, int dataLength)
 Constructor.
int dataLength ()
int paramInt (unsigned int id)
unsigned int paramUInt (unsigned int id)
void setParam (unsigned int id, byte value)
virtual DataBuffer data ()
virtual void debug ()
 Prints debug information.

Detailed Description

This class represents a generic meta event.

A generic meta event contains byte long data that can be accessed by some index.

This represents all events not represented by specific classes.

Definition at line 39 of file MetaGenericEvent.h.


Constructor & Destructor Documentation

MIDI::MetaGenericEvent::MetaGenericEvent (  ) 

Default constructor.

Definition at line 33 of file MetaGenericEvent.cpp.

MIDI::MetaGenericEvent::MetaGenericEvent ( const MetaGenericEvent o  ) 

Copy constructor.

Definition at line 37 of file MetaGenericEvent.cpp.

MIDI::MetaGenericEvent::MetaGenericEvent ( dword  deltaTime,
byte  metaType,
byte  data[],
int  dataLength 
)

Constructor.

Parameters:
deltaTime 
metaType 
data Data that will be initialized
data Length Number of data pieces

Definition at line 47 of file MetaGenericEvent.cpp.

MIDI::MetaGenericEvent::MetaGenericEvent ( dword  deltaTime,
byte  metaType,
int  dataLength 
)

Constructor.

Initializes with null data

Parameters:
deltaTime 
metaType 
data Length Number of data pieces that will exist

Definition at line 57 of file MetaGenericEvent.cpp.


Member Function Documentation

DataBuffer MIDI::MetaGenericEvent::data (  )  [virtual]
Returns:
This meta event represented as data in a MIDI file

Reimplemented from MIDI::MetaEvent.

Definition at line 87 of file MetaGenericEvent.cpp.

int MIDI::MetaGenericEvent::dataLength (  ) 
Returns:
Number of data fields stored in this event

Definition at line 67 of file MetaGenericEvent.cpp.

void MIDI::MetaGenericEvent::debug (  )  [virtual]

Prints debug information.

Reimplemented from MIDI::MetaEvent.

Definition at line 100 of file MetaGenericEvent.cpp.

int MIDI::MetaGenericEvent::paramInt ( unsigned int  id  ) 

Allows access to data as if it were stored as a signed integer.

Parameters:
id The id of the data
Returns:
The value of the data

Definition at line 72 of file MetaGenericEvent.cpp.

unsigned int MIDI::MetaGenericEvent::paramUInt ( unsigned int  id  ) 

Allows access to data as if it were stores as an unsigned integer.

Parameters:
id The id of the data
Returns:
The value of the data

Definition at line 77 of file MetaGenericEvent.cpp.

void MIDI::MetaGenericEvent::setParam ( unsigned int  id,
byte  value 
)

Set parameter to byte

Parameters:
id The id of the data
value What to save

Definition at line 82 of file MetaGenericEvent.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Defines

Generated on Tue Jan 5 16:09:42 2010 for libmidi by  doxygen 1.6.1