Better defaults management, logger class implementation with logging levels, and write to file configuration implementation
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @file dpm_interface_helpers.hpp
|
||||
* @file dpm_interface_helpers.hpp
|
||||
* @brief Helper functions for DPM command-line interface
|
||||
*
|
||||
* Provides utility functions for command-line argument parsing and
|
||||
@@ -34,18 +34,17 @@
|
||||
#include <iostream>
|
||||
#include <getopt.h>
|
||||
|
||||
#include "Logger.hpp"
|
||||
#include "LoggingLevels.hpp"
|
||||
#include "DPMDefaults.hpp"
|
||||
|
||||
// data structure for supplied arguments
|
||||
struct CommandArgs {
|
||||
std::string module_path;
|
||||
std::string config_dir;
|
||||
std::string module_name;
|
||||
std::string command; // All arguments combined into a single command string
|
||||
std::string command;
|
||||
};
|
||||
|
||||
// parse dpm cli arguments into a serialized structure
|
||||
CommandArgs parse_args( int argc, char * argv[] );
|
||||
|
||||
// default system paths
|
||||
struct DPMDefaultPaths {
|
||||
static const std::string MODULE_PATH;
|
||||
static const std::string CONFIG_DIR;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user