nidas v1.2.3
|
Interface for a Dictionary class, which can return a string value for a string token name. More...
#include <Dictionary.h>
Public Member Functions | |
virtual | ~Dictionary () |
virtual bool | getTokenValue (const std::string &token, std::string &value) const =0 |
std::string | expandString (const std::string &input) const |
Utility function that scans a string for tokens like ${XXXX}, or $XXX followed by any characters from ".$/", and replaces them with what is returned by the virtual method getTokenValue(token,value). | |
Interface for a Dictionary class, which can return a string value for a string token name.
|
inlinevirtual |
string Dictionary::expandString | ( | const std::string & | input | ) | const |
Utility function that scans a string for tokens like ${XXXX}, or $XXX followed by any characters from ".$/", and replaces them with what is returned by the virtual method getTokenValue(token,value).
References nidas::core::getSample(), getTokenValue(), and VLOG.
Referenced by nidas::core::DSMConfig::expandString(), nidas::core::DSMSensor::expandString(), nidas::core::Project::expandString(), and nidas::core::Site::expandString().
|
pure virtual |
Implemented in nidas::core::DSMConfig::MyDictionary, nidas::core::DSMSensor::MyDictionary, nidas::core::Project::MyDictionary, and nidas::core::Site::MyDictionary.
Referenced by expandString().