31 #ifndef FAMILYSETTINGS_H_ 32 #define FAMILYSETTINGS_H_ 61 void load(
const std::string& filename);
63 PFamilySetting
get(std::string
name);
67 void set(std::string
name,
const std::string &
value);
68 void set(std::string
name, int32_t
value);
69 void set(std::string
name,
const std::vector<char> &
value);
74 int32_t _familyId = -1;
75 std::mutex _settingsMutex;
76 std::map<std::string, PFamilySetting> _settings;
77 std::map<std::string, PPhysicalInterfaceSettings> _physicalInterfaceSettings;
79 void loadFromDatabase();
std::map< std::string, PPhysicalInterfaceSettings > getPhysicalInterfaceSettings()
Definition: FamilySettings.cpp:239
void deleteFromDatabase(std::string name)
Definition: FamilySettings.cpp:225
std::shared_ptr< FamilySetting > PFamilySetting
Definition: FamilySettings.h:56
This is the base library main class.
Definition: BaseLib.h:95
int32_t getNumber(std::string name)
Definition: FamilySettings.cpp:89
void load(const std::string &filename)
Definition: FamilySettings.cpp:243
Definition: BaseLib.cpp:34
FamilySettings(BaseLib::SharedObjects *bl, int32_t familyId)
Definition: FamilySettings.cpp:40
int32_t integerValue
Definition: FamilySettings.h:53
Definition: FamilySettings.h:49
PVariable value
Definition: UiElements.h:217
std::vector< char > getBinary(std::string name)
Definition: FamilySettings.cpp:106
std::vector< char > binaryValue
Definition: FamilySettings.h:54
void dispose()
Definition: FamilySettings.cpp:49
int32_t familyId
Definition: Licensing.h:380
std::shared_ptr< PhysicalInterfaceSettings > PPhysicalInterfaceSettings
Definition: PhysicalInterfaceSettings.h:113
Definition: FamilySettings.h:51
std::string getString(std::string name)
Definition: FamilySettings.cpp:72
std::string name
Definition: UiElements.h:216
virtual ~FamilySettings()
Definition: FamilySettings.cpp:45
std::string stringValue
Definition: FamilySettings.h:52