blob: 338bcb6388e3bd716f7d389a8e697c16db95b19c [file] [log] [blame]
Andreas Huber84f89de2016-07-28 15:39:51 -07001#ifndef FQNAME_H_
2
3#define FQNAME_H_
4
5#include <android-base/macros.h>
6#include <string>
7
8namespace android {
9
10struct FQName {
11 explicit FQName(const std::string &s);
12
13 bool isValid() const;
14 bool setTo(const std::string &s);
15
16 void applyDefaults(
17 const std::string &defaultPackage,
18 const std::string &defaultVersion);
19
20 std::string package() const;
21 std::string version() const;
22 std::string name() const;
23
24 std::string debugString() const;
25
26private:
27 bool mValid;
28 std::string mPackage;
29 std::string mVersion;
30 std::string mName;
31
32 DISALLOW_COPY_AND_ASSIGN(FQName);
33};
34
35} // namespace android
36
37#endif // FQNAME_H_