mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-23 00:20:34 +00:00
Add possibility to override parameters in InMemoryConfiguration class
This commit is contained in:
parent
d6cb8aa2c0
commit
db5145f1e7
src/core/receiver
@ -117,6 +117,13 @@ void InMemoryConfiguration::set_property(std::string property_name, std::string
|
||||
}
|
||||
|
||||
|
||||
void InMemoryConfiguration::supersede_property(std::string property_name, std::string value)
|
||||
{
|
||||
properties_.erase(property_name);
|
||||
properties_.insert(std::make_pair(property_name, value));
|
||||
}
|
||||
|
||||
|
||||
bool InMemoryConfiguration::is_present(std::string property_name)
|
||||
{
|
||||
return (properties_.find(property_name) != properties_.end());
|
||||
|
@ -63,6 +63,7 @@ public:
|
||||
float property(std::string property_name, float default_value);
|
||||
double property(std::string property_name, double default_value);
|
||||
void set_property(std::string property_name, std::string value);
|
||||
void supersede_property(std::string property_name, std::string value);
|
||||
bool is_present(std::string property_name);
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user