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// Copyright 2025-2026 ExoSpaceLabs
2// SPDX-License-Identifier: Apache-2.0
3
4#ifndef EXEC_UTILS_H
5#define EXEC_UTILS_H
6#include <set>
7#include "CCSDSResult.h"
8#include <unordered_map>
9
17
29CCSDS::ResultBool parseArguments(int argc, char *argv[],
30 std::unordered_map<std::string, std::string> &allowedMap,
31 std::unordered_map<std::string, std::string> &outArgs,
32 const std::set<std::string> &booleanArgs);
33
41void customConsole(const std::string& appName, const std::string& message, const std::string& logLevel = "INFO");
42#endif //EXEC_UTILS_H
Encapsulates a result that can hold either a value or an Error.
Definition CCSDSResult.h:85
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:10
@ CONFIG_MISSING_PARAMETER
Definition exec_utils.h:12
@ PACKET_VALIDATION_FAILED
Definition exec_utils.h:15
@ ARG_PARSE_ERROR
Error Parsing argument.
Definition exec_utils.h:11
@ INVALID_INPUT_DATA
Definition exec_utils.h:13
@ OTHER
Definition exec_utils.h:14