comparison data/osc/OSCMessage.h @ 320:32e50b620a6c

* Move some things around to facilitate plundering libraries for other applications without needing to duplicate so much code. sv/osc -> data/osc sv/audioio -> audioio sv/transform -> plugin/transform sv/document -> document (will rename to framework in next commit)
author Chris Cannam
date Wed, 24 Oct 2007 16:34:31 +0000
parents
children b4a8d8221eaf
comparison
equal deleted inserted replaced
319:3ff8f571da09 320:32e50b620a6c
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 Sonic Visualiser
5 An audio file viewer and annotation editor.
6 Centre for Digital Music, Queen Mary, University of London.
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version. See the file
12 COPYING included with this distribution for more information.
13 */
14
15 /*
16 This is a modified version of a source file from the
17 Rosegarden MIDI and audio sequencer and notation editor.
18 This file copyright 2000-2006 Chris Cannam.
19 */
20
21 #ifndef _OSC_MESSAGE_H_
22 #define _OSC_MESSAGE_H_
23
24 #include <QString>
25 #include <QVariant>
26
27 #include <vector>
28 #include <map>
29
30 class OSCMessage
31 {
32 public:
33 OSCMessage() { }
34 ~OSCMessage();
35
36 void setTarget(const int &target) { m_target = target; }
37 int getTarget() const { return m_target; }
38
39 void setTargetData(const int &targetData) { m_targetData = targetData; }
40 int getTargetData() const { return m_targetData; }
41
42 void setMethod(QString method) { m_method = method; }
43 QString getMethod() const { return m_method; }
44
45 void clearArgs();
46 void addArg(QVariant arg);
47
48 size_t getArgCount() const;
49 const QVariant &getArg(size_t i) const;
50
51 private:
52 int m_target;
53 int m_targetData;
54 QString m_method;
55 std::vector<QVariant> m_args;
56 };
57
58 #endif