AFLOW
 
Loading...
Searching...
No Matches
aurostd_data.cpp File Reference
#include <cstring>
#include <filesystem>
#include <fstream>
#include <ios>
#include <map>
#include <string>
#include <utility>
#include <archive.h>
#include <archive_entry.h>
#include "aurostd.h"
#include "aurostd_incbin_defs.h"
#include "aurostd_xerror.h"
#include "aurostd_xfile.h"
#include "aurostd_xparser_json.h"

Go to the source code of this file.

Namespaces

namespace  aurostd
 
namespace  aurostd::EmbData
 

Macros

#define _AUROSTD_DATA_CPP_
 
#define CMAKE_SOURCE_DIR   ""
 

Functions

 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)
 
void aurostd::EmbData::write_collection_folder (const std::pair< char *, unsigned int > raw_data, const std::string &path, const std::string &folder_out_raw)
 
void aurostd::EmbData::write_collection_file (const std::pair< char *, unsigned int > raw_data, const std::string &filename, const std::string &outfile_raw)
 
std::string aurostd::EmbData::get_collection_text (const std::pair< char *, unsigned int > raw_data, const std::string &filename)
 
aurostd::JSON::object aurostd::EmbData::get_unit_test ()
 return data for unittests
 
string aurostd::EmbData::get_test_file (string file)
 return data for unittests
 
std::string aurostd::EmbData::get_content (const std::string &filename, const std::string &collection)
 get the content of an embedded file
 
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
 
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
 

Variables

static const std::map< std::string, std::pair< char *, unsigned int > > aurostd::EmbData::aflow_data_collections
 

Macro Definition Documentation

◆ _AUROSTD_DATA_CPP_

#define _AUROSTD_DATA_CPP_

Definition at line 9 of file aurostd_data.cpp.

◆ CMAKE_SOURCE_DIR

#define CMAKE_SOURCE_DIR   ""

Definition at line 29 of file aurostd_data.cpp.