8#ifndef EVENTCATALOGUE_H
9#define EVENTCATALOGUE_H
110 vector<unique_ptr<EventInfo>>
GetEventList(vector<unique_ptr<EventCondition>> event_conditions);
119 unique_ptr<EventInfo>
GetEventInfo(
string storage_name,
string file_path,
int event_number);
155 int DeleteEventInfo(
string storage_name,
string file_path,
int event_number);
164 int CheckEventInfo(
string storage_name,
string file_path,
int event_number);
173 int PrintEventInfo(
string storage_name,
string file_path,
int event_number);
216 void SetVerbose(
int verbose_level = 2) { VerboseLevel = verbose_level; }
221 string ServiceAccount;
223 int VerboseLevel = 2;
226 int PostRequest(
string RequestUrl,
string json_string,
string success_message);
virtual ~EventCatalogue()
int DeleteEventInfo(string storage_name, string file_path, int event_number)
int AddSoftwareInfo(string software_version)
int UpdateEventInfo(string storage_name, string file_path, int event_number, EventInfo event_metadata)
void SetVerbose(int verbose_level=2)
vector< unique_ptr< EventInfo > > EventCatalogueRequest(string rest_api_request)
int AddEventInfo(string storage_name, string file_path, int event_number, EventInfo event_metadata)
int CheckEventInfo(string storage_name, string file_path, int event_number)
int AddStorageInfo(string storage_name)
int EventCatalogueStats(int &record_count)
int EventCatalogueChecks(int &file_not_found, vector< unique_ptr< EventInfo > > &event_list)
vector< unique_ptr< EventInfo > > GetEventList(vector< unique_ptr< EventCondition > > event_conditions)
int PrintEventInfo(string storage_name, string file_path, int event_number)
unique_ptr< EventInfo > GetEventInfo(string storage_name, string file_path, int event_number)
Class for describing a condition to search for necessary event metadata.
searchAttributes
enumeration for attributes, which can be used in searching event metadata
matchCriteria
enumeration for conditions, which can be used for matching with a specified value
virtual ~EventCondition()
Class presenting Event Info (Metadata) Structure.
int PeriodNumber
number of experiment session, when the event was collected
string SoftwareVersion
version of the software used for processing the event
string FilePath
path of the file containing the event
static const int Version
structure (API) version
int TrackNumber
number of tracks in the event
int RunNumber
number of experiment run, when the event was collected
int EventNumber
event number in the file
string StorageName
storage name, where the file with the event is located