cLamps.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #pragma once
  2. //////////////////////////////////////////////////////////////////////////////////////
  3. //////////////////////////////////////////
  4. /////////////////
  5. //
  6. // Global Include Files
  7. //
  8. //
  9. #include <iostream>
  10. #include <map>
  11. #include <vector>
  12. #include "sLampInterface.h"
  13. class cLampsInterface
  14. {
  15. private:
  16. public:
  17. // std::map<std::string, std::vector<struct s_LampInterface>> m_PresetsName;
  18. // map [LampName][PresetName]
  19. std::map<std::string, std::map<std::string, struct s_LampInterface>> m_Presets;
  20. struct s_LampInterface m_lampsetting;
  21. static cLampsInterface *_Instance;
  22. const char *m_lampName = "L1";
  23. const char *m_sceneName = "P1";
  24. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  25. *
  26. */
  27. cLampsInterface();
  28. void init() {};
  29. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  30. *
  31. */
  32. struct s_LampInterface *addLampPresetStruct(const char *lampName);
  33. void setActivePresetScene(const char *scene) { m_sceneName = scene; };
  34. const char *getActivePresetScene();
  35. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  36. *
  37. */
  38. struct s_LampInterface *getActivePresetData(const char *lampName);
  39. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  40. *
  41. */
  42. void printPreset();
  43. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  44. *
  45. */
  46. private:
  47. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  48. *
  49. */
  50. }; // end class cLamps