yasmine
transition_kind.hpp
Go to the documentation of this file.
1 // //
3 // This file is part of the Seadex yasmine ecosystem (http://yasmine.seadex.de). //
4 // Copyright (C) 2016-2017 Seadex GmbH //
5 // //
6 // Licensing information is available in the folder "license" which is part of this distribution. //
7 // The same information is available on the www @ http://yasmine.seadex.de/Licenses.html. //
8 // //
10 
11 
12 #ifndef TRANSITION_KIND_BA4883BC_C6FF_4F55_BA40_3FF8C973631D
13 #define TRANSITION_KIND_BA4883BC_C6FF_4F55_BA40_3FF8C973631D
14 
15 
16 #include <string>
17 
18 
19 namespace sxy
20 {
21 
22 #ifndef SX_CPP03_BOOST
23 
24 
25  enum class transition_kind
26  {
27  EXTERNAL = 0, INTERNAL = 1, LOCAL = 2
28  };
29 
30 
31 #else
32 
33 
34  struct transition_kind
35  {
36 
37  enum inner
38  {
39  EXTERNAL = 0, INTERNAL = 1, LOCAL = 2
40  };
41 
42 
43  // cppcheck-suppress noExplicitConstructor
44  transition_kind() : value_( EXTERNAL )
45  {
46  // Nothing to do...
47  }
48 
49 
50  // cppcheck-suppress noExplicitConstructor
51  transition_kind( const inner _value ) : value_( _value )
52  {
53  // Nothing to do...
54  }
55 
56 
57  // cppcheck-suppress functionConst
58  operator inner()
59  {
60  return ( value_ );
61  }
62 
63 
64  inner value_;
65 
66  };
67 
68 #endif
69 
70 
71 std::string to_string( const transition_kind _kind );
72 
73 
74 #ifdef SX_CPP03_BOOST
75 
76 
77 bool operator==( const sxy::transition_kind& _lhs, const sxy::transition_kind::inner _rhs );
78 bool operator==( const sxy::transition_kind::inner _lhs, const sxy::transition_kind& _rhs );
79 bool operator<( const sxy::transition_kind _lhs, const sxy::transition_kind _rhs );
80 
81 
82 
83 #endif
84 
85 }
86 
87 
88 #endif
std::string to_string(const transition_kind _kind)
Definition: transition_kind.cpp:19
Definition: adapter_cpp11.hpp:21
transition_kind
Definition: transition_kind.hpp:25