SyDEVS  v0.6.7
Multiscale Simulation and Systems Modeling Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
data_goal.h
Go to the documentation of this file.
1 #pragma once
2 #ifndef SYDEVS_SYSTEMS_DATA_GOAL_H_
3 #define SYDEVS_SYSTEMS_DATA_GOAL_H_
4 
6 #include <string>
7 
8 namespace sydevs {
9 namespace systems {
10 
11 
15 enum class data_goal : int8 {
16  input,
17  output,
18 };
19 
20 
21 const auto input = data_goal::input;
22 const auto output = data_goal::output;
23 
24 
25 const std::string& string_from_data_goal(data_goal dgoal);
26 
27 data_goal data_goal_from_string(const std::string& dgoal_string);
28 
29 
33 inline constexpr int64 int64_from_data_goal(data_goal dgoal)
34 {
35  return static_cast<std::underlying_type<data_goal>::type>(dgoal);
36 }
37 
38 
39 } // namespace
40 } // namespace
41 
42 #endif
const auto output
Equivalent to data_goal::output.
Definition: data_goal.h:22
const auto input
Equivalent to data_goal::input.
Definition: data_goal.h:21
Indicates output data.
constexpr int64 int64_from_data_goal(data_goal dgoal)
Returns the integer representation of the dgoal value.
Definition: data_goal.h:33
const std::string & string_from_data_goal(data_goal dgoal)
Returns the std::string representation of the dgoal value.
Definition: data_goal.cpp:21
Indicates input data.
data_goal
Indicates whether data is meant to serve as input or output.
Definition: data_goal.h:15
data_goal data_goal_from_string(const std::string &dgoal_string)
Returns the data_goal value indicated by dmode_string.
Definition: data_goal.cpp:27
int64_t int64
Definition: number_types.h:14
int8_t int8
Definition: number_types.h:11