81 lines
2.4 KiB
C++
81 lines
2.4 KiB
C++
// --------------------------------------------------------------------------------------------------------------------
|
|
/// \file temperature.h
|
|
/// \brief File description
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
//
|
|
// vbchaos software design
|
|
//
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
/// $Revision: $
|
|
/// $Author: $
|
|
/// $Date: $
|
|
// (c) 2023 vbchaos
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
#ifndef MAIN_INC_TEMPERATURE_H_
|
|
#define MAIN_INC_TEMPERATURE_H_
|
|
|
|
/**
|
|
* temperature implementation
|
|
* \defgroup temperature
|
|
* \brief {group_description}
|
|
* \addtogroup {Layer}
|
|
*
|
|
* Detailed description
|
|
* @{
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
// Include files
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
// CompilerIncludes
|
|
// All include files that are provided by the compiler directly
|
|
#include <string>
|
|
#include <list>
|
|
|
|
|
|
|
|
// ProjectIncludes
|
|
// All include files that are provided by the project
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
// Constant and macro definitions
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
// Type definitions.
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
// Function declarations
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
using namespace std;
|
|
|
|
class Temperature
|
|
{
|
|
public:
|
|
Temperature(void);
|
|
|
|
void generateWordlist(int temperature, list<string>* wordlist);
|
|
|
|
void calculateRGB(int temperature, uint8_t* red, uint8_t* green, uint8_t* blue);
|
|
|
|
private:
|
|
int minTemperature;
|
|
int maxTemperature;
|
|
};
|
|
|
|
|
|
/** @} */
|
|
|
|
#endif /* MAIN_INC_TEMPERATURE_H_ */
|