Example #1
0
/** 
* A safe member function to return the given variable.
*
* @param key Variable name (e.g. "$DIMASZ")
* @param def Default value
* 
* @return value of variable or default value if the given variable
*         doesn't exist.
*/
int RS_Entity::getGraphicVariableInt(const RS_String& key, int def){
	RS_Graphic* graphic = getGraphic();
	int ret=def;
	if (graphic!=NULL)
	{
		ret = graphic->getGraphicVariableInt(key, def);
	}
	return ret;
}