Mercurial > hg > svcore
annotate data/osc/OSCMessage.h @ 1245:0492e54ccd56 piper
Logging; use only first ("native") helper for non-Vamp plugins
author | Chris Cannam |
---|---|
date | Tue, 01 Nov 2016 16:02:15 +0000 |
parents | a0573186435e |
children | ad5f892c0c4d |
rev | line source |
---|---|
Chris@320 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@320 | 2 |
Chris@320 | 3 /* |
Chris@320 | 4 Sonic Visualiser |
Chris@320 | 5 An audio file viewer and annotation editor. |
Chris@320 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@320 | 7 |
Chris@320 | 8 This program is free software; you can redistribute it and/or |
Chris@320 | 9 modify it under the terms of the GNU General Public License as |
Chris@320 | 10 published by the Free Software Foundation; either version 2 of the |
Chris@320 | 11 License, or (at your option) any later version. See the file |
Chris@320 | 12 COPYING included with this distribution for more information. |
Chris@320 | 13 */ |
Chris@320 | 14 |
Chris@320 | 15 /* |
Chris@320 | 16 This is a modified version of a source file from the |
Chris@320 | 17 Rosegarden MIDI and audio sequencer and notation editor. |
Chris@320 | 18 This file copyright 2000-2006 Chris Cannam. |
Chris@320 | 19 */ |
Chris@320 | 20 |
Chris@320 | 21 #ifndef _OSC_MESSAGE_H_ |
Chris@320 | 22 #define _OSC_MESSAGE_H_ |
Chris@320 | 23 |
Chris@320 | 24 #include <QString> |
Chris@320 | 25 #include <QVariant> |
Chris@320 | 26 |
Chris@320 | 27 #include <vector> |
Chris@320 | 28 #include <map> |
Chris@320 | 29 |
Chris@686 | 30 #include "base/Debug.h" |
Chris@686 | 31 |
Chris@320 | 32 class OSCMessage |
Chris@320 | 33 { |
Chris@320 | 34 public: |
Chris@972 | 35 OSCMessage() : m_target(0), m_targetData(0) { } |
Chris@320 | 36 ~OSCMessage(); |
Chris@320 | 37 |
Chris@320 | 38 void setTarget(const int &target) { m_target = target; } |
Chris@320 | 39 int getTarget() const { return m_target; } |
Chris@320 | 40 |
Chris@320 | 41 void setTargetData(const int &targetData) { m_targetData = targetData; } |
Chris@320 | 42 int getTargetData() const { return m_targetData; } |
Chris@320 | 43 |
Chris@320 | 44 void setMethod(QString method) { m_method = method; } |
Chris@320 | 45 QString getMethod() const { return m_method; } |
Chris@320 | 46 |
Chris@320 | 47 void clearArgs(); |
Chris@320 | 48 void addArg(QVariant arg); |
Chris@320 | 49 |
Chris@929 | 50 int getArgCount() const; |
Chris@929 | 51 const QVariant &getArg(int i) const; |
Chris@320 | 52 |
Chris@320 | 53 private: |
Chris@320 | 54 int m_target; |
Chris@320 | 55 int m_targetData; |
Chris@320 | 56 QString m_method; |
Chris@320 | 57 std::vector<QVariant> m_args; |
Chris@320 | 58 }; |
Chris@320 | 59 |
Chris@320 | 60 #endif |