ndmspc  0.20250128.0
GitlabTrack.cxx
1 #include <TString.h>
2 #include <TRandom.h>
3 #include <TMath.h>
4 #include "GitlabTrack.h"
5 
7 ClassImp(Ndmspc::Gitlab::Track);
9 
10 namespace Ndmspc {
11 namespace Gitlab {
12 
13 Track::Track() : TObject(), fState(), fAuthorID(0), fProjectID(0)
14 {
18 }
19 
21 {
25 }
26 
28 {
32 }
33 
34 void 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 
45 void 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
Track object.
Definition: GitlabTrack.h:15
Int_t fAuthorID
Author id.
Definition: GitlabTrack.h:99
virtual void Print(Option_t *option="") const
Definition: GitlabTrack.cxx:34
Int_t fMilestoneID
! Project name
Definition: GitlabTrack.h:103
Int_t fProjectID
! Author name
Definition: GitlabTrack.h:101
virtual void Clear(Option_t *option="")
Definition: GitlabTrack.cxx:45
std::string fState
State of track.
Definition: GitlabTrack.h:98