AiLibrary
v1.3.0
A single-header C++ Library from Ailurus Studio
|
Functions providing the ability to save your data. More...
Functions | |
template<typename T > | |
INLINE void | ai::saveMatrix (const std::string filename, const std::vector< std::vector< T > > &matrix, std::string comment=std::string(), const bool transpose=false, std::string type=std::string("text"), std::string delimiter=std::string(" "), const std::size_t tokenWidth=14) |
template<typename T > | |
INLINE void | ai::saveVector (const std::string filename, const std::vector< T > &vector, std::string comment=std::string(), std::string type=std::string("text"), std::string delimiter=std::string("\)) |
INLINE void | ai::saveLine (const std::string filename, const std::string line, std::string comment=std::string()) |
template<typename T > | |
INLINE void | ai::save (const std::string filename, const std::vector< std::vector< T > > &matrix, std::string comment=std::string()) |
template<typename T > | |
INLINE void | ai::save (const std::string filename, const std::vector< T > &vector, std::string comment=std::string()) |
template<typename T > | |
INLINE void | ai::save (const std::string filename, const std::string line, std::string comment=std::string()) |
INLINE void | ai::saveLog (const std::string filename, std::string log, const bool timestamp=false, const std::string stampSeparator=std::string(" ")) |
INLINE void | ai::saveLog (const std::string filename, std::vector< std::string > &logs, const bool timestamp=false, const std::string stampSeparator=std::string(" ")) |
template<typename T > | |
INLINE bool | ai::loadA3R (const std::string filename, std::vector< std::vector< T > > &positions, double &radius) |
template<typename T > | |
INLINE bool | ai::saveA3R (const std::string filename, const std::vector< std::vector< T > > &positions, const double radius=1) |
template<typename T > | |
INLINE void | ai::loadXYZ (const std::string filename, std::vector< std::vector< T > > &matrix) |
template<typename T > | |
INLINE void | ai::saveXYZ (const std::string filename, const std::vector< std::vector< T > > &matrix, const std::vector< T > &tones, std::string elementName="C") |
template<typename T > | |
INLINE void | ai::saveXYZ (const std::string filename, const std::vector< std::vector< T > > &matrix, std::string elementName="C") |
Group of functions that will make saving data much easier by supporting various formats and styles
INLINE bool ai::loadA3R | ( | const std::string | filename, |
std::vector< std::vector< T > > & | positions, | ||
double & | radius | ||
) |
T | A number type |
std::runtime_error | If file could not be open |
INLINE void ai::loadXYZ | ( | const std::string | filename, |
std::vector< std::vector< T > > & | matrix | ||
) |
T | Any printable type |
std::runtime_error | If file could not be open |
INLINE void ai::save | ( | const std::string | filename, |
const std::vector< std::vector< T > > & | matrix, | ||
std::string | comment = std::string() |
||
) |
INLINE void ai::save | ( | const std::string | filename, |
const std::vector< T > & | vector, | ||
std::string | comment = std::string() |
||
) |
INLINE void ai::save | ( | const std::string | filename, |
const std::string | line, | ||
std::string | comment = std::string() |
||
) |
INLINE bool ai::saveA3R | ( | const std::string | filename, |
const std::vector< std::vector< T > > & | positions, | ||
const double | radius = 1 |
||
) |
T | A number type |
std::runtime_error | If file could not be open |
INLINE void ai::saveLine | ( | const std::string | filename, |
const std::string | line, | ||
std::string | comment = std::string() |
||
) |
std::runtime_error | If file could not be open |
INLINE void ai::saveLog | ( | const std::string | filename, |
std::string | log, | ||
const bool | timestamp = false , |
||
const std::string | stampSeparator = std::string(" ") |
||
) |
std::runtime_error | If file could not be open |
INLINE void ai::saveLog | ( | const std::string | filename, |
std::vector< std::string > & | logs, | ||
const bool | timestamp = false , |
||
const std::string | stampSeparator = std::string(" ") |
||
) |
std::runtime_error | If file could not be open |
INLINE void ai::saveMatrix | ( | const std::string | filename, |
const std::vector< std::vector< T > > & | matrix, | ||
std::string | comment = std::string() , |
||
const bool | transpose = false , |
||
std::string | type = std::string("text") , |
||
std::string | delimiter = std::string(" ") , |
||
const std::size_t | tokenWidth = 14 |
||
) |
T | Any printable type |
std::runtime_error | If file could not be open |
INLINE void ai::saveVector | ( | const std::string | filename, |
const std::vector< T > & | vector, | ||
std::string | comment = std::string() , |
||
std::string | type = std::string("text") , |
||
std::string | delimiter = std::string("\n") |
||
) |
T | Any printable type |
std::runtime_error | If file could not be open |
INLINE void ai::saveXYZ | ( | const std::string | filename, |
const std::vector< std::vector< T > > & | matrix, | ||
const std::vector< T > & | tones, | ||
std::string | elementName = "C" |
||
) |
T | A number type |
std::runtime_error | If file could not be open |
INLINE void ai::saveXYZ | ( | const std::string | filename, |
const std::vector< std::vector< T > > & | matrix, | ||
std::string | elementName = "C" |
||
) |
T | Any printable type |