示例#1
0
文件: grid.cpp 项目: alinelena/aten
Grid::GridType Grid::gridType(QString s, bool reportError)
{
	Grid::GridType gt = (Grid::GridType) enumSearch("grid type", Grid::nGridTypes, GridTypeKeywords, s, reportError);
	if ((gt == Grid::nGridTypes) && reportError) enumPrintValid(Grid::nGridTypes,GridTypeKeywords);
	return gt;
}
示例#2
0
ElementMap::ZMapType ElementMap::zMapType(const char* s, bool reportError)
{
	ElementMap::ZMapType zm = (ElementMap::ZMapType) enumSearch("element mapping style", ElementMap::nZMapTypes, ZMapTypeKeywords, s);
	if ((zm == nZMapTypes) && reportError) enumPrintValid(ElementMap::nZMapTypes, ZMapTypeKeywords);
	return zm;
}