view 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
line wrap: on
line source
/*
 *  MatchMarkers.h
 *  MultipleAudioMathcher
 *
 *  Created by Andrew on 14/06/2012.
 *  Copyright 2012 QMUL. All rights reserved.
 *
 */


#ifndef MATCH_MARKERS_H
#define MATCH_MARKERS_H

#include <iostream>
#include <fstream>
using namespace std;

#include "ofMain.h"

class MatchMarkers{
	
	public:
	MatchMarkers();

	//vector to hold markers
	typedef std::vector<double> DoubleVector;
	DoubleVector markers;
	
	//fns
	void addMarker(const double& time);
	void deleteMarker(const int& markerIndex);

//text file stuff
	void saveMarkers();
	void saveMarkers(const std::string& filePath);

	ofstream markerOutputFile;
	
};
#endif