annotate base/Clipboard.h @ 1803:6eb3a76c74f7

Make static to avoid multiple definitions
author Chris Cannam
date Thu, 10 Oct 2019 10:03:31 +0100
parents d7ae9bfb015e
children
rev   line source
Chris@74 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@74 2
Chris@74 3 /*
Chris@74 4 Sonic Visualiser
Chris@74 5 An audio file viewer and annotation editor.
Chris@74 6 Centre for Digital Music, Queen Mary, University of London.
Chris@74 7 This file copyright 2006 Chris Cannam.
Chris@74 8
Chris@74 9 This program is free software; you can redistribute it and/or
Chris@74 10 modify it under the terms of the GNU General Public License as
Chris@74 11 published by the Free Software Foundation; either version 2 of the
Chris@74 12 License, or (at your option) any later version. See the file
Chris@74 13 COPYING included with this distribution for more information.
Chris@74 14 */
Chris@74 15
Chris@1581 16 #ifndef SV_CLIPBOARD_H
Chris@1581 17 #define SV_CLIPBOARD_H
Chris@74 18
Chris@74 19 #include <vector>
Chris@74 20
Chris@1615 21 #include "Event.h"
Chris@1044 22
Chris@74 23 class Clipboard
Chris@74 24 {
Chris@74 25 public:
Chris@74 26 Clipboard();
Chris@74 27 ~Clipboard();
Chris@74 28
Chris@74 29 void clear();
Chris@74 30 bool empty() const;
Chris@1615 31 const EventVector &getPoints() const;
Chris@1615 32 void setPoints(const EventVector &points);
Chris@1615 33 void addPoint(const Event &point);
Chris@74 34
Chris@370 35 bool haveReferenceFrames() const;
Chris@369 36 bool referenceFramesDiffer() const;
Chris@340 37
Chris@74 38 protected:
Chris@1726 39 EventVector m_points;
Chris@74 40 };
Chris@74 41
Chris@74 42 #endif