Andreas Huber | c9410c7 | 2016-07-28 12:18:40 -0700 | [diff] [blame^] | 1 | #ifndef CONSTANT_H_ |
| 2 | |
| 3 | #define CONSTANT_H_ |
| 4 | |
| 5 | #include <android-base/macros.h> |
| 6 | #include <string> |
| 7 | |
| 8 | namespace android { |
| 9 | |
| 10 | struct Formatter; |
| 11 | struct Type; |
| 12 | |
| 13 | struct Constant { |
| 14 | Constant(const char *name, Type *type, const char *value); |
| 15 | |
| 16 | std::string name() const; |
| 17 | const Type *type() const; |
| 18 | std::string value() const; |
| 19 | |
| 20 | void dump(Formatter &out) const; |
| 21 | |
| 22 | private: |
| 23 | std::string mName; |
| 24 | Type *mType; |
| 25 | std::string mValue; |
| 26 | |
| 27 | DISALLOW_COPY_AND_ASSIGN(Constant); |
| 28 | }; |
| 29 | |
| 30 | } // namespace android |
| 31 | |
| 32 | #endif // CONSTANT_H_ |