16 typedef std::string AuthorID;
17 typedef long long ProjectID;
18 typedef std::string Hash;
19 typedef std::string File;
20 typedef time_t Version;
31 Author() : name(
""), mail(
""), id(
"")
40 Author(std::string name, std::string mail) : name(name), mail(mail)
42 id = md5(name +
" " + mail);
53 std::string methodName;
57 std::vector<Author> authors;
71 std::string startVersionHash;
73 std::string endVersionHash;
74 std::string methodName;
77 std::vector<AuthorID> authorIDs;
78 long long parserVersion;
98 std::string versionHash;
103 std::vector<Hash> hashes;
104 long long parserVersion;
116 std::string versionHash;
121 std::vector<Hash> hashes;
122 long long parserVersion;
Represents the data of an author.
Definition: Types.h:26
Author(std::string name, std::string mail)
Constructs an author with provided name and mail, and generates id as the MD5-hash of the concatenate...
Definition: Types.h:40
Represents the relevant data of a method to be put in the database.
Definition: Types.h:50
Represents the data of a method to be returned to the user. Difference with MethodIn: authorIDs inste...
Definition: Types.h:65
Represents the relevant data of a project when it is put into the database.
Definition: Types.h:94
Represents the relevant data of a project when it is returned to user. Difference with ProjectIn: aut...
Definition: Types.h:112