PandA-2024.02
|
this class is used to manage the command-line or XML options. More...
#include "custom_map.hpp"
#include "custom_set.hpp"
#include "exceptions.hpp"
#include "refcount.hpp"
#include "string_manipulation.hpp"
#include "config_HAVE_BAMBU_RESULTS_XML.hpp"
#include "config_HAVE_FROM_AADL_ASN_BUILT.hpp"
#include "config_HAVE_FROM_C_BUILT.hpp"
#include "config_HAVE_HLS_BUILT.hpp"
#include "config_HAVE_HOST_PROFILING_BUILT.hpp"
#include "config_HAVE_TECHNOLOGY_BUILT.hpp"
#include "config_HAVE_TO_C_BUILT.hpp"
#include "config_RELEASE.hpp"
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/seq/for_each.hpp>
#include <climits>
#include <filesystem>
#include <list>
#include <string>
#include <vector>
Go to the source code of this file.
Data Structures | |
class | OptionMap |
class | Parameter |
Typedefs | |
using | ParameterRef = refcount< Parameter > |
using | ParameterConstRef = refcount< const Parameter > |
this class is used to manage the command-line or XML options.
It has to be specialized with respect to the tool
Definition in file Parameter.hpp.
#define BAMBU_OPTIONS |
Definition at line 96 of file Parameter.hpp.
Referenced by Parameter::Parameter().
#define COMMON_LONG_OPTIONS |
define default TOOL long options
Definition at line 204 of file Parameter.hpp.
Referenced by tree_panda_gcc_parameter::Exec(), SpiderParameter::Exec(), EucalyptusParameter::Exec(), and BambuParameter::Exec().
#define COMMON_SHORT_OPTIONS_STRING "hVv:d:" |
define the default tool short option string
Definition at line 201 of file Parameter.hpp.
Referenced by tree_panda_gcc_parameter::Exec(), SpiderParameter::Exec(), EucalyptusParameter::Exec(), and BambuParameter::Exec().
#define COMPILER_OPTIONS |
Definition at line 136 of file Parameter.hpp.
Referenced by Parameter::Parameter().
#define DEFAULT_OPT_BASE 512 |
Definition at line 184 of file Parameter.hpp.
#define EUCALIPTUS_OPTIONS (component_name) |
Definition at line 151 of file Parameter.hpp.
Referenced by Parameter::Parameter().
#define FRAMEWORK_OPTIONS |
Definition at line 126 of file Parameter.hpp.
Referenced by Parameter::Parameter().
#define GCC_LONG_OPTIONS |
Definition at line 248 of file Parameter.hpp.
Referenced by tree_panda_gcc_parameter::Exec(), and BambuParameter::Exec().
#define GCC_LONG_OPTIONS_COMPILER {"compiler", required_argument, nullptr, INPUT_OPT_COMPILER}, |
Definition at line 246 of file Parameter.hpp.
#define GCC_LONG_OPTIONS_RAW_XML |
Definition at line 239 of file Parameter.hpp.
#define GCC_SHORT_OPTIONS_STRING "cf:I:D:U:O::l:L:W:Em:g::" |
define the GCC short option string
Definition at line 236 of file Parameter.hpp.
Referenced by tree_panda_gcc_parameter::Exec(), and BambuParameter::Exec().
#define INPUT_OPT_COMPILER (1 + INPUT_OPT_COMPUTE_SIZEOF) |
Definition at line 225 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_COMPUTE_SIZEOF (1 + INPUT_OPT_CUSTOM_OPTIONS) |
Definition at line 224 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_CONFIGURATION_NAME (1 + INPUT_OPT_NO_CLEAN) |
Definition at line 195 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_CUSTOM_OPTIONS 1024 |
Definition at line 223 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_ERROR_ON_WARNING (1 + OPT_BENCHMARK_FAKE_PARAMETERS) |
Definition at line 190 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_FIND_MAX_TRANSFORMATIONS (1 + INPUT_OPT_MAX_TRANSFORMATIONS) |
Definition at line 197 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_GCC_CONFIG (1 + INPUT_OPT_COMPILER) |
Definition at line 226 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_INCLUDE_SYSDIR (1 + INPUT_OPT_GCC_CONFIG) |
Definition at line 227 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_MAX_TRANSFORMATIONS (1 + INPUT_OPT_CONFIGURATION_NAME) |
Definition at line 196 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_NO_CLEAN (1 + INPUT_OPT_SEED) |
Definition at line 194 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_PANDA_PARAMETER (1 + INPUT_OPT_FIND_MAX_TRANSFORMATIONS) |
Definition at line 198 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_PARAM (1 + INPUT_OPT_INCLUDE_SYSDIR) |
Definition at line 228 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_PRINT_DOT (1 + OPT_OUTPUT_TEMPORARY_DIRECTORY) |
Definition at line 192 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_READ_GCC_XML (1 + INPUT_OPT_PARAM) |
Definition at line 229 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_SEED (1 + INPUT_OPT_PRINT_DOT) |
Definition at line 193 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_STD (1 + INPUT_OPT_READ_GCC_XML) |
Definition at line 230 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_USE_RAW (1 + INPUT_OPT_STD) |
Definition at line 231 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define INPUT_OPT_WRITE_GCC_XML (1 + INPUT_OPT_USE_RAW) |
Definition at line 232 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define LAST_GCC_OPT INPUT_OPT_WRITE_GCC_XML |
Definition at line 233 of file Parameter.hpp.
#define OPT_BENCHMARK_FAKE_PARAMETERS (1 + OPT_BENCHMARK_NAME) |
Definition at line 189 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define OPT_BENCHMARK_NAME (1 + OPT_DEBUG_CLASSES) |
Definition at line 188 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define OPT_DEBUG_CLASSES (1 + OPT_WRITE_PARAMETERS_XML) |
Definition at line 187 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define OPT_OUTPUT_TEMPORARY_DIRECTORY (1 + INPUT_OPT_ERROR_ON_WARNING) |
Definition at line 191 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define OPT_READ_PARAMETERS_XML DEFAULT_OPT_BASE |
Definition at line 185 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define OPT_WRITE_PARAMETERS_XML (1 + OPT_READ_PARAMETERS_XML) |
Definition at line 186 of file Parameter.hpp.
Referenced by Parameter::ManageDefaultOptions().
#define OPTIONS_ENUM | ( | r, | |
data, | |||
elem | |||
) | BOOST_PP_CAT(OPT_, elem), |
Definition at line 155 of file Parameter.hpp.
#define PARAMETER_NOTPARSED INT_MAX |
Definition at line 94 of file Parameter.hpp.
Referenced by tree_panda_gcc_parameter::Exec(), SpiderParameter::Exec(), EucalyptusParameter::Exec(), BambuParameter::Exec(), and main().
#define PARAMETER_PARSED INT_MIN |
An integer value to return if parameters have been right parsed.
Definition at line 93 of file Parameter.hpp.
Referenced by tree_panda_gcc_parameter::Exec(), SpiderParameter::Exec(), EucalyptusParameter::Exec(), BambuParameter::Exec(), and main().
#define SPIDER_OPTIONS |
Definition at line 146 of file Parameter.hpp.
Referenced by Parameter::Parameter().
#define SYNTHESIS_OPTIONS |
Definition at line 142 of file Parameter.hpp.
Referenced by Parameter::Parameter().
#define TREE_PANDA_COMPILER_OPTIONS (archive_files)(obj_files)(compress_archive) |
Definition at line 153 of file Parameter.hpp.
Referenced by Parameter::Parameter().
using ParameterConstRef = refcount<const Parameter> |
Definition at line 759 of file Parameter.hpp.
using ParameterRef = refcount<Parameter> |
Definition at line 758 of file Parameter.hpp.
enum enum_option |
Possible options.
Definition at line 159 of file Parameter.hpp.
|
strong |
File formats.
Definition at line 261 of file Parameter.hpp.