annotate src/MatchMarkers.h @ 50:93d21c20cfbc

Added Markers and the ability to switch to these points in the file when playing
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Thu, 14 Jun 2012 20:04:49 +0100
parents
children 6f6461b0d07f
rev   line source
andrew@50 1 /*
andrew@50 2 * MatchMarkers.h
andrew@50 3 * MultipleAudioMathcher
andrew@50 4 *
andrew@50 5 * Created by Andrew on 14/06/2012.
andrew@50 6 * Copyright 2012 QMUL. All rights reserved.
andrew@50 7 *
andrew@50 8 */
andrew@50 9
andrew@50 10
andrew@50 11 #ifndef MATCH_MARKERS_H
andrew@50 12 #define MATCH_MARKERS_H
andrew@50 13
andrew@50 14 #include <iostream>
andrew@50 15 #include <fstream>
andrew@50 16 using namespace std;
andrew@50 17
andrew@50 18 #include "ofMain.h"
andrew@50 19
andrew@50 20 class MatchMarkers{
andrew@50 21
andrew@50 22 public:
andrew@50 23 MatchMarkers();
andrew@50 24
andrew@50 25 //vector to hold markers
andrew@50 26 typedef std::vector<double> DoubleVector;
andrew@50 27 DoubleVector markers;
andrew@50 28
andrew@50 29 //fns
andrew@50 30 void addMarker(const double& time);
andrew@50 31 void deleteMarker(const int& markerIndex);
andrew@50 32
andrew@50 33 //text file stuff
andrew@50 34 void saveMarkers();
andrew@50 35 void saveMarkers(const std::string& filePath);
andrew@50 36
andrew@50 37 ofstream markerOutputFile;
andrew@50 38
andrew@50 39 };
andrew@50 40 #endif