8 #ifndef RETDEC_DECOMPILATION_ARGUMENTS_H
9 #define RETDEC_DECOMPILATION_ARGUMENTS_H
25 using Arguments = std::map<std::string, std::string>;
28 using Files = std::map<std::string, std::shared_ptr<File>>;
53 std::string
mode()
const;
83 const std::string &value);
85 const std::string &value)
const;
87 std::string
argument(
const std::string &
id)
const;
95 const std::shared_ptr<File> &
file);
97 const std::shared_ptr<File> &
file)
const;
98 bool hasFile(
const std::string &
id)
const;
99 std::shared_ptr<File>
file(
const std::string &
id)
const;
bool hasInputFile() const
Is the input file set?
Definition: decompilation_arguments.cpp:212
FileIterator filesBegin() const
Returns an iterator to the beginning of arguments.
Definition: decompilation_arguments.cpp:310
DecompilationArguments & argument(const std::string &id, const std::string &value)
Sets the argument of the given ID to the given value.
Definition: decompilation_arguments.cpp:226
The namespace of the library.
Definition: doxygen.h:8
Arguments for decompilations.
Definition: decompilation_arguments.h:22
DecompilationArguments withSelDecompRanges(const std::string &ranges)
Returns a copy of the arguments with a different ranges for selective decompilation.
Definition: decompilation_arguments.cpp:143
bool hasSelDecompRanges() const
Are the ranges for selective decompilation set?
Definition: decompilation_arguments.cpp:151
DecompilationArguments withMode(const std::string &mode) const
Returns a copy of the arguments with a different mode.
Definition: decompilation_arguments.cpp:97
std::string selDecompDecoding() const
Returns the type of decoding for selective decompilation.
Definition: decompilation_arguments.cpp:189
DecompilationArguments & operator=(const DecompilationArguments &other)
Copy-assigns the given arguments.
bool hasFile(const std::string &id) const
Is a file of the given ID present?
Definition: decompilation_arguments.cpp:294
FileIterator filesEnd() const
Returns an iterator past the last argument.
Definition: decompilation_arguments.cpp:317
Files::const_iterator FileIterator
Iterator for files.
Definition: decompilation_arguments.h:35
bool hasArgument(const std::string &id) const
Is an argument of the given ID present?
Definition: decompilation_arguments.cpp:245
ArgumentIterator argumentsBegin() const
Returns an iterator to the beginning of arguments.
Definition: decompilation_arguments.cpp:261
DecompilationArguments()
Constructs default arguments.
ArgumentIterator argumentsEnd() const
Returns an iterator past the last argument.
Definition: decompilation_arguments.cpp:268
DecompilationArguments & file(const std::string &id, const std::shared_ptr< File > &file)
Sets the file of the given ID to the given value.
Definition: decompilation_arguments.cpp:275
std::shared_ptr< File > inputFile() const
Returns the input file.
Definition: decompilation_arguments.cpp:219
bool hasMode() const
Is the mode set?
Definition: decompilation_arguments.cpp:105
DecompilationArguments withSelDecompDecoding(const std::string &decoding)
Returns a copy of the arguments with a different type of decoding for selective decompilation.
Definition: decompilation_arguments.cpp:174
DecompilationArguments withFile(const std::string &id, const std::shared_ptr< File > &file) const
Returns a copy of the files with a differing file of the given ID.
Definition: decompilation_arguments.cpp:284
std::string selDecompRanges() const
Returns the ranges for selective decompilation.
Definition: decompilation_arguments.cpp:158
bool hasSelDecompDecoding() const
Is the type of decoding for selective decompilation set?
Definition: decompilation_arguments.cpp:182
DecompilationArguments withInputFile(const std::shared_ptr< File > &file) const
Returns a copy of the arguments with a different input file.
Definition: decompilation_arguments.cpp:204
~DecompilationArguments()
Destructs the arguments.
DecompilationArguments withArgument(const std::string &id, const std::string &value) const
Returns a copy of the arguments with a differing argument of the given ID.
Definition: decompilation_arguments.cpp:235
Arguments::const_iterator ArgumentIterator
Iterator for arguments.
Definition: decompilation_arguments.h:32
std::string mode() const
Returns the mode.
Definition: decompilation_arguments.cpp:112