1 #include "FwdTrackerConfig.h"
3 const std::string FwdTrackerConfig::valDNE = std::string(
"<DNE/>" );
4 const std::string FwdTrackerConfig::pathDelim = std::string(
"." );
5 const std::string FwdTrackerConfig::attrDelim = std::string(
":" );
6 std::stringstream FwdTrackerConfig::sstr;
39 std::string v =
"false";
61 return ( mNodes.at( path ) );
93 return static_cast<bool>(convert<int>( str ));
bool exists(std::string path) const
returns whether or not a path exist Either node or attribute - used to determine if default value is ...
T convert(std::string s) const
Generic conversion of type T from string override this for special conversions.
void set(std::string path, T v)
Writes a value of type T to the map Uses convertTo<T> to convert type T to a string rep...
T get(std::string path, T dv) const
template function for getting any type that can be converted from string via stringstream ...
static void canonize(std::string &path)
Returns a path in its cannonical form.