NamedType.h revision c9410c7e62a33fd7599b2f3e025093a2d171577e
1c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber#ifndef NAMED_TYPE_H_
2c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber
3c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber#define NAMED_TYPE_H_
4c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber
5c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber#include "Type.h"
6c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber
7c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber#include <string>
8c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber
9c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Hubernamespace android {
10c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber
11c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huberstruct NamedType : public Type {
12c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber    NamedType(const char *name);
13c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber
14c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber    std::string name() const;
15c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber
16c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huberprivate:
17c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber    std::string mName;
18c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber
19c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber    DISALLOW_COPY_AND_ASSIGN(NamedType);
20c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber};
21c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber
22c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber}  // namespace android
23c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber
24c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber#endif  // NAMED_TYPE_H_
25c9410c7e62a33fd7599b2f3e025093a2d171577eAndreas Huber
26