SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Message.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 Martin Hansen
3  *
4  * This file is part of SPAOP (Spatial Audio Object Positioner).
5  *
6  * SPAOP is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * SPAOP is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with SPAOP. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 
21 #ifndef MESSAGE_H_INCLUDED
22 #define MESSAGE_H_INCLUDED
23 
24 #include <iostream>
25 #include "lo/lo.h"
26 
27 namespace lowrappers {
28 
33 class Message
34 {
38  friend class Address;
39 public:
40 
42  Message();
43 
45  virtual ~Message();
46 
52  Message(const Message& other);
53 
61  void add(const std::string types, ...);
62 
73  void addVAList(const std::string &types, va_list args);
74 
75 private:
76  Message &operator= (const Message other); // assignment not allowed
77 
78  lo_message msg_;
79 };
80 
81 }
82 
83 #endif // MESSAGE_H_INCLUDED
A wrapper of Liblo's lo_message.
Definition: Message.h:33
void add(const std::string types,...)
Adds content to the message.
Definition: Message.cpp:40
virtual ~Message()
Destructor.
Definition: Message.cpp:30
A wrapper for Liblo's lo_address.
Definition: Address.h:35
Message()
Constructor.
Definition: Message.cpp:25
void addVAList(const std::string &types, va_list args)
Adds content to the message.
Definition: Message.cpp:52