Definition of the OMSimCommandArgsTable singleton class, which controls user args.
More...
Go to the source code of this file.
◆ WRITE_TO_JSON_IF_TYPE_MATCHES
#define WRITE_TO_JSON_IF_TYPE_MATCHES |
( |
|
VARIANT, |
|
|
|
TYPE |
|
) |
| |
Value: if (type == typeid(TYPE)) \
{ \
outputFile << "\t\"" << kv.first << "\": "; \
if (typeid(TYPE) == typeid(std::string)) \
{ \
outputFile << "\"" << boost::any_cast<TYPE>(VARIANT) << "\""; \
} \
else \
{ \
outputFile << boost::any_cast<TYPE>(VARIANT); \
} \
}
- Note
- This macro is used inside the
OMSimCommandArgsTable::writeToJson()
method.