svcore  1.9
OSCQueue Class Reference

#include <OSCQueue.h>

Collaboration diagram for OSCQueue:

List of all members.

Signals

void messagesAvailable ()

Public Member Functions

 OSCQueue ()
virtual ~OSCQueue ()
bool isOK () const
bool isEmpty () const
int getMessagesAvailable () const
OSCMessage readMessage ()
QString getOSCURL () const

Protected Member Functions

void postMessage (OSCMessage)
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
RingBuffer< OSCMessage * > m_buffer

Detailed Description

Definition at line 34 of file OSCQueue.h.


Constructor & Destructor Documentation

Definition at line 91 of file OSCQueue.cpp.

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


Member Function Documentation

bool OSCQueue::isOK ( ) const

Definition at line 126 of file OSCQueue.cpp.

References m_thread.

bool OSCQueue::isEmpty ( ) const [inline]

Definition at line 44 of file OSCQueue.h.

References getMessagesAvailable().

Definition at line 146 of file OSCQueue.cpp.

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

Referenced by isEmpty().

Definition at line 152 of file OSCQueue.cpp.

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

QString OSCQueue::getOSCURL ( ) const

Definition at line 136 of file OSCQueue.cpp.

References m_thread.

void OSCQueue::messagesAvailable ( ) [signal]

Referenced by postMessage().

void OSCQueue::oscError ( int  num,
const char *  msg,
const char *  path 
) [static, protected]

Definition at line 33 of file OSCQueue.cpp.

Referenced by OSCQueue().

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

Definition at line 188 of file OSCQueue.cpp.

References SVDEBUG.

Referenced by oscMessageHandler().


Member Data Documentation

lo_server_thread OSCQueue::m_thread [protected]

Definition at line 55 of file OSCQueue.h.

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

Definition at line 65 of file OSCQueue.h.

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


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