|
CCSDSPack
C++ Library for CCSDS Space Packet manipulation. i.e. generation, extraction, analisys and more
|
Go to the source code of this file.
Enumerations | |
| enum | ErrorCodeExec : std::uint8_t { ARG_PARSE_ERROR = 14 , CONFIG_MISSING_PARAMETER = 15 , INVALID_INPUT_DATA = 16 , OTHER = 17 , PACKET_VALIDATION_FAILED = 18 } |
Functions | |
| CCSDS::ResultBool | parseArguments (int argc, char *argv[], std::unordered_map< std::string, std::string > &allowedMap, std::unordered_map< std::string, std::string > &outArgs, const std::set< std::string > &booleanArgs) |
| Parses the input arguments with defined values returns an unordered map with given keys and input values. | |
| void | customConsole (const std::string &appName, const std::string &message, const std::string &logLevel="INFO") |
| Prints log to console adding various information about. | |
| enum ErrorCodeExec : std::uint8_t |
| Enumerator | |
|---|---|
| ARG_PARSE_ERROR | Error Parsing argument. |
| CONFIG_MISSING_PARAMETER | |
| INVALID_INPUT_DATA | |
| OTHER | |
| PACKET_VALIDATION_FAILED | |
Definition at line 11 of file exec_utils.h.
| void customConsole | ( | const std::string & | appName, |
| const std::string & | message, | ||
| const std::string & | logLevel = "INFO" |
||
| ) |
Prints log to console adding various information about.
| appName | |
| message | |
| logLevel |
Definition at line 51 of file exec_utils.cpp.
| CCSDS::ResultBool parseArguments | ( | int | argc, |
| char * | argv[], | ||
| std::unordered_map< std::string, std::string > & | allowedMap, | ||
| std::unordered_map< std::string, std::string > & | outArgs, | ||
| const std::set< std::string > & | booleanArgs | ||
| ) |
Parses the input arguments with defined values returns an unordered map with given keys and input values.
boolean Args do not require values associated with them.
| argc | |
| argv | |
| allowedMap | |
| outArgs | |
| booleanArgs |