CCSDSPack
C++ Library for CCSDS Space Packet manipulation. i.e. generation, extraction, analisys and more
Loading...
Searching...
No Matches
exec_utils.h
Go to the documentation of this file.
1//
2// Created by dev on 5/13/25.
3//
4
5#ifndef EXEC_UTILS_H
6#define EXEC_UTILS_H
7#include <set>
8#include "CCSDSResult.h"
9#include <unordered_map>
10
18
30CCSDS::ResultBool parseArguments(int argc, char *argv[],
31 std::unordered_map<std::string, std::string> &allowedMap,
32 std::unordered_map<std::string, std::string> &outArgs,
33 const std::set<std::string> &booleanArgs);
34
42void customConsole(const std::string& appName, const std::string& message, const std::string& logLevel = "INFO");
43#endif //EXEC_UTILS_H
Encapsulates a result that can hold either a value or an Error.
Definition CCSDSResult.h:82
void customConsole(const std::string &appName, const std::string &message, const std::string &logLevel="INFO")
Prints log to console adding various information about.
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 val...
ErrorCodeExec
Definition exec_utils.h:11
@ CONFIG_MISSING_PARAMETER
Definition exec_utils.h:13
@ PACKET_VALIDATION_FAILED
Definition exec_utils.h:16
@ ARG_PARSE_ERROR
Error Parsing argument.
Definition exec_utils.h:12
@ INVALID_INPUT_DATA
Definition exec_utils.h:14
@ OTHER
Definition exec_utils.h:15