annotate osc/OSCMessage.cpp @ 190:89a41f3d24d1

* textual changes
author Chris Cannam
date Tue, 09 Oct 2007 16:21:10 +0000
parents 76cc2c424268
children
rev   line source
Chris@69 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@69 2
Chris@69 3 /*
Chris@69 4 Sonic Visualiser
Chris@69 5 An audio file viewer and annotation editor.
Chris@69 6 Centre for Digital Music, Queen Mary, University of London.
Chris@69 7
Chris@69 8 This program is free software; you can redistribute it and/or
Chris@69 9 modify it under the terms of the GNU General Public License as
Chris@69 10 published by the Free Software Foundation; either version 2 of the
Chris@69 11 License, or (at your option) any later version. See the file
Chris@69 12 COPYING included with this distribution for more information.
Chris@69 13 */
Chris@69 14
Chris@69 15 /*
Chris@69 16 This is a modified version of a source file from the
Chris@69 17 Rosegarden MIDI and audio sequencer and notation editor.
Chris@69 18 This file copyright 2000-2006 Chris Cannam.
Chris@69 19 */
Chris@69 20
Chris@69 21 #include "OSCMessage.h"
Chris@69 22
Chris@69 23
Chris@69 24 OSCMessage::~OSCMessage()
Chris@69 25 {
Chris@69 26 clearArgs();
Chris@69 27 }
Chris@69 28
Chris@69 29 void
Chris@69 30 OSCMessage::clearArgs()
Chris@69 31 {
Chris@69 32 m_args.clear();
Chris@69 33 }
Chris@69 34
Chris@69 35 void
Chris@69 36 OSCMessage::addArg(QVariant arg)
Chris@69 37 {
Chris@69 38 m_args.push_back(arg);
Chris@69 39 }
Chris@69 40
Chris@69 41 size_t
Chris@69 42 OSCMessage::getArgCount() const
Chris@69 43 {
Chris@69 44 return m_args.size();
Chris@69 45 }
Chris@69 46
Chris@69 47 const QVariant &
Chris@69 48 OSCMessage::getArg(size_t i) const
Chris@69 49 {
Chris@69 50 return m_args[i];
Chris@69 51 }
Chris@69 52