Skip to content
Snippets Groups Projects
Commit fdad4ee6 authored by Johannes Michael Magnus Leonhard Faust's avatar Johannes Michael Magnus Leonhard Faust
Browse files

Merge branch 'ft_to_int' into 'master'

Added to_int for EsoType

See merge request avt.svt/public/genericeso!1
parents b2ce81cd 43907f46
Branches
No related tags found
1 merge request!1Added to_int for EsoType
......@@ -57,6 +57,29 @@ inline std::string to_string(EsoType esoType)
return result;
}
/**
* @brief to_int converts EsoType to int
* @param[in] esoType
* @return index of EsoType as int
*/
inline int to_int(EsoType esoType)
{
int result;
switch (esoType)
{
case EsoType::JADE:
result= 0;
break;
case EsoType::JADE2:
result= 1;
break;
case EsoType::FMI:
result= 2;
break;
}
return result;
}
inline std::ostream& operator<<(std::ostream& out, const EsoType& esoType) {
out << to_string(esoType);
return out;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment