retdec
|
#include <config.h>
Public Member Functions | |
std::string | generateJsonString () const |
std::string | generateJsonFile () const |
std::string | generateJsonFile (const std::string &outputFilePath) const |
void | readJsonString (const std::string &json) |
void | readJsonFile (const std::string &input) |
Static Public Member Functions | |
Config named constructors. | |
static Config | empty () |
static Config | fromFile (const std::string &path) |
static Config | fromJsonString (const std::string &json) |
Main config class containing all configuration information.
|
static |
|
static |
|
static |
std::string retdec::config::Config::generateJsonFile | ( | ) | const |
Generates JSON configuration file.
std::string retdec::config::Config::generateJsonFile | ( | const std::string & | outputFilePath | ) | const |
Generates JSON configuration file.
outputFilePath | Path to output JSON file. If not set, use 'inputName'. |
std::string retdec::config::Config::generateJsonString | ( | ) | const |
Generates string containing JSON representation of configuration.
void retdec::config::Config::readJsonFile | ( | const std::string & | input | ) |
Reads JSON file into internal representation. If file can not be opened, an instance of FileNotFoundException
is thrown. If file can not be parsed, an instance of ParseException
is thrown.
input | Path to input JSON file. |
void retdec::config::Config::readJsonString | ( | const std::string & | json | ) |
Reads string containig JSON representation of configuration. If file can not be parsed, an instance of ParseException
is thrown.
json | JSON string. |
common::Architecture retdec::config::Config::architecture |
common::ClassContainer retdec::config::Config::classes |
common::FileFormat retdec::config::Config::fileFormat |
common::FileType retdec::config::Config::fileType |
common::FunctionContainer retdec::config::Config::functions |
common::GlobalVarContainer retdec::config::Config::globals |
common::LanguageContainer retdec::config::Config::languages |
Parameters retdec::config::Config::parameters |
common::PatternContainer retdec::config::Config::patterns |
common::ObjectSetContainer retdec::config::Config::registers |
common::TypeContainer retdec::config::Config::structures |
common::ToolInfoContainer retdec::config::Config::tools |
common::VtableContainer retdec::config::Config::vtables |