ESLA

Embeddable Scriting LAnguage

frantz@pangea.stanford.edu

Stanford University, Rock Fracture Project research group

© 2003

LocalStringVarRegistry Class Reference


Detailed Description

This class is similar to StringVarRegistry but works in non-static mode.

Definition at line 41 of file local_string_var_registry.h.

Public Methods

bool bind (const std::string &expression, bool verbose=false)
bool bind (const std::string &name, const std::string &value)
bool rebind (const std::string &name, const std::string &new_value)
std::string resolve (const std::string &name)
bool parse (const std::string &expr, std::string &res)
void dump (std::iostream &os)
std::string extract_name (const std::string &name)


Member Function Documentation

bool LocalStringVarRegistry::bind (  const std::string &    name,
const std::string &    value
) 
 

Register a variable given its name and value pair

bool LocalStringVarRegistry::bind (  const std::string &    expression,
bool    verbose = false
) 
 

Register a variable given an expression

void LocalStringVarRegistry::dump (  std::iostream &    os ) 
 

Print all variable's name and value pair

std::string LocalStringVarRegistry::extract_name (  const std::string &    name ) 
 

bool LocalStringVarRegistry::parse (  const std::string &    expr,
std::string &    res
) 
 

Parse the expression expr, by replacing every variable by its value

bool LocalStringVarRegistry::rebind (  const std::string &    name,
const std::string &    new_value
) 
 

Change a variable value

std::string LocalStringVarRegistry::resolve (  const std::string &    name ) 
 

Retrieve a variable value


Generated on Wed May 14 11:42:33 2003 for Esla-lib by doxygen1.3-rc1