Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
genericeso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AVT-SVT
public
genericeso
Commits
fdad4ee6
Commit
fdad4ee6
authored
5 years ago
by
Johannes Michael Magnus Leonhard Faust
Browse files
Options
Downloads
Plain Diff
Merge branch 'ft_to_int' into 'master'
Added to_int for EsoType See merge request avt.svt/public/genericeso!1
parents
b2ce81cd
43907f46
Branches
Branches containing commit
No related tags found
1 merge request
!1
Added to_int for EsoType
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inc/EsoTypes.hpp
+23
-0
23 additions, 0 deletions
inc/EsoTypes.hpp
with
23 additions
and
0 deletions
inc/EsoTypes.hpp
+
23
−
0
View file @
fdad4ee6
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment