Allolib  1.0
C++ Components For Interactive Multimedia
al::osc::Message Class Reference

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/protocol/al_OSC.hpp>

Public Member Functions

 Message (const char *message, int size, const TimeTag &timeTag=1, const char *senderAddr=nullptr)
 
void print () const
 Pretty-print message information.
 
const TimeTagtimeTag () const
 Get time tag. More...
 
const std::string & addressPattern () const
 Get address pattern.
 
const std::string senderAddress () const
 
const std::string & typeTags () const
 Get type tags.
 
MessageresetStream ()
 Reset stream for converting from raw message bytes to types.
 
Messageoperator>> (int &v)
 Extract next stream element as integer.
 
Messageoperator>> (float &v)
 Extract next stream element as float.
 
Messageoperator>> (double &v)
 Extract next stream element as double.
 
Messageoperator>> (char &v)
 Extract next stream element as char.
 
Messageoperator>> (const char *&v)
 Extract next stream element as C-string.
 
Messageoperator>> (std::string &v)
 Extract next stream element as string.
 
Messageoperator>> (Blob &v)
 Extract next stream element as Blob.
 

Protected Attributes

Impl * mImpl
 
std::string mAddressPattern
 
std::string mTypeTags
 
TimeTag mTimeTag
 
char mSenderAddr [32]
 

Detailed Description

Inbound OSC message

Definition at line 217 of file al_OSC.hpp.

Constructor & Destructor Documentation

◆ Message()

al::osc::Message::Message ( const char *  message,
int  size,
const TimeTag timeTag = 1,
const char *  senderAddr = nullptr 
)
Parameters
[in]messageraw OSC message bytes
[in]sizenumber of bytes in message
[in]timeTagtime tag of message (inherited from bundle)
[in]senderAddrIP address of sender

Member Function Documentation

◆ timeTag()

const TimeTag& al::osc::Message::timeTag ( ) const
inline

Get time tag.

If the message is contained within a bundle, it will inherit the time tag of the bundle, otherwise the time tag will be 1 (immediate).

Definition at line 235 of file al_OSC.hpp.


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