43 #ifndef CORE_PFPCONFIG_H_
44 #define CORE_PFPCONFIG_H_
52 #define INPUT_FILE_ERROR -7
53 #define USER_ERROR_FATAL -10
54 #define SPCONFIG(param) \
55 pfp::core::GetParameter(param);
56 #define SPSETCONFIGPATH(path) \
57 pfp::core::PFPConfig::get().SetConfigFilePath(path);
58 #define SPSETOUTPUTDIRPATH(path) \
59 pfp::core::PFPConfig::get().SetOutputDirPath(path);
60 #define SPSETARGS(args) \
61 pfp::core::PFPConfig::get().set_command_line_arg_vector(args);
63 pfp::core::PFPConfig::get().get_command_line_arg(key)
65 pfp::core::PFPConfig::get().getConfigFilePath()
67 pfp::core::PFPConfig::get().getOutputDirPath()
68 #define ISVERBOSITY(level) \
69 pfp::core::PFPConfig::get().get_verbose_level() \
70 == pfp::core::PFPConfig::get().verbosity::level
71 #define SET_PFP_DEBUGGER_FLAG(debugger_enabled) \
72 pfp::core::PFPConfig::get().set_debugger_flag(debugger_enabled)
73 #define PFP_DEBUGGER_ENABLED \
74 pfp::core::PFPConfig::get().debugger_flag_status()
87 void SetConfigFilePath(std::string path);
88 std::string getConfigFilePath()
const;
89 void SetOutputDirPath(std::string path);
90 std::string getOutputDirPath()
const;
92 #define VERBOSITY_LEVELS_LINE_MARKER __LINE__
93 #define VERBOSITY_LEVELS_FILE_MARKER __FILE__
101 PROFILE_LEVELS = debug + 1
108 std::vector<std::string> verbositylevels {
109 "normal",
"minimal",
"p4profile",
"profile",
"debugger",
"debug"};
117 void set_verbose_level(PFPConfig::verbosity);
118 void set_verbose_level(std::string verbosity_level);
120 void set_command_line_arg_vector(std::vector<std::string> & v);
121 std::string & get_command_line_arg(std::string key);
122 void set_debugger_flag(
bool flag_value);
123 bool debugger_flag_status();
141 std::string ConfigFilePath;
142 std::string OutputDirPath;
143 std::map<std::string, std::string> configMap;
144 std::map<std::string, std::string> argMap;
146 std::map<std::string, uint64_t> verbosity_levels_map;
151 #endif // CORE_PFPCONFIG_H_
const verbosity get_verbose_level()
Pop the currently running parameter values PFPConfig only allows the NPU to call simulation complete ...
Definition: PFPConfig.cpp:70
Definition: PFPConfig.h:79
PacketBase.h.
Definition: ConfigurationParameters.cpp:36