blob: ad98bf9adece8a79981a07dd228ff9b9a0bc0f6b [file] [log] [blame]
Andreas Huber3599d922016-08-09 10:42:57 -07001#ifndef ANNOTATION_H_
2
3#define ANNOTATION_H_
4
5#include <android-base/macros.h>
6
7#include <string>
8#include <utils/KeyedVector.h>
9
10namespace android {
11
12struct Formatter;
13
14struct Annotation {
15 Annotation(
16 const char *name,
17 KeyedVector<std::string, std::vector<std::string> *> *params);
18
19 std::string name() const;
20
21 void dump(Formatter &out) const;
22
23private:
24 std::string mName;
25 KeyedVector<std::string, std::vector<std::string> *> *mParamsByName;
26
27 DISALLOW_COPY_AND_ASSIGN(Annotation);
28};
29
30} // namespace android
31
32#endif // ANNOTATION_H_