view src/MatchMarkers.h @ 56:4394c9490716 tip

minor changes
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Mon, 24 Dec 2012 18:58:39 +0000
parents 6f6461b0d07f
children
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"
#include "ofxFileDialogOSX.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);

	void loadMarkerFile(std::string filePath);
	void load();
	
	void loadFile();//from dialog box
	void saveFile();
	
	ofstream markerOutputFile;
	string output;
	
};
#endif