// This file is a part of nla3d project. For information about authors and// licensing go to project's repository on github:// https://github.com/dmitryikh/nla3d #include "FEComponent.h"namespacenla3d{constchar*constFEComponent::labelsOfComponent[]={"NOT DEFINED","ELEM","NODE","LAST"};FEComponent::FEComponent(){type=NOT_DEFINED;name="";}FEComponent::~FEComponent(){list.clear();}FEComponent::typeOfComponentFEComponent::typeFromString(conststd::string&typeName){for(size_ti=1;i<LAST;i++){if(typeName.compare(labelsOfComponent[i])==0){returnstatic_cast<typeOfComponent>(i);}}LOG(ERROR)<<"Can't find FEComponent::type by name "<<typeName;returnNOT_DEFINED;}}// namespace nla3d