InterfaceData.hpp
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include <vector>
11 #include <map>
12 
13 namespace eproperty {
14  class Property;
15  class Ref;
19  class InterfaceData {
20  private:
21  std::vector<eproperty::Property*> m_list;
22  public:
26  InterfaceData();
30  virtual ~InterfaceData();
36  void add(Property* _pointerOnProperty);
41  void clean();
49  bool set(const std::string& _property, const std::string& _value);
55  std::string get(const std::string& _property) const;
60  void display(bool _changeOnly = false) const;
66  std::map<std::string, std::string> getAll(bool _notIfDefault=true) const;
67  public:
72  size_t size() const;
78  eproperty::Property* getRaw(const size_t& _id) const;
84  eproperty::Property* getRaw(const std::string _name) const;
85  };
86 }
87 
Base of the property With all generic element needed.
Definition: Property.hpp:23
std::map< std::string, std::string > getAll(bool _notIfDefault=true) const
Get All the property configuration:
Interface data to collect the property list (for abstarction connection)
Definition: InterfaceData.hpp:19
size_t size() const
Get count of propertys.
eproperty::Property * getRaw(const size_t &_id) const
Get name of a propertys.
InterfaceData()
Constructor.
void clean()
Remove all the property reference in this class.
void display(bool _changeOnly=false) const
Display all the property value with there name.
void add(Property *_pointerOnProperty)
Register a property class pointer in the List of propertys.
virtual ~InterfaceData()
Destructor.
eproperty global interface for all property implementation
Definition: Interface.hpp:14