8#ifndef EVENTCATALOGUE_H
9#define EVENTCATALOGUE_H
71 EventCondition(searchAttributes attribute, matchCriteria condition);
72 EventCondition(searchAttributes attribute, matchCriteria condition,
int value);
73 EventCondition(searchAttributes attribute, matchCriteria condition,
unsigned int value);
74 EventCondition(searchAttributes attribute, matchCriteria condition,
double value);
75 EventCondition(searchAttributes attribute, matchCriteria condition,
string value);
109 vector<unique_ptr<EventInfo>>
GetEventList(vector<unique_ptr<EventCondition>> event_conditions);
118 unique_ptr<EventInfo>
GetEventInfo(
string storage_name,
string file_path,
int event_number);
154 int DeleteEventInfo(
string storage_name,
string file_path,
int event_number);
163 int CheckEventInfo(
string storage_name,
string file_path,
int event_number);
172 int PrintEventInfo(
string storage_name,
string file_path,
int event_number);
225 int PostRequest(
string RequestUrl,
string json_string,
string success_message);
virtual ~EventCatalogue()
int DeleteEventInfo(string storage_name, string file_path, int event_number)
Function to delete metadata for the event stored at the given location.
int AddSoftwareInfo(string software_version)
Function to add software version to the dictionary used by the Event Catalogue.
int UpdateEventInfo(string storage_name, string file_path, int event_number, EventInfo event_metadata)
Function to update metadata of the event stored at the given location.
void SetVerbose(int verbose_level=2)
Setting Verbose level: 0 - only errors, 1 - normal output, 2 - detailed output, 2- all with debug inf...
int PostRequest(string RequestUrl, string json_string, string success_message)
vector< unique_ptr< EventInfo > > EventCatalogueRequest(string rest_api_request)
Function for searching for event metadata in the Event Catalogue using REST API request as an HTTP(s)...
int AddEventInfo(string storage_name, string file_path, int event_number, EventInfo event_metadata)
Function to add metadata for the event stored at the given location.
int CheckEventInfo(string storage_name, string file_path, int event_number)
Function to check metadata for the event stored at the given location.
int AddStorageInfo(string storage_name)
Function to add storage to the dictionary used by the Event Catalogue.
int EventCatalogueStats(int &record_count)
Function to collect summary statistics on the Event Catalogue.
int EventCatalogueChecks(int &file_not_found, vector< unique_ptr< EventInfo > > &event_list)
Function to perform a set of specific checks in the Event Catalogue.
vector< unique_ptr< EventInfo > > GetEventList(vector< unique_ptr< EventCondition > > event_conditions)
Function for searching for event metadata in the Event Catalogue using specified conditions.
int PrintEventInfo(string storage_name, string file_path, int event_number)
Function to print metadata for the event stored at the given location.
unique_ptr< EventInfo > GetEventInfo(string storage_name, string file_path, int event_number)
Function tp get metadata of the event stored at the given location.
matchCriteria EventMatchCriteria
searchAttributes
enumeration for attributes, which can be used in searching event metadata
searchAttributes EventAttribute
matchCriteria
enumeration for conditions, which can be used for matching with a specified value
EventCondition(searchAttributes attribute, matchCriteria condition)
Create condition for searching event metadata.
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