Inter4ql  5.2
Domain.h
1 #ifndef __DOMAIN_H__
2 #define __DOMAIN_H__
3 
4 #include <string>
5 #include "Types.h"
6 
7 namespace Inter4ql {
8 
12  class Domain {
13  public:
19  explicit Domain(std::string a_name, variable_type::type type = variable_type::INVALID);
24  explicit Domain(Inter4ql::variable_type::type a_type);
28  ~Domain();
33  std::string get_name() const;
48  std::string print();
49  private:
50  std::string name;
52  };
53 
54  bool operator==(const Domain& a, const Domain& b);
55  bool operator!=(const Domain& a, const Domain& b);
56 }
57 #endif /* DOMAIN_H */
58 
void set_type(variable_type::type _t)
setter for type of a domain
Definition: Domain.cc:31
Definition: Application.cc:37
Domain class - class that points to a data type.
Definition: Domain.h:12
Domain(std::string a_name, variable_type::type type=variable_type::INVALID)
constructor that creates a connection between name and type
Definition: Domain.cc:8
variable_type::type get_type() const
getter for type of a domain
Definition: Domain.cc:35
~Domain()
destructor
Definition: Domain.cc:18
type
Enumeration type for types of values.
Definition: Types.h:26
std::string print()
returns string with domain information
Definition: Domain.cc:39
std::string get_name() const
getter for name of a domain
Definition: Domain.cc:27