17 #ifndef DEFAULTCONFIGURATIONDELTA_HPP_ 
   18 #define DEFAULTCONFIGURATIONDELTA_HPP_ 
   22 #ifdef KAA_USE_CONFIGURATION 
   34 class DefaultConfigurationDelta: 
public IConfigurationDelta {
 
   40     DefaultConfigurationDelta() : handlerId_(0) {}
 
   46     DefaultConfigurationDelta(
const DeltaHandlerId& handlerId)
 
   47         : handlerId_(handlerId) {}
 
   53     virtual DeltaHandlerId getHandlerId() {
 
   62     virtual bool hasChanged(
const std::string& field) {
 
   63         return (deltaTypesStorage_.find(field) != deltaTypesStorage_.end());
 
   71     virtual DeltaTypePtr getDeltaType(
const std::string& field);
 
   77     virtual std::string toString() 
const;
 
   82     void updateFieldDeltaType(
const std::string& field, DeltaTypePtr type) {
 
   83         deltaTypesStorage_[field] = type;
 
   87     DeltaHandlerId                        handlerId_;
 
   88     std::map<std::string, DeltaTypePtr>   deltaTypesStorage_;
 
   91 inline DeltaTypePtr DefaultConfigurationDelta::getDeltaType(
const std::string& field)
 
   93     auto it = deltaTypesStorage_.find(field);
 
   94     if (it != deltaTypesStorage_.end()) {
 
   98     DeltaTypePtr deltaPtr;
 
  102 inline std::string DefaultConfigurationDelta::toString()
 const 
  104     std::stringstream ss;
 
  106     for (
auto it = deltaTypesStorage_.begin(); it != deltaTypesStorage_.end();) {
 
  107         ss << 
"{ \"" << it->first << 
"\": " << it->second->toString() <<
" }";
 
  108         if (++it != deltaTypesStorage_.end()) {