![]() |
Display_Lib_RPI 2.3.0
A C++ Library to connect electronic displays to Linux single board computers.
|
A file to hold some utilities(maths, config, file logging etc) , included in common_data_RDL. More...
#include "utility_data_RDL.hpp"
Namespaces | |
namespace | rdlib_maths |
Name space for maths related utilities. | |
namespace | rdlib_log |
Name space for log file related utilities. | |
namespace | rdlib_config |
Name space for config file related utilities. | |
Functions | |
int | rdlib_maths::mapValue (int x, int in_min, int in_max, int out_min, int out_max) |
Maps a value from one range to another using linear interpolation. This function takes an input value within a specified range and maps it to a corresponding value in a different output range using std::lerp. | |
float | rdlib_maths::cosineFromDegrees (float angle) |
Computes the cosine of an angle given in degrees. This function converts the input angle from degrees to radians and then calculates the cosine of that angle using the standard C++ cos function. | |
float | rdlib_maths::sineFromDegrees (float angle) |
Computes the sine of an angle given in degrees. This function converts the input angle from degrees to radians and then calculates the sine of that angle using the standard C++ sin function. | |
std::ostream & | rdlib_log::operator<< (std::ostream &os, const std::source_location &location) |
Overloaded stream insertion operator for std::source_location. | |
void | rdlib_config::loadConfig () |
This function loads the config file into program. | |
bool | rdlib_config::isLoggingEnabled () |
retrieve the logging enabled setting , true for logging on | |
bool | rdlib_config::isDebugEnabled () |
retrieve the debug enabled setting , true for debug on | |
std::string | rdlib_config::getErrorLogPath () |
retrieve the log file path setting | |
Variables | |
bool | rdlib_config::LOGGING_ENABLED = false |
bool | rdlib_config::DEBUG_ENABLED = false |
std::string | rdlib_config::ERROR_LOG_PATH = "/tmp/error.log" |
A file to hold some utilities(maths, config, file logging etc) , included in common_data_RDL.
Implements the operator<< function for std::source_location. This file provides an overloaded stream insertion operator to format and output source location information, aiding in debugging and logging. Implements the configuration file functionality