Commit f015fb7c authored by John Chodera (MSKCC)'s avatar John Chodera (MSKCC)
Browse files

getBoolProperty() now returns bool, instead of it.

parent 8a916db3
......@@ -158,7 +158,7 @@ public:
*
* @param name the name of the property to get
*/
int getBoolProperty(const std::string& name) const;
bool getBoolProperty(const std::string& name) const;
/**
* Get the property with a particular name, specified as a bool. If there is no property with
* the specified name, a default value is returned instead.
......@@ -166,7 +166,7 @@ public:
* @param name the name of the property to get
* @param defaultValue the value to return if the specified property does not exist
*/
int getBoolProperty(const std::string& name, bool defaultValue) const;
bool getBoolProperty(const std::string& name, bool defaultValue) const;
/**
* Set the value of a property, specified as a bool.
*
......
......@@ -122,7 +122,7 @@ SerializationNode& SerializationNode::setIntProperty(const string& name, int val
}
int SerializationNode::getBoolProperty(const string& name) const {
bool SerializationNode::getBoolProperty(const string& name) const {
map<string, string>::const_iterator iter = properties.find(name);
if (iter == properties.end())
throw OpenMMException("Unknown property '"+name+"' in node '"+getName()+"'");
......@@ -131,7 +131,7 @@ int SerializationNode::getBoolProperty(const string& name) const {
return value;
}
int SerializationNode::getBoolProperty(const string& name, bool defaultValue) const {
bool SerializationNode::getBoolProperty(const string& name, bool defaultValue) const {
map<string, string>::const_iterator iter = properties.find(name);
if (iter == properties.end())
return defaultValue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment