BmnRoot
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)
 

Variables

map< int, string > const Errors
 

Typedef Documentation

◆ json

Definition at line 11 of file EventCatalogue.cxx.

Function Documentation

◆ GetErrorString()

◆ response_callback()

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

Definition at line 139 of file EventCatalogue.cxx.

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().