#include <ConnectionWrap.h>
Collaboration diagram for ConnectionWrap:
It is used to wrap the type of the connection as well as functions. This is so we can have a vector of one type containing many.
Definition at line 36 of file ConnectionWrap.h.
Public Methods | |
ConnectionWrap () | |
Default Constructor. | |
ConnectionWrap (void *connection, int type) | |
The constructor, connection is a Connection and type is the type like (SHORTCONN,BYTECONN,..). | |
int | getFileHandle () |
Returns the current connection's FileHandle. | |
bool | readable () |
is it readable? | |
string * | getXML () |
gets the Connection XML connection | |
void | disconnect () |
Disconnect Connection. | |
void | process () |
Process the connection (read or write). | |
~ConnectionWrap () | |
Destructor. | |
void | write (char *buffer, int size) |
Write to connection size is the number of samples not the number of bytes. | |
int | read (char *buffer, int size) |
read from connection size is the number of samples not the number of bytes | |
bool | readReady () |
W/o blocking is the connection readable. | |
bool | writeReady () |
W/o blocking is the connection writable. | |
int | getDataSize () |
Get the data size of the current connection. | |
void | disconnectFrom (ConnectionWrap *w) |
Disconnect the connection FROM another connection (incoming patch) (Wrap). | |
void | disconnectTo (ConnectionWrap *w) |
Disconnect the connection TO another connection (outgoing patch) (Wrap). | |
void | connectFrom (ConnectionWrap *w) |
connectFrom Accepts a connection FROM conn connection (incoming connection). | |
Public Attributes | |
ConnectionU | conn |
The connection union containing the connection being wrapped. | |
char | type |
the type |
|
Default Constructor.
Definition at line 49 of file ConnectionWrap.h. References type, and ConnectionU::voidStar. |
|
The constructor, connection is a Connection and type is the type like (SHORTCONN,BYTECONN,..).
Definition at line 53 of file ConnectionWrap.h. References type, and ConnectionU::voidStar. |
|
Destructor.
Definition at line 135 of file ConnectionWrap.h. References CHARCONN, ConnectionU::charFConn, ConnectionU::configConn, CONFIGCONN, DOUBLECONN, ConnectionU::doubleFConn, FLOATCONN, ConnectionU::floatFConn, SHORTCONN, ConnectionU::shortFConn, type, and ConnectionU::voidStar. |
|
connectFrom Accepts a connection FROM conn connection (incoming connection).
Definition at line 267 of file ConnectionWrap.h. References ConnectionU::charConn, CHARCONN, conn, ConnectionU::doubleConn, DOUBLECONN, ConnectionU::floatConn, FLOATCONN, ConnectionU::shortConn, SHORTCONN, and type. Referenced by main(), and Connector::patch(). |
|
Disconnect Connection.
Definition at line 105 of file ConnectionWrap.h. References ConnectionU::charConn, CHARCONN, ConnectionU::configConn, CONFIGCONN, Connection< double >::disconnect(), Connection< float >::disconnect(), Connection< char >::disconnect(), Connection< short >::disconnect(), ConnectionU::doubleConn, DOUBLECONN, ConnectionU::floatConn, FLOATCONN, ConnectionU::shortConn, SHORTCONN, and type. Referenced by Connector::disconnect(). |
|
Disconnect the connection FROM another connection (incoming patch) (Wrap).
Definition at line 235 of file ConnectionWrap.h. References ConnectionU::charConn, CHARCONN, conn, ConnectionU::doubleConn, DOUBLECONN, ConnectionU::floatConn, FLOATCONN, ConnectionU::shortConn, SHORTCONN, and type. Referenced by Connector::unPatch(). |
|
Disconnect the connection TO another connection (outgoing patch) (Wrap).
Definition at line 251 of file ConnectionWrap.h. References ConnectionU::charConn, CHARCONN, ConnectionU::charFConn, conn, ConnectionU::doubleConn, DOUBLECONN, ConnectionU::doubleFConn, ConnectionU::floatConn, FLOATCONN, ConnectionU::floatFConn, ConnectionU::shortConn, SHORTCONN, ConnectionU::shortFConn, and type. |
|
Get the data size of the current connection.
Definition at line 220 of file ConnectionWrap.h. References ConnectionU::charConn, CHARCONN, CONFIGCONN, ConnectionU::doubleConn, DOUBLECONN, ConnectionU::floatConn, FLOATCONN, Connection< double >::getDataSize(), Connection< float >::getDataSize(), Connection< char >::getDataSize(), Connection< short >::getDataSize(), ConnectionU::shortConn, SHORTCONN, and type. |
|
Returns the current connection's FileHandle.
Definition at line 60 of file ConnectionWrap.h. References ConnectionU::charConn, CHARCONN, ConnectionU::doubleConn, DOUBLECONN, ConnectionU::floatConn, FLOATCONN, Connection< double >::getFileHandle(), Connection< float >::getFileHandle(), Connection< char >::getFileHandle(), Connection< short >::getFileHandle(), ConnectionU::shortConn, SHORTCONN, and type. |
|
gets the Connection XML connection
Definition at line 90 of file ConnectionWrap.h. References CHARCONN, ConnectionU::charFConn, DOUBLECONN, ConnectionU::doubleFConn, FLOATCONN, ConnectionU::floatFConn, FilterConnection< double >::getXML(), FilterConnection< float >::getXML(), FilterConnection< char >::getXML(), FilterConnection< short >::getXML(), SHORTCONN, ConnectionU::shortFConn, and type. |
|
Process the connection (read or write).
Definition at line 121 of file ConnectionWrap.h. References CHARCONN, ConnectionU::charFConn, DOUBLECONN, ConnectionU::doubleFConn, FLOATCONN, ConnectionU::floatFConn, FilterConnection< double >::process(), FilterConnection< float >::process(), FilterConnection< char >::process(), FilterConnection< short >::process(), SHORTCONN, ConnectionU::shortFConn, and type. Referenced by main(). |
|
read from connection size is the number of samples not the number of bytes
Definition at line 173 of file ConnectionWrap.h. References ConnectionU::charConn, CHARCONN, ConnectionU::configConn, CONFIGCONN, ConnectionU::doubleConn, DOUBLECONN, ConnectionU::floatConn, FLOATCONN, ConnectionU::shortConn, SHORTCONN, type, ConfigConnection::write(), Connection< double >::write(), Connection< float >::write(), Connection< char >::write(), and Connection< short >::write(). |
|
is it readable?
Definition at line 75 of file ConnectionWrap.h. References ConnectionU::charConn, CHARCONN, ConnectionU::doubleConn, DOUBLECONN, ConnectionU::floatConn, FLOATCONN, Connection< double >::readable(), Connection< float >::readable(), Connection< char >::readable(), Connection< short >::readable(), ConnectionU::shortConn, SHORTCONN, and type. Referenced by Connector::patch(). |
|
W/o blocking is the connection readable.
Definition at line 190 of file ConnectionWrap.h. References ConnectionU::charConn, CHARCONN, CONFIGCONN, ConnectionU::doubleConn, DOUBLECONN, ConnectionU::floatConn, FLOATCONN, Connection< double >::readReady(), Connection< float >::readReady(), Connection< char >::readReady(), Connection< short >::readReady(), ConnectionU::shortConn, SHORTCONN, and type. |
|
Write to connection size is the number of samples not the number of bytes.
Definition at line 156 of file ConnectionWrap.h. References ConnectionU::charConn, CHARCONN, ConnectionU::configConn, CONFIGCONN, ConnectionU::doubleConn, DOUBLECONN, ConnectionU::floatConn, FLOATCONN, ConnectionU::shortConn, SHORTCONN, type, ConfigConnection::write(), Connection< double >::write(), Connection< float >::write(), Connection< char >::write(), and Connection< short >::write(). Referenced by main(). |
|
W/o blocking is the connection writable.
Definition at line 205 of file ConnectionWrap.h. References ConnectionU::charConn, CHARCONN, CONFIGCONN, ConnectionU::doubleConn, DOUBLECONN, ConnectionU::floatConn, FLOATCONN, ConnectionU::shortConn, SHORTCONN, type, Connection< double >::writeReady(), Connection< float >::writeReady(), Connection< char >::writeReady(), and Connection< short >::writeReady(). Referenced by main(). |
|
The connection union containing the connection being wrapped.
Definition at line 41 of file ConnectionWrap.h. Referenced by connectFrom(), disconnectFrom(), disconnectTo(), main(), and Connector::process(). |
|
the type
Definition at line 45 of file ConnectionWrap.h. Referenced by connectFrom(), ConnectionWrap(), disconnect(), disconnectFrom(), disconnectTo(), getDataSize(), getFileHandle(), getXML(), Connector::process(), process(), read(), readable(), readReady(), write(), writeReady(), and ~ConnectionWrap(). |