SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MessageWithPath.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 #ifndef MESSAGEWITHPATH_H_INCLUDED
21 #define MESSAGEWITHPATH_H_INCLUDED
22 
23 #include "Message.h"
24 
25 namespace wonderlo {
26 
32 {
33 public:
39  MessageWithPath(const std::string& path);
40 
42  virtual ~MessageWithPath();
43 
45  MessageWithPath(const MessageWithPath& other);
46 
51  const std::string& path() const;
52 
53 private:
54  const std::string path_;
55 };
56 
57 }
58 
59 #endif // MESSAGEWITHPATH_H_INCLUDED
MessageWithPath(const std::string &path)
Constructor.
Definition: MessageWithPath.cpp:24
A wrapper of Liblo's lo_message.
Definition: Message.h:33
const std::string & path() const
Returns the OSC path to which this message shall be sent.
Definition: MessageWithPath.cpp:39
virtual ~MessageWithPath()
Destructor.
Definition: MessageWithPath.cpp:29
A lowrappers::Message object that holds additional information about its destination OSC path...
Definition: MessageWithPath.h:31