blob: 4f96ef6fe9425f45cf36ac808a1a7266eb0d3537 [file] [log] [blame]
Andreas Huberc9410c72016-07-28 12:18:40 -07001#ifndef CONSTANT_H_
2
3#define CONSTANT_H_
4
5#include <android-base/macros.h>
6#include <string>
7
8namespace android {
9
10struct Formatter;
11struct Type;
12
13struct 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
22private:
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_