|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
#include "FileCatalogue.h"#include "file_db_settings.h"#include "nlohmann/json.hpp"#include <fstream>#include <iostream>#include <map>#include <sstream>Go to the source code of this file.
Classes | |
| struct | WriteData |
Macros | |
| #define | FC_HAS_CURL_MIME (LIBCURL_VERSION_NUM >= 0x073800) |
| #define | FC_HAS_CURL_XFERINFO (LIBCURL_VERSION_NUM >= 0x072000) |
Enumerations | |
| enum | State { CHECK_PREFIX , WRITE_FILE } |
Functions | |
| string const | GetErrorString (int error_id) |
| int | GiveMeNumber () |
| std::string | ReplaceAll (std::string str, const std::string &from, const std::string &to) |
| size_t | appendData (void *contents, size_t size, size_t nmemb, string *data) |
| std::string | exec (const char *cmd) |
| size_t | WriteCallback (void *contents, size_t size, size_t nmemb, void *userp) |
| int | progressCallback (void *clientp, double dltotal, double dlnow, double ultotal, double ulnow) |
Variables | |
| map< int, string > const | Errors |
| #define FC_HAS_CURL_MIME (LIBCURL_VERSION_NUM >= 0x073800) |
Definition at line 891 of file FileCatalogue.cxx.
| #define FC_HAS_CURL_XFERINFO (LIBCURL_VERSION_NUM >= 0x072000) |
Definition at line 892 of file FileCatalogue.cxx.
| enum State |
| Enumerator | |
|---|---|
| CHECK_PREFIX | |
| WRITE_FILE | |
Definition at line 792 of file FileCatalogue.cxx.
| size_t appendData | ( | void * | contents, |
| size_t | size, | ||
| size_t | nmemb, | ||
| string * | data ) |
Definition at line 450 of file FileCatalogue.cxx.
Referenced by FileCatalogue::performRequest(), and FileCatalogue::UploadFile().
| std::string exec | ( | const char * | cmd | ) |
Definition at line 635 of file FileCatalogue.cxx.
Referenced by FileCatalogue::FileCatalogRequest().
| string const GetErrorString | ( | int | error_id | ) |
Definition at line 22 of file FileCatalogue.cxx.
References Errors.
| int GiveMeNumber | ( | ) |
Definition at line 28 of file FileCatalogue.cxx.
References dist().
| int progressCallback | ( | void * | clientp, |
| double | dltotal, | ||
| double | dlnow, | ||
| double | ultotal, | ||
| double | ulnow ) |
Definition at line 898 of file FileCatalogue.cxx.
Referenced by FileCatalogue::UploadFile().
| std::string ReplaceAll | ( | std::string | str, |
| const std::string & | from, | ||
| const std::string & | to ) |
Definition at line 125 of file FileCatalogue.cxx.
Referenced by FileCatalogue::GetFileList().
| size_t WriteCallback | ( | void * | contents, |
| size_t | size, | ||
| size_t | nmemb, | ||
| void * | userp ) |
Definition at line 807 of file FileCatalogue.cxx.
References WriteData::buffer, CHECK_PREFIX, WriteData::error_detected, WriteData::error_msg, WriteData::file, WriteData::state, and WRITE_FILE.
Referenced by FileCatalogue::DownloadFile().
| map<int, string> const Errors |
Definition at line 13 of file FileCatalogue.cxx.