#include <OSCQueue.h>

Inheritance diagram for OSCQueue:
Inheritance graph
Collaboration diagram for OSCQueue:
Collaboration graph

Signals

void messagesAvailable ()
 

Public Member Functions

 OSCQueue (bool withNetworkPort)
 
virtual ~OSCQueue ()
 
bool isOK () const
 
bool isEmpty () const
 
int getMessagesAvailable () const
 
void postMessage (OSCMessage)
 
OSCMessage readMessage ()
 
QString getOSCURL () const
 
bool hasPort () const
 

Protected Member Functions

bool parseOSCPath (QString path, int &target, int &targetData, QString &method)
 

Static Protected Member Functions

static void oscError (int, const char *, const char *)
 
static int oscMessageHandler (const char *, const char *, lo_arg **, int, lo_message, void *)
 

Protected Attributes

lo_server_thread m_thread
 
bool m_withPort
 
RingBuffer< OSCMessage * > m_buffer
 

Detailed Description

Definition at line 34 of file OSCQueue.h.

Constructor & Destructor Documentation

OSCQueue::OSCQueue ( bool  withNetworkPort)

Definition at line 93 of file OSCQueue.cpp.

References m_thread, m_withPort, oscError(), oscMessageHandler(), and SVDEBUG.

OSCQueue::~OSCQueue ( )
virtual

Member Function Documentation

bool OSCQueue::isOK ( ) const

Definition at line 141 of file OSCQueue.cpp.

References m_thread, and m_withPort.

bool OSCQueue::isEmpty ( ) const
inline

Definition at line 44 of file OSCQueue.h.

References getMessagesAvailable(), getOSCURL(), postMessage(), and readMessage().

int OSCQueue::getMessagesAvailable ( ) const

Definition at line 167 of file OSCQueue.cpp.

References RingBuffer< T, N >::getReadSpace(), and m_buffer.

Referenced by isEmpty().

OSCMessage OSCQueue::readMessage ( )

Definition at line 173 of file OSCQueue.cpp.

References m_buffer, RingBuffer< T, N >::readOne(), SVDEBUG, and OSCMessage::toString().

Referenced by isEmpty().

QString OSCQueue::getOSCURL ( ) const

Definition at line 155 of file OSCQueue.cpp.

References m_thread.

Referenced by isEmpty().

bool OSCQueue::hasPort ( ) const
inline

Definition at line 51 of file OSCQueue.h.

References m_withPort, and messagesAvailable().

void OSCQueue::messagesAvailable ( )
signal

Referenced by hasPort(), and postMessage().

void OSCQueue::oscError ( int  num,
const char *  msg,
const char *  path 
)
staticprotected

Definition at line 35 of file OSCQueue.cpp.

References SVCERR.

Referenced by OSCQueue().

int OSCQueue::oscMessageHandler ( const char *  path,
const char *  types,
lo_arg **  argv,
int  argc,
lo_message  ,
void *  user_data 
)
staticprotected
bool OSCQueue::parseOSCPath ( QString  path,
int &  target,
int &  targetData,
QString &  method 
)
protected

Definition at line 212 of file OSCQueue.cpp.

References SVDEBUG.

Referenced by oscMessageHandler().

Member Data Documentation

lo_server_thread OSCQueue::m_thread
protected

Definition at line 58 of file OSCQueue.h.

Referenced by getOSCURL(), isOK(), OSCQueue(), and ~OSCQueue().

bool OSCQueue::m_withPort
protected

Definition at line 67 of file OSCQueue.h.

Referenced by hasPort(), isOK(), and OSCQueue().

RingBuffer<OSCMessage *> OSCQueue::m_buffer
protected

Definition at line 68 of file OSCQueue.h.

Referenced by getMessagesAvailable(), postMessage(), readMessage(), and ~OSCQueue().


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