ndmspc 0.20250304.0
Loading...
Searching...
No Matches
GitlabTrack.cxx
1#include <TString.h>
2#include <TRandom.h>
3#include <TMath.h>
4#include "GitlabTrack.h"
5
9
10namespace Ndmspc {
11namespace Gitlab {
12
13Track::Track() : TObject(), fState(), fAuthorID(0), fProjectID(0)
14{
18}
19
21{
25}
26
28{
32}
33
34void Track::Print(Option_t * option) const
35{
39 TString opt = option;
40
41 Printf("[%s] state=%s author_id=%d (%s) project_id=%d (%s) milestone=%d (%s)", opt.Data(), fState.data(), fAuthorID,
42 fAuthor.c_str(), fProjectID, fProject.c_str(), fMilestoneID, fMilestone.c_str());
43}
44
45void Track::Clear(Option_t *)
46{
50
51 fState = "";
52 fAuthorID = 0;
53 fAuthor = "";
54 fProjectID = 0;
55 fProject = "";
56 fMilestoneID = 0;
57 fMilestone = "";
58}
59
60} // namespace Gitlab
61} // namespace Ndmspc
Int_t fAuthorID
Author id.
Definition GitlabTrack.h:99
std::string fMilestone
Milestone name.
virtual void Print(Option_t *option="") const
std::string fAuthor
Author name.
Int_t fMilestoneID
Milestone ID.
Int_t fProjectID
Project ID.
virtual void Clear(Option_t *option="")
std::string fProject
Project name.
std::string fState
State of track.
Definition GitlabTrack.h:98