SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Friends | List of all members
lowrappers::Message Class Reference

A wrapper of Liblo's lo_message. More...

#include <Message.h>

Inheritance diagram for lowrappers::Message:
Inheritance graph
[legend]

Public Member Functions

 Message ()
 Constructor. More...
 
virtual ~Message ()
 Destructor. More...
 
 Message (const Message &other)
 Copy constructor. More...
 
void add (const std::string types,...)
 Adds content to the message. More...
 
void addVAList (const std::string &types, va_list args)
 Adds content to the message. More...
 

Friends

class Address
 Address is friend class so it can access the internal lo_message object for sending. More...
 

Detailed Description

A wrapper of Liblo's lo_message.

These messages can be sent via Address::send and Address::sendFrom.

Constructor & Destructor Documentation

lowrappers::Message::Message ( )

Constructor.

lowrappers::Message::~Message ( )
virtual

Destructor.

lowrappers::Message::Message ( const Message other)

Copy constructor.

Creates a copy of this message. (Internally, lo_message_clone is called.)

Parameters
otherThe message to be copied.

Member Function Documentation

void lowrappers::Message::add ( const std::string  types,
  ... 
)

Adds content to the message.

Number and types of arguments must match the types string, e.g. add("iff", 1, 2.0, 3.0) or add(s, "some string").

Parameters
typesA Liblo-style typestring.
...The content to be added to the message. Number and types of arguments must match the types string.
void lowrappers::Message::addVAList ( const std::string &  types,
va_list  args 
)

Adds content to the message.

Number and types of arguments must match the types string, e.g. add("iff", 1, 2.0, 3.0) or add(s, "some string"). Parameters are passed as a va_list. This allows other varargs methods to pass on their arguments.

Parameters
typesA Liblo-style typestring
argsThe data values to be transmitted. The types of the arguments passed here (and their length) must agree with the types specified in the type parameter.

Friends And Related Function Documentation

friend class Address
friend

Address is friend class so it can access the internal lo_message object for sending.