drumstick
1.1.0
|
Subscriber container class. More...
#include <subscription.h>
Public Member Functions | |
Subscriber () | |
Default constructor. | |
Subscriber (const Subscriber &other) | |
Copy constructor. More... | |
Subscriber (snd_seq_query_subscribe_t *other) | |
Constructor. More... | |
virtual | ~Subscriber () |
Destructor. | |
Subscriber * | clone () |
Copy the current object. More... | |
int | getSizeOfInfo () const |
Gets the size of the ALSA query subscriber object. More... | |
int | getClient () |
Gets the subscriber's client number. More... | |
int | getPort () |
Gets the subscriober's port number. More... | |
const snd_seq_addr_t * | getRoot () |
Gets the subscriber's root address. More... | |
snd_seq_query_subs_type_t | getType () |
Gets the subscription type (read or write). More... | |
int | getIndex () |
Gets the index of the subscriber container. More... | |
int | getNumSubs () |
Gets the number of subscribers returned by a query operation. More... | |
const snd_seq_addr_t * | getAddr () |
Gets the subscriber's address. More... | |
int | getQueue () |
Gets the subscriber's queue number. More... | |
bool | getExclusive () |
Gets the subscriber's exclusive flag. More... | |
bool | getTimeUpdate () |
Gets the susbcriber's time-update flag. More... | |
bool | getTimeReal () |
Gets the subscriber's time real time-stamp flag. More... | |
void | setClient (int client) |
Sets the subscriber's client number. More... | |
void | setPort (int port) |
Sets the subscriber's port number. More... | |
void | setRoot (snd_seq_addr_t *addr) |
Sets the subscriber's root address. More... | |
void | setType (snd_seq_query_subs_type_t type) |
Sets the subscription type. More... | |
void | setIndex (int index) |
Sets the index of the subscriber. More... | |
Subscriber & | operator= (const Subscriber &other) |
Assignment operator. More... | |
Subscriber container class.
This class is used to enumerate the subscribers of a given (root) port.
Definition at line 43 of file subscription.h.
Subscriber | ( | const Subscriber & | other | ) |
Copy constructor.
other | Existing Subscriber object reference |
Definition at line 62 of file subscription.cpp.
Subscriber | ( | snd_seq_query_subscribe_t * | other | ) |
Constructor.
other | Pointer to an ALSA query subscribe object |
Definition at line 72 of file subscription.cpp.
Subscriber * clone | ( | ) |
Copy the current object.
Definition at line 90 of file subscription.cpp.
References Subscriber::Subscriber().
const snd_seq_addr_t * getAddr | ( | ) |
Gets the subscriber's address.
Definition at line 175 of file subscription.cpp.
Referenced by MidiPort::getReadSubscribers(), and MidiPort::getWriteSubscribers().
int getClient | ( | ) |
Gets the subscriber's client number.
Definition at line 111 of file subscription.cpp.
bool getExclusive | ( | ) |
Gets the subscriber's exclusive flag.
Definition at line 195 of file subscription.cpp.
int getIndex | ( | ) |
Gets the index of the subscriber container.
Definition at line 155 of file subscription.cpp.
Referenced by PortInfo::readSubscribers().
int getNumSubs | ( | ) |
Gets the number of subscribers returned by a query operation.
Definition at line 165 of file subscription.cpp.
int getPort | ( | ) |
Gets the subscriober's port number.
Definition at line 121 of file subscription.cpp.
int getQueue | ( | ) |
Gets the subscriber's queue number.
Definition at line 185 of file subscription.cpp.
const snd_seq_addr_t * getRoot | ( | ) |
Gets the subscriber's root address.
Definition at line 131 of file subscription.cpp.
int getSizeOfInfo | ( | ) | const |
Gets the size of the ALSA query subscriber object.
Definition at line 279 of file subscription.cpp.
bool getTimeReal | ( | ) |
Gets the subscriber's time real time-stamp flag.
Definition at line 215 of file subscription.cpp.
bool getTimeUpdate | ( | ) |
Gets the susbcriber's time-update flag.
Definition at line 205 of file subscription.cpp.
snd_seq_query_subs_type_t getType | ( | ) |
Gets the subscription type (read or write).
Definition at line 145 of file subscription.cpp.
Subscriber & operator= | ( | const Subscriber & | other | ) |
Assignment operator.
other | Existing Subscriber object reference |
Definition at line 100 of file subscription.cpp.
void setClient | ( | int | client | ) |
Sets the subscriber's client number.
client | Client number |
Definition at line 225 of file subscription.cpp.
void setIndex | ( | int | index | ) |
Sets the index of the subscriber.
index | Subscriber index |
Definition at line 269 of file subscription.cpp.
Referenced by PortInfo::readSubscribers().
void setPort | ( | int | port | ) |
Sets the subscriber's port number.
port | Port number |
Definition at line 235 of file subscription.cpp.
void setRoot | ( | snd_seq_addr_t * | addr | ) |
Sets the subscriber's root address.
addr | Pointer to the root ALSA address record |
Definition at line 245 of file subscription.cpp.
Referenced by PortInfo::readSubscribers().
void setType | ( | snd_seq_query_subs_type_t | type | ) |
Sets the subscription type.
type | Subscription type |
Definition at line 259 of file subscription.cpp.
Referenced by PortInfo::readSubscribers().