RemoveEvents Class Reference

Auxiliary class to remove events from an ALSA queue. More...

#include <alsaevent.h>

List of all members.

Public Member Functions

 RemoveEvents ()
 Default constructor.
 RemoveEvents (const RemoveEvents &other)
 Copy constructor.
 RemoveEvents (snd_seq_remove_events_t *other)
 Constructor from an ALSA remove events object pointer.
virtual ~RemoveEvents ()
 Destructor.
RemoveEventsclone ()
 Create a new object copied from this object and return a pointer to the copy.
RemoveEventsoperator= (const RemoveEvents &other)
 Assignment operator.
int getSizeOfInfo () const
 Gets the allocated size of the ALSA remove events object.
int getChannel ()
 Gets the MIDI channel.
unsigned int getCondition ()
 Gets the condition.
const snd_seq_addr_t * getDest ()
 Gets the destination.
int getEventType ()
 Gets the event type.
int getQueue ()
 Gets the queue number.
int getTag ()
 Gets the numeric tag.
const snd_seq_timestamp_t * getTime ()
 Gets the timestamp.
void setChannel (int chan)
 Gets the MIDI channel.
void setCondition (unsigned int cond)
 Sets the flags of the conditional event's removal.
void setDest (const snd_seq_addr_t *dest)
 Set the destination address.
void setEventType (int type)
 Sets the event type.
void setQueue (int queue)
 Sets the queue number.
void setTag (int tag)
 Sets the numeric tag.
void setTime (const snd_seq_timestamp_t *time)
 Sets the timestamp.

Friends

class MidiClient


Detailed Description

Auxiliary class to remove events from an ALSA queue.

See also:
MidiClient::removeEvents()

Definition at line 586 of file alsaevent.h.


Constructor & Destructor Documentation

RemoveEvents (  ) 

Default constructor.

Definition at line 708 of file alsaevent.cpp.

Referenced by RemoveEvents::clone().

RemoveEvents ( const RemoveEvents other  ) 

Copy constructor.

Parameters:
other An existing RemoveEvents object reference.

Definition at line 717 of file alsaevent.cpp.

RemoveEvents ( snd_seq_remove_events_t *  other  ) 

Constructor from an ALSA remove events object pointer.

Parameters:
other An ALSA remove events object pointer.

Definition at line 727 of file alsaevent.cpp.

~RemoveEvents (  )  [virtual]

Destructor.

Definition at line 736 of file alsaevent.cpp.


Member Function Documentation

RemoveEvents * clone (  ) 

Create a new object copied from this object and return a pointer to the copy.

Returns:
A pointer to the new object.

Definition at line 746 of file alsaevent.cpp.

References RemoveEvents::RemoveEvents().

int getChannel (  ) 

Gets the MIDI channel.

Returns:
The MIDI channel.
See also:
setChannel()

Definition at line 779 of file alsaevent.cpp.

unsigned int getCondition (  ) 

Gets the condition.

Returns:
The condition.
See also:
setCondition()

Definition at line 790 of file alsaevent.cpp.

const snd_seq_addr_t * getDest (  ) 

Gets the destination.

Returns:
The destination record pointer.
See also:
setDest()

Definition at line 801 of file alsaevent.cpp.

int getEventType (  ) 

Gets the event type.

Returns:
The event type.
See also:
setEventType()

Definition at line 812 of file alsaevent.cpp.

int getQueue (  ) 

Gets the queue number.

Returns:
The queue number.
See also:
setQueue()

Definition at line 823 of file alsaevent.cpp.

int getSizeOfInfo (  )  const

Gets the allocated size of the ALSA remove events object.

Returns:
The size of the ALSA remove events object.

Definition at line 768 of file alsaevent.cpp.

int getTag (  ) 

Gets the numeric tag.

Returns:
The numeric tag.
See also:
setTag()

Definition at line 834 of file alsaevent.cpp.

const snd_seq_timestamp_t * getTime (  ) 

Gets the timestamp.

Returns:
The timestamp.
See also:
setTime()

Definition at line 845 of file alsaevent.cpp.

RemoveEvents & operator= ( const RemoveEvents other  ) 

Assignment operator.

Parameters:
other An existing RemoveEvents object reference.
Returns:
This object.

Definition at line 757 of file alsaevent.cpp.

void setChannel ( int  chan  ) 

Gets the MIDI channel.

Parameters:
chan The MIDI channel.
See also:
getChannel()

Definition at line 856 of file alsaevent.cpp.

void setCondition ( unsigned int  cond  ) 

Sets the flags of the conditional event's removal.

This condition is a bitmap of the combination (OR) the following auto-described flags:

  • SND_SEQ_REMOVE_INPUT
  • SND_SEQ_REMOVE_OUTPUT
  • SND_SEQ_REMOVE_DEST
  • SND_SEQ_REMOVE_DEST_CHANNEL
  • SND_SEQ_REMOVE_TIME_BEFORE
  • SND_SEQ_REMOVE_TIME_AFTER
  • SND_SEQ_REMOVE_TIME_TICK
  • SND_SEQ_REMOVE_EVENT_TYPE
  • SND_SEQ_REMOVE_IGNORE_OFF
  • SND_SEQ_REMOVE_TAG_MATCH
Parameters:
cond The condition bitmap.
See also:
getCondition()

Definition at line 880 of file alsaevent.cpp.

void setDest ( const snd_seq_addr_t *  dest  ) 

Set the destination address.

Parameters:
dest A pointer to the destination address record.
See also:
getDest()

Definition at line 891 of file alsaevent.cpp.

void setEventType ( int  type  ) 

Sets the event type.

Parameters:
type The event type.
See also:
getEventType()

Definition at line 902 of file alsaevent.cpp.

void setQueue ( int  queue  ) 

Sets the queue number.

Parameters:
queue The queue number.
See also:
getQueue()

Definition at line 913 of file alsaevent.cpp.

void setTag ( int  tag  ) 

Sets the numeric tag.

Parameters:
tag The numeric tag.
See also:
getTag()

Definition at line 924 of file alsaevent.cpp.

void setTime ( const snd_seq_timestamp_t *  time  ) 

Sets the timestamp.

Parameters:
time A pointer to the timestamp record.
See also:
getTime()

Definition at line 935 of file alsaevent.cpp.


Friends And Related Function Documentation

friend class MidiClient [friend]

Definition at line 589 of file alsaevent.h.


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

Generated on Wed Sep 8 10:12:50 2010 for drumstick by  doxygen 1.5.9