1 #ifndef GDE_ATTRIBUTES_SERVICE_HPP
2 #define GDE_ATTRIBUTES_SERVICE_HPP
4 #include "Attribute.hpp"
5 #include "AttributeGroup.hpp"
6 #include "GDESession.hpp"
13 class AttributesService {
14 friend class GDESession;
17 const Attribute createAttribute(const std::string& name, const std::string& type, const std::string& value, int groupId, bool mandatory);
18 bool deleteAttribute(const Attribute&);
19 const Attribute readAttribute(int);
21 const AttributeGroup createAttributeGroup(const AttributeGroup&);
22 bool deleteAttributeGroup(const AttributeGroup&);
23 const AttributeGroup updateAttributeGroup(const AttributeGroup&);
24 const AttributeGroup readAttributeGroup(int);
27 AttributesService(const GDESession& session) : _session(session) {}
28 ~AttributesService() {}
29 AttributesService(const AttributesService&); // non copyable
30 AttributesService& operator=(const AttributesService&); // non copyable
33 static std::string _servletName;
34 const GDESession& _session;