andrew@2: /* andrew@2: * BeatWriter.h andrew@2: * BTrack andrew@2: * andrew@2: * Created by Andrew on 31/10/2013. andrew@2: * Copyright 2013 QMUL. All rights reserved. andrew@2: * andrew@2: */ andrew@2: andrew@2: /* andrew@2: * BeatWriter.h andrew@2: * MultipleAudioMathcher andrew@2: * andrew@2: * Created by Andrew on 25/04/2012. andrew@2: * Copyright 2012 QMUL. All rights reserved. andrew@2: * andrew@2: */ andrew@2: andrew@2: andrew@2: andrew@2: andrew@2: #ifndef BEAT_WRITER_H andrew@2: #define BEAT_WRITER_H andrew@2: andrew@2: andrew@2: // basic file operations for text file stuff andrew@2: #include andrew@2: #include andrew@2: using namespace std; andrew@2: andrew@2: class BeatWriter{ andrew@2: andrew@2: public: andrew@2: BeatWriter(); andrew@2: ~BeatWriter(); andrew@2: andrew@2: std::string filepath; andrew@2: ofstream outputFile; andrew@2: andrew@2: void openFile(); andrew@2: void openFile(std::string pathname); andrew@2: void closeFile(); andrew@2: void writeBeatTime(const double& beatTime); andrew@2: andrew@2: }; andrew@2: #endif