diff options
author | Zhuoyao Zhang <zhuoyao@google.com> | 2016-08-10 10:25:20 -0700 |
---|---|---|
committer | Zhuoyao Zhang <zhuoyao@google.com> | 2016-08-15 15:28:04 -0700 |
commit | 5158db484e5ab302368f191d75d5b1334c270e52 (patch) | |
tree | 4a440492a61e10784cdc0e31316000492046b915 /Annotation.h | |
parent | 1aa476ba26601828117428c4bdd3367fbf999fec (diff) | |
download | hidl-5158db484e5ab302368f191d75d5b1334c270e52.tar.gz |
Extend hidl-gen to support generate vts file.
b/30762234
TODO: add regression test.
Change-Id: I1c31fd9a85805cd450ea03cc0ccc750a756d1009
Diffstat (limited to 'Annotation.h')
-rw-r--r-- | Annotation.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Annotation.h b/Annotation.h index ad98bf9a..07c6d838 100644 --- a/Annotation.h +++ b/Annotation.h @@ -10,19 +10,20 @@ namespace android { struct Formatter; +using AnnotationParamVector = + DefaultKeyedVector<std::string, std::vector<std::string> *>; struct Annotation { - Annotation( - const char *name, - KeyedVector<std::string, std::vector<std::string> *> *params); + Annotation(const char *name, AnnotationParamVector *params); std::string name() const; + const AnnotationParamVector ¶ms() const; void dump(Formatter &out) const; private: std::string mName; - KeyedVector<std::string, std::vector<std::string> *> *mParamsByName; + AnnotationParamVector *mParamsByName; DISALLOW_COPY_AND_ASSIGN(Annotation); }; |