![]()  | 
  
    Display_Lib_RPI 2.4.2
    
   A C++ Library to connect electronic displays to Linux single board computers. 
   | 
 
A file to hold some utilities(config file , logging etc) , included in common_data_RDL. More...
#include <string>#include <utility>#include <iostream>#include <ostream>#include <sstream>#include <fstream>#include <source_location>#include <chrono>#include <iomanip>#include <ctime>#include <cstdlib>#include <filesystem>#include <cmath>Go to the source code of this file.
Classes | |
| class | rdlib_log::logData< DATA_T > | 
| Exception class template for handling and logging errors.  More... | |
Namespaces | |
| namespace | rdlib_config | 
| Name space for config file related utilities.  | |
| namespace | rdlib_maths | 
| Name space for maths related utilities.  | |
| namespace | rdlib_log | 
| Name space for log file related utilities.  | |
Functions | |
| 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   | |
| 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::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.   | |
| 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.   | |
| uint16_t | rdlib_maths::generateColor (uint8_t value) | 
| This function is designed to return a color in the 16-bit RGB format based on the input value, creating a smooth transition between colors in different stages.   | |
| std::ostream & | rdlib_log::operator<< (std::ostream &os, const std::source_location &location) | 
| Overloaded stream insertion operator for std::source_location.   | |
A file to hold some utilities(config file , logging etc) , included in common_data_RDL.
Defines the logging(logData) class template for error handling with logging support. This file provides a templated exception class that includes error message storage, source location tracking, and optional logging to a file.