ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
property.h
Go to the documentation of this file.
1 
2 #ifndef BDWY_PROPERTY_H
3 #define BDWY_PROPERTY_H
4 
5 #include <string>
6 
12 class propertyAnn : public Ann
13 {
14 public:
15 
17 
18 protected:
19 
22  std::string _name;
23 
30  int _id;
31 
37 
41 
47 
48 public:
49 
55  : Ann(name->line()),
56  _name(name->name()),
57  _is_enabled(true),
58  _direction(direction),
59  _kind(kind)
60  {}
61 
67  inline void set_id(int id) { _id = id; }
68 
71  inline int get_id() const { return _id; }
72 
75  inline std::string & name() { return _name; }
76  inline const std::string & name() const { return _name; }
77 
80  inline bool is_enabled() const { return _is_enabled; }
81 
84  inline void disable() { _is_enabled = false; }
85 
88  inline void enable() { _is_enabled = true; }
89 
92  inline Direction direction() const { return _direction; }
93 
96  inline propertyKind kind() const { return _kind; }
97 };
98 
99 #endif
100