ndmspc 0.20250128.0
|
#include <GitlabEvent.h>
Public Member Functions | |
Event () | |
Event (Long64_t id) | |
virtual | ~Event () |
Long64_t | GetID () const |
Event ID. | |
TDatime | GetDateTime () const |
Event date and time. | |
void | SetID (Long64_t id) |
void | SetTimeDate (Int_t year, Int_t month, Int_t day, Int_t hour, Int_t min, Int_t sec) |
Long64_t | GetNIssues () const |
Track * | GetIssue (Long64_t id) |
Track * | AddIssue () |
Long64_t | GetNMergeRequests () const |
Track * | GetMergeRequest (Long64_t id) |
Track * | AddMergeRequest () |
TH1S * | GetListOfAuthors () const |
Returns List of authors as TAxis. | |
TH1S * | GetListOfProjects () const |
Returns List of Projects as TAxis. | |
TH1S * | GetListOfMilestones () const |
void | ShrinkMappingHistograms (bool verbose=true) |
bool | FillGitlabFromJson (std::string issues, std::string mergrerequests) |
bool | FillIssuesFromJson (const json root) |
bool | FillMergeRequestsFromJson (const json root) |
virtual void | Print (Option_t *option="") const |
virtual void | Clear (Option_t *option="") |
Private Member Functions | |
Event (const Event &) | |
! List of milestones in current event | |
Event & | operator= (const Event &) |
not implemented | |
std::string | ParseProjectName (std::string in, char d='!') const |
not implemented | |
void | FillAuthorProjectAxis (std::string author, std::string project) |
void | ShrinkHistogram (const char *name, TH1 *h, bool verbose) |
Private Attributes | |
Long64_t | fID |
ID of event. | |
TDatime | fDateTime |
Time of event. | |
Int_t | fNIssues |
Number of Issues. | |
Int_t | fNMergeRequests |
Number of MergeRequests. | |
TClonesArray * | fIssues |
Array with all issues. | |
TClonesArray * | fMergeRequests |
Array with all merge requests. | |
TH1S * | fAuthors {nullptr} |
TH1S * | fProjects {nullptr} |
! List of authors in current event | |
TH1S * | fMilestones {nullptr} |
! List of projects in current event | |
Event object.
Definition at line 21 of file GitlabEvent.h.
Ndmspc::Gitlab::Event::Event | ( | ) |
Default constructor
Definition at line 14 of file GitlabEvent.cxx.
Ndmspc::Gitlab::Event::Event | ( | Long64_t | id | ) |
A constructor
Definition at line 21 of file GitlabEvent.cxx.
References fIssues, fMergeRequests, fMilestones, and fProjects.
|
virtual |
A destructor
Definition at line 35 of file GitlabEvent.cxx.
References fIssues, fMergeRequests, fMilestones, and fProjects.
|
private |
! List of milestones in current event
Copy constructor
Track * Ndmspc::Gitlab::Event::AddIssue | ( | ) |
Adds Issue to event
Definition at line 48 of file GitlabEvent.cxx.
References fIssues, and fNIssues.
Referenced by FillIssuesFromJson().
Track * Ndmspc::Gitlab::Event::AddMergeRequest | ( | ) |
Adds Merge requests to event
Definition at line 56 of file GitlabEvent.cxx.
References fMergeRequests, and fNMergeRequests.
Referenced by FillMergeRequestsFromJson().
|
virtual |
Reseting event to default values and clear all tracks
Definition at line 189 of file GitlabEvent.cxx.
References fID, fIssues, fMergeRequests, fNIssues, and fNMergeRequests.
bool Ndmspc::Gitlab::Event::FillGitlabFromJson | ( | std::string | issues, |
std::string | mergrerequests ) |
Import gitlab info from json input
Definition at line 64 of file GitlabEvent.cxx.
References FillIssuesFromJson(), and FillMergeRequestsFromJson().
bool Ndmspc::Gitlab::Event::FillIssuesFromJson | ( | const json | root | ) |
Import gitlab issues info from json input
Definition at line 99 of file GitlabEvent.cxx.
References AddIssue(), fMilestones, fProjects, Ndmspc::Gitlab::Track::GetAuthor(), Ndmspc::Gitlab::Track::GetMilestone(), Ndmspc::Gitlab::Track::GetProject(), Ndmspc::Gitlab::Track::GetState(), ParseProjectName(), Ndmspc::Gitlab::Track::SetAuthor(), Ndmspc::Gitlab::Track::SetAuthorID(), Ndmspc::Gitlab::Track::SetMilestone(), Ndmspc::Gitlab::Track::SetMilestoneID(), Ndmspc::Gitlab::Track::SetProject(), Ndmspc::Gitlab::Track::SetProjectID(), and Ndmspc::Gitlab::Track::SetState().
Referenced by FillGitlabFromJson().
bool Ndmspc::Gitlab::Event::FillMergeRequestsFromJson | ( | const json | root | ) |
Import gitlab merge requests info from json input
Definition at line 129 of file GitlabEvent.cxx.
References AddMergeRequest(), fMilestones, fProjects, Ndmspc::Gitlab::Track::GetAuthor(), Ndmspc::Gitlab::Track::GetMilestone(), Ndmspc::Gitlab::Track::GetProject(), Ndmspc::Gitlab::Track::GetState(), ParseProjectName(), Ndmspc::Gitlab::Track::SetAuthor(), Ndmspc::Gitlab::Track::SetAuthorID(), Ndmspc::Gitlab::Track::SetMilestone(), Ndmspc::Gitlab::Track::SetMilestoneID(), Ndmspc::Gitlab::Track::SetProject(), Ndmspc::Gitlab::Track::SetProjectID(), and Ndmspc::Gitlab::Track::SetState().
Referenced by FillGitlabFromJson().
|
inline |
Event date and time.
Definition at line 87 of file GitlabEvent.h.
References fDateTime.
|
inline |
|
inline |
id | Track ID |
Definition at line 93 of file GitlabEvent.h.
References fIssues.
|
inline |
|
inline |
Definition at line 102 of file GitlabEvent.h.
|
inline |
Returns List of Projects as TAxis.
Definition at line 101 of file GitlabEvent.h.
References fProjects.
|
inline |
id | Track ID |
Definition at line 97 of file GitlabEvent.h.
References fMergeRequests.
|
inline |
|
inline |
|
private |
not implemented
Parse project name
Definition at line 211 of file GitlabEvent.cxx.
Referenced by FillIssuesFromJson(), and FillMergeRequestsFromJson().
|
virtual |
Printing event info
Definition at line 160 of file GitlabEvent.cxx.
References fID, fNIssues, and fNMergeRequests.
|
inline |
void Ndmspc::Gitlab::Event::SetTimeDate | ( | Int_t | year, |
Int_t | month, | ||
Int_t | day, | ||
Int_t | hour, | ||
Int_t | min, | ||
Int_t | sec ) |
year | Year of event |
month | Month of event |
day | Day of event |
hour | Hour of event |
min | Minute of event |
sec | Second of event |
Sets Date and time of event
Sets Date and time of event
Definition at line 203 of file GitlabEvent.cxx.
References fDateTime.
|
private |
Definition at line 222 of file GitlabEvent.cxx.
void Ndmspc::Gitlab::Event::ShrinkMappingHistograms | ( | bool | verbose = true | ) |
Shrink mapping histograms
Definition at line 179 of file GitlabEvent.cxx.
References fMilestones, and fProjects.
|
private |
Definition at line 123 of file GitlabEvent.h.
|
private |
Time of event.
Definition at line 114 of file GitlabEvent.h.
Referenced by GetDateTime(), and SetTimeDate().
|
private |
|
private |
Array with all issues.
Definition at line 119 of file GitlabEvent.h.
Referenced by AddIssue(), Clear(), Event(), GetIssue(), and ~Event().
|
private |
Array with all merge requests.
Definition at line 121 of file GitlabEvent.h.
Referenced by AddMergeRequest(), Clear(), Event(), GetMergeRequest(), and ~Event().
|
private |
! List of projects in current event
Definition at line 125 of file GitlabEvent.h.
Referenced by Event(), FillIssuesFromJson(), FillMergeRequestsFromJson(), ShrinkMappingHistograms(), and ~Event().
|
private |
Number of Issues.
Definition at line 115 of file GitlabEvent.h.
Referenced by AddIssue(), Clear(), GetNIssues(), and Print().
|
private |
Number of MergeRequests.
Definition at line 116 of file GitlabEvent.h.
Referenced by AddMergeRequest(), Clear(), GetNMergeRequests(), and Print().
|
private |
! List of authors in current event
Definition at line 124 of file GitlabEvent.h.
Referenced by Event(), FillIssuesFromJson(), FillMergeRequestsFromJson(), GetListOfProjects(), ShrinkMappingHistograms(), and ~Event().