#include <macro.h>
|
bool | replaceXY (std::string &r) const |
|
std::string | replaceMacro (const std::string &s, int job_cnt, int alg_cnt) const |
|
std::string | replace (const std::string &s, const std::string &key, const std::string &val, Type type=Type::PRE) const |
| RegEx replace. More...
|
|
|
const std::map< std::string, std::pair< std::string, bool > > | _constants |
|
◆ Type
Enumerator |
---|
PRE | |
USER | |
USER_PRIORITY | |
◆ constantStr()
std::string Macro::constantStr |
( |
const std::pair< std::string, bool > & |
v | ) |
const |
|
inlineprivate |
◆ replace()
std::string Macro::replace |
( |
const std::string & |
s, |
|
|
const std::string & |
key, |
|
|
const std::string & |
val, |
|
|
Type |
type = Type::PRE |
|
) |
| const |
|
inline |
RegEx replace.
During replacing, log information will be written.
- Parameters
-
s | The original string. |
key | The key to be replaced. |
val | The value to replace the key. |
- Returns
- (std::string) The replaced string.
◆ replaceMacro()
std::string Macro::replaceMacro |
( |
const std::string & |
s, |
|
|
int |
job_cnt, |
|
|
int |
alg_cnt |
|
) |
| const |
◆ replaceXY()
bool Macro::replaceXY |
( |
std::string & |
r | ) |
const |
◆ typeName()
std::string Macro::typeName |
( |
Type |
type | ) |
const |
|
inlineprivatenoexcept |
Get the name of Type.
- Parameters
-
type | The macro type (predefined, user defined or user defined with priority). |
- Returns
- (std::string) The name of Type.
◆ _B
◆ _cascaded_channel
std::string Macro::_cascaded_channel |
◆ _constants
const std::map<std::string, std::pair<std::string, bool> > Macro::_constants |
|
private |
◆ _G
◆ _N
◆ alg_custom
std::vector<std::vector<std::vector<std::pair<std::string, std::string> > > > Macro::alg_custom |
◆ alg_names
std::vector<std::vector<std::string> > Macro::alg_names |
◆ alg_num
std::vector<unsigned> Macro::alg_num |
◆ alg_params
std::vector<std::vector<std::string> > Macro::alg_params |
◆ beamforming
std::map<std::string, std::string> Macro::beamforming |
◆ custom
std::map<std::string, std::string> Macro::custom |
◆ custom_in_alg
std::map<std::string, std::string> Macro::custom_in_alg |
◆ custom_priority
std::map<std::string, std::string> Macro::custom_priority |
◆ job_num
unsigned Macro::job_num = 0 |
◆ lang
The documentation for this struct was generated from the following files: