HulaLoop
Simple cross-platform audio loopback and recording.
Public Member Functions | Static Public Member Functions | List of all members
hula::Export Class Reference

A class used to copy data from temp files and export files. More...

#include <Export.h>

Public Member Functions

 Export (std::string targetFile)
 Construct a new instance of the Export class. More...
 
void copyData (std::vector< std::string > dirs)
 Copies the data from the temp file. More...
 
std::string getFileExtension (std::string file_path)
 Identify the file extension of the provided file. More...
 
 ~Export ()
 Destroys the instance of Export.
 

Static Public Member Functions

static std::string getTempPath ()
 Gets the system temporary directory. More...
 
static void deleteTempFiles (std::vector< std::string > dirs)
 Deletes all the files in the vector.
 

Detailed Description

A class used to copy data from temp files and export files.

Constructor & Destructor Documentation

Export::Export ( std::string  targetFile)

Construct a new instance of the Export class.

Parameters
Thetarget directory of the file

Member Function Documentation

void Export::copyData ( std::vector< std::string >  dirs)

Copies the data from the temp file.

Parameters
Theinput file directory to copy from
std::string Export::getFileExtension ( std::string  file_path)

Identify the file extension of the provided file.

Parameters
file_pathpath to the file to identify the extension
Returns
std::string the extension of the provided file
std::string Export::getTempPath ( )
static

Gets the system temporary directory.

Returns
string the absolute path to the system temp directory

The documentation for this class was generated from the following files: