nidas  v1.2-1520
Public Member Functions | List of all members
nidas::core::Dictionary Class Referenceabstract

Interface for a Dictionary class, which can return a string value for a string token name. More...

#include <Dictionary.h>

Inheritance diagram for nidas::core::Dictionary:
Inheritance graph
[legend]

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). More...
 

Detailed Description

Interface for a Dictionary class, which can return a string value for a string token name.

Constructor & Destructor Documentation

virtual nidas::core::Dictionary::~Dictionary ( )
inlinevirtual

Member Function Documentation

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).

Referenced by nidas::core::Site::expandString(), nidas::core::DSMConfig::expandString(), nidas::core::Project::expandString(), and nidas::core::DSMSensor::expandString().

virtual bool nidas::core::Dictionary::getTokenValue ( const std::string &  token,
std::string &  value 
) const
pure virtual

The documentation for this class was generated from the following files: