YggdrasilWM  0.1.1
A tiny window manager coded in C++
ConfigDataGroup.hpp
Go to the documentation of this file.
1 
27 #ifndef YGGDRASILWM_CONFIGDATAGROUP_HPP
28 #define YGGDRASILWM_CONFIGDATAGROUP_HPP
29 #include "ConfigDataBase.hpp"
30 #include "json/json.h"
31 #include <string>
41 public:
43  ~ConfigDataGroup() override = default;
51  void configInit(const Json::Value& root) override;
52  Json::Value configSave() override;
53  [[nodiscard]] const std::string & getGroupName() const;
54  [[nodiscard]] const std::string & getGroupLayout() const;
55  [[nodiscard]] unsigned long getGroupInactiveColor() const;
56  [[nodiscard]] unsigned long getGroupActiveColor() const;
57  [[nodiscard]] int getGroupBorderWidth() const;
58  [[nodiscard]] int getGroupGap() const;
59 
60 private:
61  std::string groupName_;
62  std::string groupLayout_;
63  unsigned long groupInactiveColor_{};
64  unsigned long groupActiveColor_{};
66  int groupGap_{};
67 };
68 #endif //YGGDRASILWM_CONFIGDATAGROUP_HPP
ConfigDataBase class header. This class is an interface for the ConfigData classes.
ConfigDataBase class This class is an interface for the ConfigData classes This is a pure virtual cla...
Definition: ConfigDataBase.hpp:38
ConfigDataGroup class Store the configuration for a group from the config file. the logic of groups i...
Definition: ConfigDataGroup.hpp:40
void configInit(const Json::Value &root) override
Initialize the configuration for a group from the config file. must be called after instanciating the...
Definition: ConfigDataGroup.cpp:41
int groupBorderSize_
Definition: ConfigDataGroup.hpp:65
unsigned long groupActiveColor_
Definition: ConfigDataGroup.hpp:64
std::string groupName_
Definition: ConfigDataGroup.hpp:61
unsigned long getGroupInactiveColor() const
Definition: ConfigDataGroup.cpp:93
~ConfigDataGroup() override=default
int getGroupBorderWidth() const
Definition: ConfigDataGroup.cpp:95
int getGroupGap() const
Definition: ConfigDataGroup.cpp:96
unsigned long groupInactiveColor_
Definition: ConfigDataGroup.hpp:63
std::string groupLayout_
Definition: ConfigDataGroup.hpp:62
const std::string & getGroupName() const
Definition: ConfigDataGroup.cpp:91
int groupGap_
Definition: ConfigDataGroup.hpp:66
const std::string & getGroupLayout() const
Definition: ConfigDataGroup.cpp:92
unsigned long getGroupActiveColor() const
Definition: ConfigDataGroup.cpp:94
ConfigDataGroup()
Definition: ConfigDataGroup.cpp:33
Json::Value configSave() override
Build a Json::Value object with the configuration.
Definition: ConfigDataGroup.cpp:88