17 #ifndef DEFAULTCONFIGURATIONDELTA_HPP_
18 #define DEFAULTCONFIGURATIONDELTA_HPP_
43 : handlerId_(handlerId) {}
59 return (deltaTypesStorage_.find(field) != deltaTypesStorage_.end());
73 virtual std::string
toString()
const;
79 deltaTypesStorage_[field] = type;
84 std::map<std::string, DeltaTypePtr> deltaTypesStorage_;
89 auto it = deltaTypesStorage_.find(field);
90 if (it != deltaTypesStorage_.end()) {
100 std::stringstream ss;
102 for (
auto it = deltaTypesStorage_.begin(); it != deltaTypesStorage_.end();) {
103 ss <<
"{ \"" << it->first <<
"\": " << it->second->toString() <<
" }";
104 if (++it != deltaTypesStorage_.end()) {
virtual DeltaHandlerId getHandlerId()
DefaultConfigurationDelta(const DeltaHandlerId &handlerId)
void updateFieldDeltaType(const std::string &field, DeltaTypePtr type)
virtual bool hasChanged(const std::string &field)
virtual std::string toString() const
DefaultConfigurationDelta()
boost::shared_ptr< IDeltaType > DeltaTypePtr
virtual DeltaTypePtr getDeltaType(const std::string &field)