void SetProperties(const USER_PROPERTIES & p) { stat = p.stat; conf = p.conf; }
std::string GetPropertyValue(const std::string & name) const;
+ bool Exists(const std::string & name) const;
USER_PROPERTY_LOGGED<double> cash;
USER_PROPERTY_LOGGED<DIR_TRAFF> up;
return "";
return it->second->ToString();
}
+//-----------------------------------------------------------------------------
+inline
+bool USER_PROPERTIES::Exists(const std::string & name) const
+{
+if (properties.find(name)!=properties.end()) return true;
+return false;
+}
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------