OSCMessage.cpp
Go to the documentation of this file.
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 #include "OSCMessage.h"
22 
23 
25 {
26  clearArgs();
27 }
28 
29 void
31 {
32  m_args.clear();
33 }
34 
35 void
36 OSCMessage::addArg(QVariant arg)
37 {
38  m_args.push_back(arg);
39 }
40 
41 int
43 {
44  return int(m_args.size());
45 }
46 
47 const QVariant &
48 OSCMessage::getArg(int i) const
49 {
50  return m_args[i];
51 }
52 
void addArg(QVariant arg)
Definition: OSCMessage.cpp:36
const QVariant & getArg(int i) const
Definition: OSCMessage.cpp:48
void clearArgs()
Definition: OSCMessage.cpp:30
int getArgCount() const
Definition: OSCMessage.cpp:42
std::vector< QVariant > m_args
Definition: OSCMessage.h:69