Majoranapp
A C++ library for studying MZM in non-interacting systems
SystemOption.hpp
Go to the documentation of this file.
1 #ifndef PARSERS_SYSTEMOPTION
2 #define PARSERS_SYSTEMOPTION
3 
4 #include <string>
5 
7 {
8 public:
9  std::string name;
10  std::string description;
11  std::string opt;
12  SystemOption(std::string _name,
13  std::string _desc,
14  std::string _opt) : name{_name}, description{_desc}, opt{_opt}
15  {
16  }
17 };
18 
19 std::ostream &operator<<(std::ostream &out, SystemOption systemOption)
20 {
21  if (systemOption.opt == ":")
22  out << "[ARG] ";
23  else
24  out << " ";
25  out << systemOption.name << ": " << systemOption.description;
26  return out;
27 }
28 
29 #endif
std::string opt
Definition: SystemOption.hpp:11
SystemOption(std::string _name, std::string _desc, std::string _opt)
Definition: SystemOption.hpp:12
std::string description
Definition: SystemOption.hpp:10
std::ostream & operator<<(std::ostream &out, SystemOption systemOption)
Definition: SystemOption.hpp:19
std::string name
Definition: SystemOption.hpp:9
Definition: SystemOption.hpp:6