annotate src/OutputDataWriter.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 e359b9bad811
children
rev   line source
andrew@43 1 /*
andrew@43 2 * outputDataWriter.h
andrew@43 3 * MultipleAudioMathcher
andrew@43 4 *
andrew@43 5 * Created by Andrew on 25/04/2012.
andrew@43 6 * Copyright 2012 QMUL. All rights reserved.
andrew@43 7 *
andrew@43 8 */
andrew@43 9
andrew@43 10
andrew@43 11
andrew@43 12
andrew@43 13 #ifndef OUTPUT_DATA_WRITER_H
andrew@43 14 #define OUTPUT_DATA_WRITER_H
andrew@43 15
andrew@43 16
andrew@43 17 // basic file operations for text file stuff
andrew@43 18 #include <iostream>
andrew@43 19 #include <fstream>
andrew@43 20 using namespace std;
andrew@43 21
andrew@43 22 class OutputDataWriter{
andrew@43 23
andrew@43 24 public:
andrew@43 25 OutputDataWriter();
andrew@52 26 ~OutputDataWriter();
andrew@52 27
andrew@43 28 std::string filepath;
andrew@43 29 ofstream outputFile;
andrew@43 30
andrew@43 31 void openFile();
andrew@52 32 void openFile(std::string pathname);
andrew@43 33 void closeFile();
andrew@43 34
andrew@52 35 void writeValue(const double& valueOne, const double& valueTwo);
andrew@43 36 void writeOutput(const int& liveTime, const int& rehearsalTime, const int& playedRehearsalTime);
andrew@43 37 };
andrew@43 38 #endif