|
uuu
uuu (Universal Update Utility), mfgtools 3.0
|
#include <buildincmd.h>
Classes | |
| class | Arg |
| A class for representing arguments of built-in scripts represented by BuiltInScript. More... | |
Public Member Functions | |
| BuiltInScript () | |
| BuiltInScript (const BuiltInScriptRawData *p) | |
| Create a new BuiltInScript instance by extracting information from a BuiltInScriptRawData instance. | |
| std::string | replace_script_args (const std::vector< std::string > &args) const |
| Replace built-in script's arguments by actual values given in args. | |
| void | show () const |
| Print the built-in script to stdout followed by a newline. | |
| void | show_cmd () const |
| Print the script's name, its description and its arguments to stdout. | |
Public Attributes | |
| const std::string | m_text |
| The actual script which is being represented. | |
| const std::string | m_desc |
| A description of the script's purpose. | |
| const std::string | m_name |
| A short name of the built-in script. | |
| std::vector< Arg > | m_args |
| The arguments of the built-in script. | |
Private Member Functions | |
| bool | find_args (const std::string &arg) const |
| Check if the BuiltInScript instance has an argument called arg. | |
|
inline |
| BuiltInScript::BuiltInScript | ( | const BuiltInScriptRawData * | p | ) |
Create a new BuiltInScript instance by extracting information from a BuiltInScriptRawData instance.
| [in] | p | The BuiltInScriptRawData containing all data of the script this BuiltInScript instance shall represent |
|
private |
Check if the BuiltInScript instance has an argument called arg.
| [in] | arg | The argument for which its existence in the BuiltInScript shall be checked |
| std::string BuiltInScript::replace_script_args | ( | const std::vector< std::string > & | args | ) | const |
Replace built-in script's arguments by actual values given in args.
| [in] | args | The actual values that shall replace the arguments (the order must fit the order of the arguments in the script) |
| void BuiltInScript::show | ( | ) | const |
Print the built-in script to stdout followed by a newline.
| void BuiltInScript::show_cmd | ( | ) | const |
Print the script's name, its description and its arguments to stdout.
| std::vector<Arg> BuiltInScript::m_args |
The arguments of the built-in script.
| const std::string BuiltInScript::m_desc |
A description of the script's purpose.
| const std::string BuiltInScript::m_name |
A short name of the built-in script.
| const std::string BuiltInScript::m_text |
The actual script which is being represented.