Functions | |
INCBIN (FINDSYM, CMAKE_SOURCE_DIR "DATA/FINDSYM.tar.xz") | |
INCBIN (FROZSL, CMAKE_SOURCE_DIR "DATA/FROZSL.tar.xz") | |
INCBIN (PHVASP, CMAKE_SOURCE_DIR "DATA/PHVASP.tar.xz") | |
INCBIN (ReadMe, CMAKE_SOURCE_DIR "DATA/README.tar.xz") | |
INCBIN (Test, CMAKE_SOURCE_DIR "DATA/TEST.tar.xz") | |
INCBIN (Images, CMAKE_SOURCE_DIR "DATA/IMAGES.tar.xz") | |
INCBIN (Scripts, CMAKE_SOURCE_DIR "DATA/SCRIPTS.tar.xz") | |
INCBIN (Prototypes, CMAKE_SOURCE_DIR "DATA/PROTO.tar.xz") | |
std::string | read_data (struct archive *ar) |
void | write_collection_folder (const std::pair< char *, unsigned int > raw_data, const std::string &path, const std::string &folder_out_raw) |
void | write_collection_file (const std::pair< char *, unsigned int > raw_data, const std::string &filename, const std::string &outfile_raw) |
std::string | get_collection_text (const std::pair< char *, unsigned int > raw_data, const std::string &filename) |
aurostd::JSON::object | get_unit_test () |
return data for unittests | |
string | get_test_file (string file) |
return data for unittests | |
std::string | get_content (const std::string &filename, const std::string &collection) |
get the content of an embedded file | |
void | save_to_file (const std::string &filename, const std::string &collection, const std::string &target_path) |
write a embedded file into the filesystem | |
void | save_to_folder (const std::string &path, const std::string &collection, const std::string &target_path) |
write a embedded file into the filesystem | |
std::string | get_test_file (std::string file) |
Variables | |
static const std::map< std::string, std::pair< char *, unsigned int > > | aflow_data_collections |
aurostd::EmbData::INCBIN | ( | FINDSYM | , |
CMAKE_SOURCE_DIR "DATA/FINDSYM.tar.xz" | ) |
aurostd::EmbData::INCBIN | ( | FROZSL | , |
CMAKE_SOURCE_DIR "DATA/FROZSL.tar.xz" | ) |
aurostd::EmbData::INCBIN | ( | PHVASP | , |
CMAKE_SOURCE_DIR "DATA/PHVASP.tar.xz" | ) |
aurostd::EmbData::INCBIN | ( | ReadMe | , |
CMAKE_SOURCE_DIR "DATA/README.tar.xz" | ) |
aurostd::EmbData::INCBIN | ( | Test | , |
CMAKE_SOURCE_DIR "DATA/TEST.tar.xz" | ) |
aurostd::EmbData::INCBIN | ( | Images | , |
CMAKE_SOURCE_DIR "DATA/IMAGES.tar.xz" | ) |
aurostd::EmbData::INCBIN | ( | Scripts | , |
CMAKE_SOURCE_DIR "DATA/SCRIPTS.tar.xz" | ) |
aurostd::EmbData::INCBIN | ( | Prototypes | , |
CMAKE_SOURCE_DIR "DATA/PROTO.tar.xz" | ) |
std::string aurostd::EmbData::read_data | ( | struct archive * | ar | ) |
Definition at line 58 of file aurostd_data.cpp.
void aurostd::EmbData::write_collection_folder | ( | const std::pair< char *, unsigned int > | raw_data, |
const std::string & | path, | ||
const std::string & | folder_out_raw ) |
Definition at line 74 of file aurostd_data.cpp.
void aurostd::EmbData::write_collection_file | ( | const std::pair< char *, unsigned int > | raw_data, |
const std::string & | filename, | ||
const std::string & | outfile_raw ) |
Definition at line 133 of file aurostd_data.cpp.
std::string aurostd::EmbData::get_collection_text | ( | const std::pair< char *, unsigned int > | raw_data, |
const std::string & | filename ) |
Definition at line 184 of file aurostd_data.cpp.
JSON::object aurostd::EmbData::get_unit_test | ( | ) |
return data for unittests
DATA/TEST/unit_test.json
Definition at line 223 of file aurostd_data.cpp.
string aurostd::EmbData::get_test_file | ( | string | file | ) |
return data for unittests
Definition at line 229 of file aurostd_data.cpp.
std::string aurostd::EmbData::get_content | ( | const std::string & | filename, |
const std::string & | collection ) |
get the content of an embedded file
filename | name of the file |
collection | name of the collection |
Definition at line 237 of file aurostd_data.cpp.
void aurostd::EmbData::save_to_file | ( | const std::string & | filename, |
const std::string & | collection, | ||
const std::string & | target_path ) |
write a embedded file into the filesystem
filename | name of the file (as in the DATA folder) |
target_path | target location |
Definition at line 251 of file aurostd_data.cpp.
void aurostd::EmbData::save_to_folder | ( | const std::string & | path, |
const std::string & | collection, | ||
const std::string & | target_path ) |
write a embedded file into the filesystem
path | path a folder in the archive (must end in '/') |
target_path | target location |
Definition at line 265 of file aurostd_data.cpp.
std::string aurostd::EmbData::get_test_file | ( | std::string | file | ) |
|
static |
Definition at line 47 of file aurostd_data.cpp.