Majoranapp
A C++ library for studying MZM in non-interacting systems
GammaASCII.hpp
Go to the documentation of this file.
1 #ifndef INFO_GAMMAASCII_HPP
2 #define INFO_GAMMAASCII_HPP
3 
4 #include <string>
5 
9 class GammaASCII
10 {
11 private:
15  static const std::string gamma;
19  static const std::string up;
23  static const std::string down;
24 
25 public:
31  static std::string GammaUp()
32  {
33  return gamma+up;
34  }
35 
41  static std::string GammaDown()
42  {
43  return gamma+down;
44  }
45 
52  static std::string Gamma(int deg)
53  {
54  switch (deg)
55  {
56  case 0:
57  return GammaUp();
58  break;
59  case 1:
60  return GammaDown();
61  break;
62  default:
63  return "?";
64  }
65  }
66 
67 };
68 
69 const std::string GammaASCII::gamma{"γ"};
70 const std::string GammaASCII::up{"↑"};
71 const std::string GammaASCII::down{"↓"};
72 
73 #endif
static std::string Gamma(int deg)
selects gamma of a given degree deg
Definition: GammaASCII.hpp:52
static std::string GammaUp()
returns ASCII gamma greek letter and arrow up
Definition: GammaASCII.hpp:31
static const std::string gamma
gamma greek letter
Definition: GammaASCII.hpp:15
Some ASCII art decorators.
Definition: GammaASCII.hpp:9
static const std::string down
ASCII arrow down.
Definition: GammaASCII.hpp:23
static std::string GammaDown()
returns ASCII gamma greek letter and arrow down
Definition: GammaASCII.hpp:41
static const std::string up
ASCII arrow up.
Definition: GammaASCII.hpp:19