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

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

Inheritance diagram for al::osc::Packet:
al::osc::Send

Public Member Functions

 Packet (int size=1024)
 
 Packet (const char *contents, size_t size)
 
const char * data () const
 Get raw packet data.
 
bool isMessage () const
 Whether packet is a message.
 
bool isBundle () const
 Whether packet is a bundle.
 
void printRaw () const
 Pretty-print raw packet bytes.
 
size_t size () const
 Get number of bytes of current packet data.
 
PacketbeginBundle (TimeTag timeTag=1)
 Begin a new bundle.
 
PacketendBundle ()
 End bundle.
 
PacketbeginMessage (const std::string &addressPattern)
 Start a new message.
 
PacketendMessage ()
 End message.
 
PacketaddMessage (const std::string &addr)
 Add zero argument message.
 
template<class A >
PacketaddMessage (const std::string &addr, const A &a)
 Add one argument message.
 
template<class A , class B >
PacketaddMessage (const std::string &addr, const A &a, const B &b)
 Add two argument message.
 
template<class A , class B , class C >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c)
 Add three argument message.
 
template<class A , class B , class C , class D >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c, const D &d)
 Add four argument message.
 
template<class A , class B , class C , class D , class E >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e)
 Add five argument message.
 
template<class A , class B , class C , class D , class E , class F >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f)
 Add six argument message.
 
template<class A , class B , class C , class D , class E , class F , class G >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g)
 Add seven argument message.
 
template<class A , class B , class C , class D , class E , class F , class G , class H >
PacketaddMessage (const std::string &addr, const A &a, const B &b, const C &c, const D &d, const E &e, const F &f, const G &g, const H &h)
 Add eight argument message.
 
Packetoperator<< (int v)
 Add integer to message.
 
Packetoperator<< (unsigned v)
 Add integer to message.
 
Packetoperator<< (float v)
 Add float to message.
 
Packetoperator<< (double v)
 Add double to message.
 
Packetoperator<< (char v)
 Add char to message.
 
Packetoperator<< (const char *v)
 Add C-string to message.
 
Packetoperator<< (const std::string &v)
 Add string to message.
 
Packetoperator<< (const Blob &v)
 Add Blob to message.
 
Packetclear ()
 Clear current packet contents.
 

Protected Attributes

Impl * mImpl
 
std::vector< char > mData
 

Detailed Description

Outbound OSC packet

Definition at line 85 of file al_OSC.hpp.

Constructor & Destructor Documentation

◆ Packet() [1/2]

al::osc::Packet::Packet ( int  size = 1024)
Parameters
[in]sizesize, in bytes, of the packet buffer

◆ Packet() [2/2]

al::osc::Packet::Packet ( const char *  contents,
size_t  size 
)
Parameters
[in]contentsbuffer to copy packet data from
[in]sizesize, in bytes, of the packet buffer

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