BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
EventCatalogue.cxx File Reference
#include "EventCatalogue.h"
#include "event_db_settings.h"
#include "nlohmann/json.hpp"
#include <fstream>
#include <iostream>
#include <map>
#include <sstream>
Include dependency graph for EventCatalogue.cxx:

Go to the source code of this file.

Typedefs

using json = nlohmann::ordered_json

Functions

string const GetErrorString (int error_id)
size_t response_callback (void *contents, size_t size, size_t nmemb, string *data)
static size_t header_callback (char *buffer, size_t size, size_t nitems, void *userdata)

Variables

map< int, string > const Errors

Typedef Documentation

◆ json

Definition at line 11 of file EventCatalogue.cxx.

Function Documentation

◆ GetErrorString()

string const GetErrorString ( int error_id)

Definition at line 22 of file EventCatalogue.cxx.

References Errors.

Referenced by get_file_list(), get_file_metadata(), and EventCatalogue::PostRequest().

Here is the caller graph for this function:

◆ header_callback()

size_t header_callback ( char * buffer,
size_t size,
size_t nitems,
void * userdata )
static

Definition at line 130 of file EventCatalogue.cxx.

Referenced by EventCatalogue::PostRequest().

Here is the caller graph for this function:

◆ response_callback()

size_t response_callback ( void * contents,
size_t size,
size_t nmemb,
string * data )

Definition at line 117 of file EventCatalogue.cxx.

Referenced by EventCatalogue::PostRequest().

Here is the caller graph for this function:

Variable Documentation

◆ Errors

map<int, string> const Errors
Initial value:
{{401, "Unauthorized Access (check user login and password)"},
{403, "Token invalid or expired"},
{404, "Requested Data not found"},
{409, "Incorrect Database Request (e.g. violating constraints)"},
{422, "Incorrect Input Request"},
{500, "Internal Server Error"},
{503, "Service Unavaialble"},
{504, "Server Timeout"}}

Definition at line 13 of file EventCatalogue.cxx.

Referenced by GetErrorString().