DBBaseContext :: setContextVariables - Set context variables
The function is called from property handle (Property::setContextVariables()) in order to change the state of the property and/or type context related to the property. In order to receive context parameters from property handle or another context, this function has to be overloaded in a specialized property and/or type structure context class. Otherwise, the function does not have any effect.
Implementation details
The overloaded function may obtain context variables from the string value passed in sString.The internal syntax for defining values within the string depends on the application. A simple way extracting values from a string is passing the string as OIFString, in which case data can easily be extracted.
void MyContext::setContextVariables(odaba::String sString) {
// string: "name='Paul'; address={city='Berlin'; country='Germany'}"
OIFString oif(sString);
name = oif.name("name"); // is defined as: Value name;
city = oif.value("address.city"); // is defined as: Value city;
}
- sString - String value