HulaLoop
Simple cross-platform audio loopback and recording.
Export.h
1 #ifndef HL_EXPORT_H
2 #define HL_EXPORT_H
3 
4 #include <hlaudio/hlaudio.h>
5 #include <string>
6 #include <vector>
7 
8 namespace hula
9 {
13  class Export {
14 
15  private:
16  std::string targetFile;
17 
18  public:
19  Export(std::string targetFile);
20  void copyData(std::vector<std::string> dirs);
21 
22  std::string getFileExtension(std::string file_path);
23 
24  static std::string getTempPath();
25  static void deleteTempFiles(std::vector<std::string> dirs);
26 
27  ~Export();
28  };
29 } // namespace hula
30 
31 #endif // HL_EXPORT_H
void copyData(std::vector< std::string > dirs)
Copies the data from the temp file.
Definition: Export.cpp:39
static void deleteTempFiles(std::vector< std::string > dirs)
Deletes all the files in the vector.
Definition: Export.cpp:143
<hlaudio/hlaudio.h>
static std::string getTempPath()
Gets the system temporary directory.
Definition: Export.cpp:29
Export(std::string targetFile)
Construct a new instance of the Export class.
Definition: Export.cpp:19
~Export()
Destroys the instance of Export.
Definition: Export.cpp:156
Wrapper around translation functions for Qt.
Definition: Controller.h:10
A class used to copy data from temp files and export files.
Definition: Export.h:13
std::string getFileExtension(std::string file_path)
Identify the file extension of the provided file.
Definition: Export.cpp:123