Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
OSExpander Class Reference

#include <elm/io/VarExpander.h>

+ Inheritance diagram for OSExpander:

Protected Member Functions

string resolve (string name, bool &record) override
 

Additional Inherited Members

- Public Member Functions inherited from VarExpander
 VarExpander ()
 
 VarExpander (OutStream &out)
 
char escape () const
 
VarExpanderescape (char e)
 
VarExpanderresetBrace ()
 
VarExpanderbrace (char o, char c)
 
string expand (string s)
 
int write (const char *buffer, int size) override
 
int write (char byte) override
 
int flush (void) override
 
CString lastErrorMessage (void) override
 
bool supportsANSI () const override
 
- Public Member Functions inherited from OutStream
virtual ~OutStream (void)
 
- Static Public Attributes inherited from OutStream
static OutStreamnull = _null
 

Detailed Description

Variable expander replacing symbols by OS variables.

Member Function Documentation

◆ resolve()

string resolve ( string  name,
bool record 
)
overrideprotectedvirtual

This function has to be overridden to provide symbol definition. The default implementation just returns the empty string.

Parameters
nameSymbol name to look for.
recordIf set to false, the symbol will not be cached.
Returns
Symbol value corresponding to the given symbol name.

Reimplemented from VarExpander.


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