![]() |
ATLAS Offline Software
|
#include <CrestApi.h>
Public Member Functions | |
CrestClient (bool rewriteIfExists, const std::string &root_folder="/tmp/crest_dump") | |
CrestClient constructor for file storage mode. More... | |
CrestClient (const std::string &_host, const std::string &_port, bool check_version=s_CREST_CLIENT_CHECK) | |
CrestClient constructor for Internet mode. More... | |
CrestClient (std::string_view url, bool check_version=s_CREST_CLIENT_CHECK) | |
CrestClient constructor for Internet mode. More... | |
~CrestClient () | |
nlohmann::json | getJson (const std::string &str) |
Auxillary method to convert string in to JSON object. More... | |
bool | isJson (const std::string &str) |
This method checks if a string is in the JSON format. More... | |
void | removeGlobalTag (const std::string &name) |
This method allows to remove a Global Tag form CREST DB. More... | |
void | removeTag (const std::string &tagName) |
This method allows to remove a Tag. More... | |
void | updateGlobalTag (const std::string &name, nlohmann::json body) |
This method allows to update a GlobalTag.Arguments: the name has to uniquely identify a global tag. More... | |
std::string | createFolder (nlohmann::json &body) |
Method to create a folder. More... | |
nlohmann::json | listFolders () |
This method returns the folder list on CREST DB. More... | |
void | createGlobalTagMap (nlohmann::json >) |
Method to create a global tag map. More... | |
void | createGlobalTagMap (const std::string &globaltag, const std::string &tagname, const std::string &record, const std::string &label) |
Method to create a global tag map. More... | |
nlohmann::json | findGlobalTagMap (const std::string &name) |
This method search for mappings using the global tag name. More... | |
void | createGlobalTag (nlohmann::json &js) |
Create a global tag in the database. More... | |
void | createGlobalTag (const std::string &tag) |
Create a global tag in the database. More... | |
void | createGlobalTag (const std::string &tagname, const std::string &description) |
Create a global tag in the database. More... | |
std::string | findGlobalTagAsString (const std::string &name) |
Finds a global tag by name. More... | |
nlohmann::json | findGlobalTag (const std::string &name) |
Finds a global tag by name. More... | |
nlohmann::json | listGlobalTags () |
This method finds a global tag lists. More... | |
nlohmann::json | listGlobalTags (const std::string &name, int size, int page, const std::string &sort) |
This method returns the global tag list. More... | |
std::string | listGlobalTagsAsString () |
This method finds a global tag lists. More... | |
void | createIov (nlohmann::json &iov) |
This method creates an iov for a given tag in the CREST DB for the created payload. More... | |
nlohmann::json | findAllIovs (const std::string &tagname) |
This method finds all iovs for a given tag name. More... | |
nlohmann::json | findAllIovs (const std::string &tagname, int size, int page, const std::string &sort, const std::string &dateformat) |
This method finds all iovs for a given tag name. More... | |
int | getSize (const std::string &tagname) |
This metghod gets the number of iovs for the given tag. More... | |
nlohmann::json | selectGroups (const std::string &tagname) |
Select groups for a given tagname. More... | |
nlohmann::json | selectGroups (const std::string &tagname, long snapshot) |
Select groups for a given tagname. More... | |
nlohmann::json | selectIovs (const std::string &tagname) |
Select iovs for a given tagname. More... | |
nlohmann::json | selectIovs (const std::string &tagname, long snapshot) |
Select iovs for a given tagname. More... | |
void | storeBatchIOVs (nlohmann::json &js) |
This method stores an IOV set on the CREST server. More... | |
nlohmann::json | listPayloadTagInfo () |
This method retrieves monitoring information on all payloads as a list of payload tag information. More... | |
nlohmann::json | listPayloadTagInfo (const std::string &tagname) |
This method retrieves monitoring information on payload as a list of payload tag information. More... | |
void | createPayload (nlohmann::json &js) |
This method creates a payload in the CREST DB. More... | |
std::string | getBlob (const std::string &hash) |
This method finds payload data by hash; the payload object contains the real BLOB. More... | |
std::string | getBlobInStream (const std::string &hash, std::ofstream &out) |
This method finds payload data by hash; the payload object contains the real BLOB. More... | |
nlohmann::json | getPayloadAsJson (const std::string &hash) |
This method finds a payload resource associated to the hash. More... | |
std::string | getPayloadAsString (const std::string &hash) |
This method finds a payload resource associated to the hash. More... | |
nlohmann::json | getPayloadMetaInfo (const std::string &hash) |
This method finds a payload resource associated to the hash. More... | |
std::string | getPayloadMetaInfoAsString (const std::string &hash) |
This method finds a payload resource associated to the hash. More... | |
void | storePayload (const std::string &tag, uint64_t since, const std::string &js) |
Create a payload in the database, associated to a given iov since and tag name. More... | |
void | storeBatchPayloads (const std::string &tag_name, uint64_t endtime, const std::string &iovsetupload) |
This method stores several payloads in batch mode. More... | |
void | storeBatchPayloads (const std::string &tag_name, uint64_t endtime, nlohmann::json &js) |
This method stores several payloads in batch mode. More... | |
void | storeBatchPayloads (const std::string &tag_name, const std::string &iovsetupload, uint64_t endtime=0) |
This method stores several payloads in batch mode. More... | |
void | storeBatchPayloads (const std::string &tag_name, nlohmann::json &js, uint64_t endtime=0) |
This method stores several payloads in batch mode. More... | |
void | createRunLumiInfo (nlohmann::json &body) |
This method creates an entry for run information. More... | |
nlohmann::json | findRunLumiInfo (const urlParameters ¶ms) |
Finds a run/lumi information lists using parameters. More... | |
nlohmann::json | listRunLumiInfo () |
This method gets full list of run/lumi information data. More... | |
void | createTag (nlohmann::json &js) |
This method creates a tag in the CREST database. More... | |
void | createTag (const std::string &name, const std::string &desc, const std::string &timeType) |
This method create a tag in the CREST database. More... | |
void | createTag (const std::string &name, const std::string &desc, const std::string &timeType, const std::string &payloadSpec) |
This method create a tag in the CREST database. More... | |
nlohmann::json | findTag (const std::string &name) |
This method finds a tag by the name. More... | |
nlohmann::json | listTags (void) |
This method returns the tag list. More... | |
nlohmann::json | listTags (int size, int page) |
This method returns the tag list. More... | |
nlohmann::json | listTags (const std::string &name, int size, int page, const std::string &sort) |
This method returns the tag list. More... | |
void | updateTag (const std::string &tagname, nlohmann::json body) |
This method allows to update tag record in the CREST DB. More... | |
void | updateTagSpecification (const std::string &tagname, const std::string &objectType) |
This method cahnges object type specification. More... | |
void | createTagDump (nlohmann::json &js) |
Method to store a tag in the local file system. More... | |
void | flush () |
Auxillary method to write all the data at the end of a session. More... | |
void | storePayloadDump (const std::string &tag, uint64_t since, const std::string &js) |
Method to store a payload in the local file system. More... | |
std::list< std::string > | shortListTagsFs () |
This method returns a tag list stored in the file storage. More... | |
nlohmann::json | findTagFs (const std::string &name) |
This method finds a tag by the tag name in the file storage. More... | |
nlohmann::json | findAllIovsFs (const std::string &tagname) |
This method finds all iovs by the tag name in the file storage. More... | |
nlohmann::json | findAllIovsFs (const std::string &tagname, int size, int page) |
This method finds all iovs for a given tag name. More... | |
std::string | getFileName (const std::string &path) |
Auxillary method to extract the file name from iov hash (the hash is a path in the file storage). More... | |
std::string | getBlobFs (const std::string &hash) |
This method finds payload data by hash in the file storage; the payload object contains the real BLOB. More... | |
std::string | getBlobInStreamFs (const std::string &hash, std::ofstream &out) |
This method finds payload data by hash; the payload object contains the real BLOB. More... | |
void | storeBatchPayloadsFs (const std::string &tag_name, std::string &iovsetupload) |
This auxillary method stores several payloads in batch mode in the file storage. More... | |
void | storeBatchPayloadsFs (const std::string &tag_name, nlohmann::json &js) |
This auxillary method stores several payloads in batch mode in the file storage. More... | |
void | streamTest () |
this is test only, later it will be deleted (The old method name is streamtest) More... | |
void | createTagMetaInfo (nlohmann::json &js) |
This method creates a tag meta info in the CREST database. More... | |
void | createTagMetaInfo (const std::string &tagname, nlohmann::json &js) |
This method creates a tag meta info in the CREST database. More... | |
nlohmann::json | getTagMetaInfo (const std::string &tagname) |
This method gets a tag meta info from the CREST database. More... | |
void | updateTagMetaInfo (nlohmann::json &js) |
This method updates a tag meta info in the CREST database. More... | |
void | updateTagMetaInfo (const std::string &tagname, nlohmann::json &js) |
This method updates a tag meta info in the CREST database. More... | |
void | createTagMetaInfoFs (nlohmann::json &js) |
This is an auxillary method, it creates a tag meta info on the file system storage. More... | |
nlohmann::json | getTagMetaInfoFs (const std::string &name) |
This is an auxillary method, it gets a tag meta info from file system storage. More... | |
void | updateTagMetaInfoFs (const std::string &tagname, nlohmann::json &js) |
This auxillary method updates a tag meta info in local file storage. More... | |
std::string | getTagMetaInfoElement (const std::string &name, nlohmann::json &js) |
Auxillary method to get an element by name from the Tag Meta Info. More... | |
nlohmann::json | convertTagMetaInfo2IOVDbSvc (nlohmann::json &js) |
Auxillary method to convert a Tag Meta Info from the JSON CREST Server format in to IOVDbSvc format. More... | |
nlohmann::json | convertTagMetaInfo2CREST (nlohmann::json &js) |
Auxillary method to convert a Tag Meta Info from the JSON IOVDbSvc format in CREST Server format. More... | |
nlohmann::json | getTagMetaInfoIOVDbSvc (const std::string &tagname) |
This method gets a tag meta info from the CREST database in IOVDbSvc format. More... | |
void | createTagMetaInfoIOVDbSvc (const std::string &tagname, nlohmann::json &js) |
This method creates a tag meta info in the CREST database. More... | |
void | createTagMetaInfoIOVDbSvc (const std::string &tagname, nlohmann::json &js, const std::string &description) |
This method creates a tag meta info in the CREST database. More... | |
void | createGlobalTagFs (nlohmann::json &js) |
The auxillary method to create a global tag in file storage. More... | |
nlohmann::json | findGlobalTagFs (const std::string &name) |
The auxillary method to find a global tag by name stored in file storage. More... | |
void | createGlobalTagMapFs (nlohmann::json &js) |
The auxillary method to create a global tag map in file storage. More... | |
nlohmann::json | findGlobalTagMapFs (const std::string &name) |
The auxillary method to find a global tag by name for the file storage. More... | |
std::string | getPayloadAsStringFS (const std::string &hash) |
This auxillary method finds a payload resource associated to the hash in the local file storage. More... | |
nlohmann::json | getPayloadAsJsonFS (const std::string &hash) |
This auxillary method finds a payload resource associated to the hash in the local file storage. More... | |
std::string | getPayloadMetaInfoAsStringFS (const std::string &hash) |
This auxillary method finds a payload resource associated to the hash in the local file storage. More... | |
nlohmann::json | getPayloadMetaInfoAsJsonFS (const std::string &hash) |
This auxillary method finds a payload resource associated to the hash in the local file storage. More... | |
int | getSizeFS (const std::string &tagname) |
This metghod gets the number of iovs for the given tag. More... | |
nlohmann::json | getSizeByTagFS (const std::string &tagname) |
This method gets the number of iovs for tags matching pattern. More... | |
nlohmann::json | selectIovs (const std::string &tagname, long since, long until, long snapshot=0) |
This method selects all iovs for a given tag name and for the selected time interval (since-until). More... | |
nlohmann::json | selectIovsFS (const std::string &tagname, long since, long until) |
This method selects all iovs for a given tag name and for the selected time interval (since-until). More... | |
std::string | getHash (std::string_view str) |
The auxillary method to calculate a hash code for a given string. More... | |
std::string | getDateAndTime () |
The auxillary method to get a current data and time. More... | |
nlohmann::json | returnJArray (nlohmann::json js) |
This auxillary method creates a JSON array from a JSON object. More... | |
void | getTagDataInfo (const std::string &tagname) |
This is an auxillary method for checking how many unique IOVs(hashcodes) are in an IOV list. More... | |
std::string | getFirstLetters (const std::string &str) |
This is an auxillary method extract first letters from the string (hash). More... | |
nlohmann::json | getMgmtInfo () |
This is an auxillary method to read the CREST Server properties. More... | |
std::string | getCrestVersion () |
This method returns the full CREST Server version. More... | |
std::string | getClientVersion () |
This method returns the full CrestApi version. More... | |
int | getMajorVersion (std::string &str) |
This is an auxillary method to extract a major version number from full version string. More... | |
void | checkCrestVersion () |
This method is a CREST version test. More... | |
nlohmann::json | getMgmtInfo2 () |
This is an auxillary method to read the CREST Server properties. More... | |
std::string | getCrestVersion2 () |
This method returns the full CREST Server version. More... | |
void | checkCrestVersion2 () |
This method is a CREST version test. More... | |
void | removeTagFromGlobalTagMap (const std::string &global_tag, const std::string &tag, const std::string &label) |
This method removes a tag with the name tag and the label from the global tag map with name global_tag. More... | |
void | storeBatchPayloadsFiles (const std::string &tag_name, uint64_t endtime, nlohmann::json &js) |
This method stores several payloads from files in batch mode. More... | |
std::string | storeBatchPayloadFilesRequest (const std::string &tag, uint64_t endtime, const std::string &js) |
This is an auxilary method to make an request to store several payloads from files in the batch mode. More... | |
void | storeData (const std::string &tag, uint64_t endtime, uint64_t since, const std::string &file) |
This method stores a payload from a file in the database, associated to a given IOV since and tag name. More... | |
void | storeDataArray (const std::string &tag, uint64_t endtime, std::map< uint64_t, std::string > m) |
This method stores several payloads from files in batch mode. More... | |
void | replaceSymbols (std::string &str, const std::string &from, const std::string &to) |
This auxilary method replaces the substring from by the substring to. More... | |
Static Public Attributes | |
static const bool | s_CREST_CLIENT_CHECK = false |
Private Types | |
enum | CrestMode { SERVER_MODE = 1, FILESYSTEM_MODE = 2 } |
enum | Action { GET = 0, POST = 1, PUT = 2, DELETE = 3 } |
Private Member Functions | |
std::string | make_url (const std::string &address) const |
std::string | performRequest (const std::string ¤t_path, Action action, nlohmann::json &js) |
General auxiliary method to make request to the CREST Server. More... | |
std::string | performRequest (const std::string ¤t_path, Action action, nlohmann::json &js, std::ofstream &out) |
General auxillary method to make request to the CREST Server. More... | |
std::string | performRequest (const std::string ¤t_path, Action action, nlohmann::json &js, const char *method_name) |
General auxillary method to make request to the CREST Server. More... | |
std::string | storeBatchPayloadRequest (const std::string &tag, uint64_t endtime, const std::string &js) |
This is an auxillary method to make an request to store several payloads in the batch mode. More... | |
nlohmann::json | getResources (nlohmann::json &js) |
Auxillary method to get a resources parameter from new CREST server response. More... | |
nlohmann::json | getResFirst (nlohmann::json &js) |
Auxillary method to get the first element from resources of the new CREST server response. More... | |
void | checkFsException (const char *method_name) |
Auxillary method to check if the CrestApi library initialized to work with the file system. More... | |
int | checkErrors (const nlohmann::json &js, const char *method) |
Auxillary method to check if the JSON object contain an error message. More... | |
std::string | ParseXMLOutput (std::string_view xmlBuffer) |
This method removes all XML/HTML tags from a string. More... | |
std::string | removeCR (const std::string &str) |
This method removes all end of line and carriage return symbols from a string. More... | |
void | checkResult (CURLcode res, long response_code, const std::string &st, const char *method_name) |
This auxillary method checks the CURL response. More... | |
void | getProxyPath () |
nlohmann::json | getJson (const std::string &str, const char *method) |
Auxillary method to convert string in to JSON object. More... | |
std::string | getFileString (const std::string &path) |
Auxillary method to get a file as a string. More... | |
void | getFileList (const std::string &path) |
Auxillary method to get a file list in the given directory. More... | |
std::string | getEnvA (const char *varname) |
Auxillary method to get an environment variable. More... | |
std::string | getDataPath () |
Auxillary method to get an environment variable DAT_PATH. More... | |
std::vector< std::string > | split (std::string_view str, char delim) |
Auxillary method to split a string. More... | |
Private Attributes | |
std::string | m_host {} |
std::string | m_port {} |
int | m_mode {} |
std::string | m_root_folder {} |
std::string | m_data_folder {} |
std::map< std::string, nlohmann::json > | m_data {} |
bool | m_isRewrite {} |
std::string | m_currentTag {} |
std::string | m_PATH = "/api-v4.0" |
char * | m_CREST_PROXY = NULL |
const char * | m_CREST_PROXY_VAR = "SOCKS_PROXY" |
Static Private Attributes | |
static const std::string | s_TAG_PATH = "/tags" |
static const std::string | s_ADMIN_PATH = "/admin" |
static const std::string | s_IOV_PATH = "/iovs" |
static const std::string | s_IOV_SIZE_PATH = "/size" |
static const std::string | s_GLOBALTAG_PATH = "/globaltags" |
static const std::string | s_GLOBALTAG_MAP_PATH = "/globaltagmaps" |
static const std::string | s_PAYLOAD_PATH = "/payloads" |
static const std::string | s_MONITORING_PAYLOAD_PATH = "/monitoring/payloads" |
static const std::string | s_META_PATH = "/meta" |
static const std::string | s_DATA_PATH = "/data" |
static const std::string | s_FOLDER_PATH = "/folders" |
static const std::string | s_RUNINFO_PATH = "/runinfo" |
static const std::string | s_RUNINFO_LIST_PATH = "/list" |
static const std::string | s_METHOD_IOVS = "IOVS" |
static const std::string | s_METHOD_GROUPS = "GROUPS" |
static const std::string | s_METHOD_MONITOR = "MONITOR" |
static const std::string | s_FS_TAG_PATH = "/tags" |
static const std::string | s_FS_GLOBALTAG_PATH = "/globaltags" |
static const std::string | s_FS_DATA_PATH = "/data" |
static const std::string | s_FS_TAG_FILE = "/tag.json" |
static const std::string | s_FS_IOV_FILE = "/iovs.json" |
static const std::string | s_FS_TAGMETAINFO_FILE = "/tagmetainfo.json" |
static const std::string | s_FS_META_FILE = "/meta.json" |
static const std::string | s_FS_PALOAD_FILE = "/payload.json" |
static const std::string | s_FS_GLOBALTAG_FILE = "/globaltag.json" |
static const std::string | s_FS_MAP_FILE = "/maps.json" |
static const std::string | s_FS_PATH = "" |
static const int | s_FS_PREFIX_LENGTH = 3 |
static const std::string | s_MGMT_PATH = "/mgmt" |
static const std::string | s_MGMT_INFO_PATH = "/info" |
static const std::string | s_CREST_CLIENT_VERSION = "4.0" |
static const std::string | s_MGMT_INFO_PATH_2 = "/actuator/info" |
Definition at line 61 of file CrestApi.h.
|
private |
|
private |
Enumerator | |
---|---|
SERVER_MODE | |
FILESYSTEM_MODE |
Definition at line 125 of file CrestApi.h.
Crest::CrestClient::CrestClient | ( | bool | rewriteIfExists, |
const std::string & | root_folder = "/tmp/crest_dump" |
||
) |
CrestClient constructor for file storage mode.
If CrestClient is created with this method the data will be written on the hard disk.
rewriteIfExist | - this parameter sets if the data can be rewritten. |
root_folder | - the folder where the data have to be stored. |
Definition at line 28 of file CrestApi.cxx.
Crest::CrestClient::CrestClient | ( | const std::string & | _host, |
const std::string & | _port, | ||
bool | check_version = s_CREST_CLIENT_CHECK |
||
) |
CrestClient constructor for Internet mode.
If CrestClient is created with this method the data will be sent to the CREST Server.
_host | - host name of the CREST Server. |
_port | - port of the CREST Server. |
check_version | - the parameter to switch CREST version checking, if this parameter is true, the CREST version test will be executed. |
Definition at line 39 of file CrestApi.cxx.
Crest::CrestClient::CrestClient | ( | std::string_view | url, |
bool | check_version = s_CREST_CLIENT_CHECK |
||
) |
CrestClient constructor for Internet mode.
If CrestClient is created with this method the data will be sent to the CREST Server.
url | - URL address of the CREST Server (with port). |
check_version | - the parameter to switch CREST version checking, if this parameter is true, the CREST version test will be executed. |
Example:
std::string url = "http://mvg-test-pc-03.cern.ch:8090"; CrestClient myCrestClient = CrestClient(url);
Definition at line 47 of file CrestApi.cxx.
Crest::CrestClient::~CrestClient | ( | ) |
Definition at line 86 of file CrestApi.cxx.
void Crest::CrestClient::checkCrestVersion | ( | ) |
This method is a CREST version test.
It checks if the major CREST server is equal to the major CrestApi vesrion. If the versions are different an error is thrown.
std::runtime_error | - error, if the versions are different. |
Definition at line 2833 of file CrestApi.cxx.
void Crest::CrestClient::checkCrestVersion2 | ( | ) |
This method is a CREST version test.
It checks if the major CREST server is equal to the major CrestApi vesrion. If the versions are different an error is thrown.
std::runtime_error | - error, if the versions are different. |
Definition at line 2889 of file CrestApi.cxx.
|
private |
Auxillary method to check if the JSON object contain an error message.
js | - a JSON object to be checked. Example: nlohmann::json js = { "message": "Cannot create tag because name already exists: test_MvG3b", "type": "error" } |
method | - method name, where was the error. |
Definition at line 1875 of file CrestApi.cxx.
|
private |
Auxillary method to check if the CrestApi library initialized to work with the file system.
It was used to throw an exception if the library method not implemented for file system.
method_name | - method name. |
Definition at line 1908 of file CrestApi.cxx.
|
private |
This auxillary method checks the CURL response.
It contais a error checking routine (common for all CURL request methods).
res | - CURL response status, |
response_code | - the CURL response code, |
st | - the CURL response, |
method_name | - the name on a method which calls one of the perform request methods. |
Definition at line 1698 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::convertTagMetaInfo2CREST | ( | nlohmann::json & | js | ) |
Auxillary method to convert a Tag Meta Info from the JSON IOVDbSvc format in CREST Server format.
js | - the Tag Meta Info in CREST Server JSON format. |
Definition at line 1955 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::convertTagMetaInfo2IOVDbSvc | ( | nlohmann::json & | js | ) |
Auxillary method to convert a Tag Meta Info from the JSON CREST Server format in to IOVDbSvc format.
js | - the Tag Meta Info in CREST Server JSON format. |
Definition at line 1948 of file CrestApi.cxx.
std::string Crest::CrestClient::createFolder | ( | nlohmann::json & | body | ) |
Method to create a folder.
It is not yet realized (This method is an analogue of the create_folder method in Python)
Definition at line 1181 of file CrestApi.cxx.
void Crest::CrestClient::createGlobalTag | ( | const std::string & | tag | ) |
Create a global tag in the database.
This method allows to insert a global tag. (This method is an analogue of the create_global_tag method in Python)
tag | - global tag as JSON string (std::string). |
Definition at line 702 of file CrestApi.cxx.
void Crest::CrestClient::createGlobalTag | ( | const std::string & | tagname, |
const std::string & | description | ||
) |
Create a global tag in the database.
This method allows to insert a global tag, it has a reduced parameterset: the global tag name and the global tag description. (This method is an analogue of the create_global_tag method in Python) The method set the following default parameters:
{ "release": "1", "scenario": "undefined", "type": "UPD", "validity": 0, "workflow": "undefined" }
tagname | - global tag name, |
description | - global tag description, |
Definition at line 709 of file CrestApi.cxx.
void Crest::CrestClient::createGlobalTag | ( | nlohmann::json & | js | ) |
Create a global tag in the database.
This method allows to insert a global tag. (This method is an analogue of the create_global_tag method in Python)
js | - global tag in the JSON format. Example: |
json js = { {"name","M_TEST_01"}, {"validity",0}, {"description","test"}, {"release","1"}, {"insertionTime","2018-12-18T11:32:58.081+0000"}, {"snapshotTime","2018-12-18T11:32:57.952+0000"}, {"scenario","test"}, {"workflow","M"}, {"type","t"}, {"snapshotTimeMilli","null"}, {"insertionTimeMilli","null"} };
Definition at line 688 of file CrestApi.cxx.
void Crest::CrestClient::createGlobalTagFs | ( | nlohmann::json & | js | ) |
The auxillary method to create a global tag in file storage.
(This method is an analogue of the create_global_tag method in Python)
js | - global tag in the JSON format. Example: |
json js = { {"name","M_TEST_01"}, {"validity",0}, {"description","test"}, {"release","1"}, {"insertionTime","2018-12-18T11:32:58.081+0000"}, {"snapshotTime","2018-12-18T11:32:57.952+0000"}, {"scenario","test"}, {"workflow","M"}, {"type","t"}, {"snapshotTimeMilli","null"}, {"insertionTimeMilli","null"} };
Definition at line 2266 of file CrestApi.cxx.
void Crest::CrestClient::createGlobalTagMap | ( | const std::string & | globaltag, |
const std::string & | tagname, | ||
const std::string & | record, | ||
const std::string & | label | ||
) |
Method to create a global tag map.
(This method is an analogue of the create_global_tag_map method in Python)
globaltag | - global tag name, |
tagname | - tag name, |
record | - record, |
label | - label, |
Definition at line 888 of file CrestApi.cxx.
void Crest::CrestClient::createGlobalTagMap | ( | nlohmann::json & | gt | ) |
Method to create a global tag map.
(This method is an analogue of the create_global_tag_map method in Python)
gt | - global tag map in the JSON format. Example: |
json gt = { {"globalTagName", "M_TEST"}, {"record", "testing2"}, {"label", "test2"}, {"tagName", "test_MvG3"} }
Definition at line 872 of file CrestApi.cxx.
void Crest::CrestClient::createGlobalTagMapFs | ( | nlohmann::json & | js | ) |
The auxillary method to create a global tag map in file storage.
(This method is an analogue of the create_global_tag_map method in Python)
gt | - global tag map in the JSON format. Example: |
json gt = { {"globalTagName", "M_TEST"}, {"record", "testing2"}, {"label", "test2"}, {"tagName", "test_MvG3"} }
Definition at line 2329 of file CrestApi.cxx.
void Crest::CrestClient::createIov | ( | nlohmann::json & | iov | ) |
This method creates an iov for a given tag in the CREST DB for the created payload.
The tag name is used in the iov creation. This tag has to be defined in the CREST DB before creating iov (This method is an analogue of the create_iov method in Python)
iov | - an iov in the JSON format (JSON object). Example: |
json js3b = { {"tagName","test_MvG3"}, {"since",100}, {"insertionTime","2018-12-18T11:32:58.329+0000"}, {"payloadHash","ABRACADABRA4"}, };
Definition at line 370 of file CrestApi.cxx.
void Crest::CrestClient::createPayload | ( | nlohmann::json & | js | ) |
This method creates a payload in the CREST DB.
(This method is an analogue of the create_payload method in Python)
js | - payload in the JSON format. Example: |
json js = { {"hash", "ABRACADABRA"}, {"version", "string"}, {"objectType", "string"}, {"data", "none"}, {"streamerInfo", "none"}, {"insertionTime", "2019-03-14T13:29:25.286Z"} };
Definition at line 1088 of file CrestApi.cxx.
void Crest::CrestClient::createRunLumiInfo | ( | nlohmann::json & | body | ) |
This method creates an entry for run information.
Run informations go into a separate table. (This method is an analogue of the create_run_lumi_info method in Python)
body | - run information in JSON format. Example: |
std::string str19 = "{\"since\":\"10\",\"run\":\"7777771\",\"lb\":\"62\",\"starttime\":\"10\",\"endtime\":\"200\"}"; json body = json::parse(str19);
Definition at line 1216 of file CrestApi.cxx.
void Crest::CrestClient::createTag | ( | const std::string & | name, |
const std::string & | desc, | ||
const std::string & | timeType | ||
) |
This method create a tag in the CREST database.
(This method is an analogue of the create_tag method in Python)
name | - tag name. |
desc | - description. |
timeType | - time type. |
Definition at line 246 of file CrestApi.cxx.
void Crest::CrestClient::createTag | ( | const std::string & | name, |
const std::string & | desc, | ||
const std::string & | timeType, | ||
const std::string & | payloadSpec | ||
) |
This method create a tag in the CREST database.
(This method is an analogue of the create_tag method in Python)
name | - tag name. |
desc | - description. |
timeType | - time type.. |
payloadSpec | - payload specification. |
Definition at line 253 of file CrestApi.cxx.
void Crest::CrestClient::createTag | ( | nlohmann::json & | js | ) |
This method creates a tag in the CREST database.
(This method is an analogue of the create_tag method in Python)
js | - tag in the JSON format. Example: |
json js = { {"description", "none"}, {"endOfValidity", 0}, {"insertionTime", "2018-12-06T11:18:35.641+0000"}, {"lastValidatedTime", 0}, {"modificationTime", "2018-12-06T11:18:35.641+0000"}, {"name", "test_M"}, {"payloadSpec", "stave: Int32, eta: Int32, mag: Float, base: Float, free: Float"}, {"synchronization", "none"}, {"timeType", "time"} };
Definition at line 262 of file CrestApi.cxx.
void Crest::CrestClient::createTagDump | ( | nlohmann::json & | js | ) |
Method to store a tag in the local file system.
The path to stored data defined by a CrestClient constructor (m_root_folder and m_data_folder variables). (This method is an analogue of the create_tag method in Python)
js | - tag as a JSON object. |
Definition at line 311 of file CrestApi.cxx.
void Crest::CrestClient::createTagMetaInfo | ( | const std::string & | tagname, |
nlohmann::json & | js | ||
) |
This method creates a tag meta info in the CREST database.
(The tag meta info JSON contains the tag name, that is why it is better to use the method variant without tagname parameter. This method exists for the compatibility reasons.)
tagname | - tag name, |
js | - tag meta info in the JSON format. Example: |
nlohmann::json js = { {"tagName", "test_MvG4"}, {"description", "desc-01"}, {"tagInfo", "taginf-01"}, {"chansize", 0}, {"colsize", 0}, {"insertionTime", "2019-03-14T13:29:25.286Z"} };
Definition at line 2028 of file CrestApi.cxx.
void Crest::CrestClient::createTagMetaInfo | ( | nlohmann::json & | js | ) |
This method creates a tag meta info in the CREST database.
js | - tag meta info in the JSON format. Example: |
nlohmann::json js = { {"tagName", "test_MvG4"}, {"description", "desc-01"}, {"tagInfo", "taginf-01"}, {"chansize", 0}, {"colsize", 0}, {"insertionTime", "2019-03-14T13:29:25.286Z"} };
Definition at line 1998 of file CrestApi.cxx.
void Crest::CrestClient::createTagMetaInfoFs | ( | nlohmann::json & | js | ) |
This is an auxillary method, it creates a tag meta info on the file system storage.
js | - tag meta info in the JSON format. Example: |
nlohmann::json js = { {"tagName", "test_MvG4"}, {"description", "desc-01"}, {"tagInfo", "taginf-01"}, {"chansize", 0}, {"colsize", 0}, {"insertionTime", "2019-03-14T13:29:25.286Z"} };
Definition at line 2165 of file CrestApi.cxx.
void Crest::CrestClient::createTagMetaInfoIOVDbSvc | ( | const std::string & | tagname, |
nlohmann::json & | js | ||
) |
This method creates a tag meta info in the CREST database.
tagname | - tag name |
js | - tag meta info in the JSON IOVDbSvc format. Example: |
{ "channel_list": [ {"0": "ATLAS_PREFERRED0"}, {"1": "ATLAS_PREFERRED1"} ], "node_description": "description of the node", "payload_spec": "AlgorithmID:UInt32,LBAvInstLumi:Float,LBAvEvtsPerBX:Float,LumiType:UInt32,Valid:UInt32,BunchInstLumi:Blob64k" }
Definition at line 2134 of file CrestApi.cxx.
void Crest::CrestClient::createTagMetaInfoIOVDbSvc | ( | const std::string & | tagname, |
nlohmann::json & | js, | ||
const std::string & | description | ||
) |
This method creates a tag meta info in the CREST database.
tagname | - tag name |
description | - tag meta info description, this parameter is a part of the tag meta info in CREST format |
js | - tag meta info in the JSON IOVDbSvc format. Example: |
{ "channel_list": [ {"0": "ATLAS_PREFERRED0"}, {"1": "ATLAS_PREFERRED1"} ], "node_description": "description of the node", "payload_spec": "AlgorithmID:UInt32,LBAvInstLumi:Float,LBAvEvtsPerBX:Float,LumiType:UInt32,Valid:UInt32,BunchInstLumi:Blob64k" }
Definition at line 2147 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::findAllIovs | ( | const std::string & | tagname | ) |
This method finds all iovs for a given tag name.
The result is a JSON object. (This method is an analogue of the find_all_iovs method in Python)
tagname | - tag name. |
IOV list = [ { "tagName": "CaloOflHadDMCorr2-R123-FTFP-BERT-IOVDEP-01", "since": 0, "insertionTime": "2023-09-13T12:53:46+0000", "payloadHash": "ba26ca6b4e17b0c33b008045c5e703bdf049a1546e731ec7c3d2d39789b1ce1f" }, ... ]
IOV JSON parameters:
tagName string tag name since number since time parameter insertionTime string($date-time) insertion time payloadHash string payload hash
Definition at line 390 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::findAllIovs | ( | const std::string & | tagname, |
int | size, | ||
int | page, | ||
const std::string & | sort, | ||
const std::string & | dateformat | ||
) |
This method finds all iovs for a given tag name.
The result is a JSON object. It is a version of this method with all parameters. (This method is an analogue of the find_all_iovs method in Python)
tagname | - tag name. |
size | - page size. |
page | - page number. |
sort | - sort pattern (for example "{id.since:ASC}"). |
dateformat | - format of the input time fields. |
Definition at line 415 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::findAllIovsFs | ( | const std::string & | tagname | ) |
This method finds all iovs by the tag name in the file storage.
This is the auxilary method. It is called by find_all_iovs method when CrestClient is initialized in the file storage mode. (This method is an analogue of the find_all_iovs method in Python)
tagname | - tag name. |
Definition at line 1781 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::findAllIovsFs | ( | const std::string & | tagname, |
int | size, | ||
int | page | ||
) |
This method finds all iovs for a given tag name.
The result is a JSON object. It is a verion of this method with all parameters. This method works with the file data storage. (This method is an analogue of the find_all_iovs method in Python)
tagname | - tag name. |
size | - page size. |
page | - page number. |
Definition at line 2664 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::findGlobalTag | ( | const std::string & | name | ) |
Finds a global tag by name.
This method will search for a global tag with the given name. Only one global tag should be returned. (This method is an analogue of the find_global_tag method in Python) This method returns the global tag as a JSON object.
name | - global tag name |
globalTag(ATLAS-P2-ITK-22-02-00)= [ { "name": "ATLAS-P2-ITK-22-02-00", "validity": 1, "description": "A geometry like global tag", "release": "1", "insertionTime": "2023-11-01T08:45:09+0000", "snapshotTime": "2023-11-01T08:45:09+0000", "scenario": "undefined", "workflow": "undefined", "type": "U", "insertionTimeMilli": 1698828309000, "snapshotTimeMilli": 1698828309000 } ]
Global Tag JSON parameters:
name string global tag name validity number validity description string global tag description release string release insertionTime string($date-time) insertion time snapshotTime string($date-time) snapshot time scenario string scenario workflow string workfow type string type snapshotTimeMilli integer($int64) snapshot time (in milliseconds) insertionTimeMilli integer($int64) insertion time (in milliseconds)
Definition at line 745 of file CrestApi.cxx.
std::string Crest::CrestClient::findGlobalTagAsString | ( | const std::string & | name | ) |
Finds a global tag by name.
This method will search for a global tag with the given name. Only one global tag should be returned. (This method is an analogue of the find_global_tag_as_string method in Python) This method returns the global tag as a string.
name | - global tag name |
Definition at line 724 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::findGlobalTagFs | ( | const std::string & | name | ) |
The auxillary method to find a global tag by name stored in file storage.
(This method is an analogue of the find_global_tag method in Python) This method returns the global tag as a JSON object.
name | - global tag name |
Definition at line 2307 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::findGlobalTagMap | ( | const std::string & | name | ) |
This method search for mappings using the global tag name.
(This method is an analogue of the find_global_tag_map method in Python)
name | - name of a global tag |
global tag map(CREST-MC23-SDR-RUN3-02)= [ { "globalTagName": "CREST-MC23-SDR-RUN3-02", "record": "None", "label": "/TGC/NSW/CHARGE/SIDEA", "tagName": "sTgcPdoSideA-Const-1p0-icpt0" }, ... ]
Global Tag Map JSON parameters:globalTagName string global tag name record string record label string label tagName string tag name
Definition at line 849 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::findGlobalTagMapFs | ( | const std::string & | name | ) |
The auxillary method to find a global tag by name for the file storage.
This method will search for a global tag with the given name. Only one global tag should be returned. (This method is an analogue of the find_global_tag method in Python) This method returns the global tag as a JSON object.
name | - global tag name |
Definition at line 2412 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::findRunLumiInfo | ( | const urlParameters & | params | ) |
Finds a run/lumi information lists using parameters.
This method allows to perform search. (This method is an analogue of the find_run_lumi_info method in Python) @params params - search parameters. Example:
urlParameters params28; params28.add("from","2018010101"); params28.add("to","2019050500"); params28.add("format","Time"); json tag_info28 = myCrestClientF.findRunLumiInfo(params28);
Definition at line 1228 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::findTag | ( | const std::string & | name | ) |
This method finds a tag by the name.
The result is a JSON object (This method is an analogue of the find_tag method in Python)
name | - tag name |
tag(AtlasLayerMat_v16_ATLAS-R1-2012-02)= [ { "name": "AtlasLayerMat_v16_ATLAS-R1-2012-02", "timeType": "run-lumi", "payloadSpec": "crest-json-single-iov", "synchronization": "none", "description": "Migrated from {\"dbname":"OFLP200","nodeFullpath":"/GLOBAL/TrackingGeo/LayerMaterialV2","schemaName":"COOLOFL_GLOBAL"}", "lastValidatedTime": 0, "endOfValidity": 0, "insertionTime": "2023-09-22T12:22:07+0000", "modificationTime": "2023-09-22T12:22:07+0000", } ]
JSON parameters:
name string tag name timeType string time type payloadSpec string payload specification synchronization string synchronization description string tag description lastValidatedTime number last validated time endOfValidity number end of validity insertionTime string($date-time) insertion time modificationTime string($date-time) modification time
See the tag JSON description in CrestClient::findTag method.
Definition at line 226 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::findTagFs | ( | const std::string & | name | ) |
This method finds a tag by the tag name in the file storage.
This is the auxilary method. It is called by findTag method when CrestClient is initialized in the file storage mode. (This method is an analogue of the find_tag method in Python)
name | - tag name. |
Definition at line 1762 of file CrestApi.cxx.
void Crest::CrestClient::flush | ( | ) |
Auxillary method to write all the data at the end of a session.
The path to stored data defined by a CrestClient constructor (in m_root_folder and m_data_folder variables).
Definition at line 351 of file CrestApi.cxx.
std::string Crest::CrestClient::getBlob | ( | const std::string & | hash | ) |
This method finds payload data by hash; the payload object contains the real BLOB.
The result returns as a string. (This method is an analogue of the get_blob method in Python)
hash | - hash |
Definition at line 915 of file CrestApi.cxx.
std::string Crest::CrestClient::getBlobFs | ( | const std::string & | hash | ) |
This method finds payload data by hash in the file storage; the payload object contains the real BLOB.
The result returns as a string. This is an auxillary method called by getBlob method when CrestClient innitialized in the file storage mode. (This method is an analogue of the get_blob method in Python)
hash | - hash |
Definition at line 2600 of file CrestApi.cxx.
std::string Crest::CrestClient::getBlobInStream | ( | const std::string & | hash, |
std::ofstream & | out | ||
) |
This method finds payload data by hash; the payload object contains the real BLOB.
The result returns in the stream "out" (BE CAREFUL!). (This method is an analogue of the get_blob method in Python)
hash | - hash | |
[out] | out | - output stream to get the result. |
Definition at line 936 of file CrestApi.cxx.
std::string Crest::CrestClient::getBlobInStreamFs | ( | const std::string & | hash, |
std::ofstream & | out | ||
) |
This method finds payload data by hash; the payload object contains the real BLOB.
The result returns in the stream "out" (BE CARREFULL!). This is an auxillary method called by getBlobInStream method when CrestClient innitialized in the file storage mode. (This method is an analogue of the get_blob method in Python)
hash | - hash | |
[out] | out | - output stream to get the result. |
Definition at line 2610 of file CrestApi.cxx.
std::string Crest::CrestClient::getClientVersion | ( | ) |
This method returns the full CrestApi version.
Definition at line 2809 of file CrestApi.cxx.
std::string Crest::CrestClient::getCrestVersion | ( | ) |
This method returns the full CREST Server version.
Definition at line 2783 of file CrestApi.cxx.
std::string Crest::CrestClient::getCrestVersion2 | ( | ) |
This method returns the full CREST Server version.
Definition at line 2863 of file CrestApi.cxx.
|
private |
Auxillary method to get an environment variable DAT_PATH.
Definition at line 1866 of file CrestApi.cxx.
std::string Crest::CrestClient::getDateAndTime | ( | ) |
The auxillary method to get a current data and time.
It used to create a payload meta info on the local file storage using the storePayloadDump method.
Definition at line 2534 of file CrestApi.cxx.
|
private |
Auxillary method to get an environment variable.
varname | - a variable name. |
Definition at line 1856 of file CrestApi.cxx.
|
private |
std::string Crest::CrestClient::getFileName | ( | const std::string & | path | ) |
Auxillary method to extract the file name from iov hash (the hash is a path in the file storage).
(The old method name is get_filename)
path | - an iov hash. |
Definition at line 1802 of file CrestApi.cxx.
|
private |
Auxillary method to get a file as a string.
(The old method name - get_file_string)
path | - path to the file. |
Definition at line 1733 of file CrestApi.cxx.
std::string Crest::CrestClient::getFirstLetters | ( | const std::string & | str | ) |
This is an auxillary method extract first letters from the string (hash).
The letter number is in the s_FS_PREFIX_LENGTH variable. This method is used to create a catalogue sub directory in the file storage.
str | - string to extract first letters. |
Definition at line 2762 of file CrestApi.cxx.
std::string Crest::CrestClient::getHash | ( | std::string_view | str | ) |
The auxillary method to calculate a hash code for a given string.
This method uses SHA256 algorithm (PicoSHA2 C++ library)
str | - a string |
Definition at line 2441 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::getJson | ( | const std::string & | str | ) |
Auxillary method to convert string in to JSON object.
str | - string (std::string) |
Definition at line 1650 of file CrestApi.cxx.
|
private |
Auxillary method to convert string in to JSON object.
str | - string (std::string) |
method | - method name, wthich calls this method. This parameter is used to throw an error exception. |
Definition at line 1631 of file CrestApi.cxx.
int Crest::CrestClient::getMajorVersion | ( | std::string & | str | ) |
This is an auxillary method to extract a major version number from full version string.
Definition at line 2813 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::getMgmtInfo | ( | ) |
This is an auxillary method to read the CREST Server properties.
{ "build":{ "artifact":"crestdb", "name":"crestdb", "time":"2023-12-02T15:21:57.045Z", "version":"4.2.1", "group":"hep.crest" } }
Definition at line 2767 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::getMgmtInfo2 | ( | ) |
This is an auxillary method to read the CREST Server properties.
This method is an analogue of the getMgmtInfo() method, but it uses another path to get the data.
{ "build":{ "artifact":"crestdb", "name":"crestdb", "time":"2023-12-02T15:21:57.045Z", "version":"4.2.1", "group":"hep.crest" } }
Definition at line 2847 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::getPayloadAsJson | ( | const std::string & | hash | ) |
This method finds a payload resource associated to the hash.
The payload returns as a JSON object. (This method is an analogue of the get_payload method in Python)
hash | - hash. |
Definition at line 1042 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::getPayloadAsJsonFS | ( | const std::string & | hash | ) |
This auxillary method finds a payload resource associated to the hash in the local file storage.
The payload returns as a JSON object. (This method is an analogue of the get_payload method in Python)
hash | - hash. |
Definition at line 2566 of file CrestApi.cxx.
std::string Crest::CrestClient::getPayloadAsString | ( | const std::string & | hash | ) |
This method finds a payload resource associated to the hash.
The payload returns as a string. (This method is an analogue of the get_payload method in Python)
hash | - hash. |
Definition at line 1066 of file CrestApi.cxx.
std::string Crest::CrestClient::getPayloadAsStringFS | ( | const std::string & | hash | ) |
This auxillary method finds a payload resource associated to the hash in the local file storage.
The payload returns as a string. (This method is an analogue of the get_payload method in Python)
hash | - hash. |
Definition at line 2547 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::getPayloadMetaInfo | ( | const std::string & | hash | ) |
This method finds a payload resource associated to the hash.
This method retrieves metadata of the payload resource. The result is a JSON object. (This method is an analogue of the get_payload_meta_info method in Python)
hash | - hash. |
{ "checkSum": "SHA-256", "compressionType": "none", "hash": "8f7b558c70032fb0e93f608408b0d49d2af75572d29877013226c65ffc01dbc5", "insertionTime": "2023-09-22T12:22:07+0000", "objectName": "none", "objectType": "iovs", "size": 246, "version": "default" }
Definition at line 956 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::getPayloadMetaInfoAsJsonFS | ( | const std::string & | hash | ) |
This auxillary method finds a payload resource associated to the hash in the local file storage.
This method retrieves metadata of the payload resource. The result is a JSON object. (This method is an analogue of the get_payload_meta_info method in Python)
hash | - hash. |
Definition at line 2594 of file CrestApi.cxx.
std::string Crest::CrestClient::getPayloadMetaInfoAsString | ( | const std::string & | hash | ) |
This method finds a payload resource associated to the hash.
This method retrieves metadata of the payload resource. The result is a string. (This method is an analogue of the get_payload_meta_info method in Python)
hash | - hash. |
Definition at line 980 of file CrestApi.cxx.
std::string Crest::CrestClient::getPayloadMetaInfoAsStringFS | ( | const std::string & | hash | ) |
This auxillary method finds a payload resource associated to the hash in the local file storage.
This method retrieves metadata of the payload resource. The result is a string. (This method is an analogue of the get_payload_meta_info method in Python)
hash | - hash. |
Definition at line 2572 of file CrestApi.cxx.
|
private |
Definition at line 3149 of file CrestApi.cxx.
|
private |
Auxillary method to get the first element from resources of the new CREST server response.
js | - CREST server response. |
Definition at line 1922 of file CrestApi.cxx.
|
private |
Auxillary method to get a resources parameter from new CREST server response.
js | - CREST server response. |
Definition at line 1916 of file CrestApi.cxx.
int Crest::CrestClient::getSize | ( | const std::string & | tagname | ) |
This metghod gets the number of iovs for the given tag.
This method allows to select the count of iovs in a tag. (This method is an analogue of the get_size method in Python)
tagname | - tag name. |
Definition at line 454 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::getSizeByTagFS | ( | const std::string & | tagname | ) |
This method gets the number of iovs for tags matching pattern.
This method allows to select the count of iovs in a tag. This method works with the file storage. (This method is an analogue of the get_size_by_tag method in Python) The result is a JSON object.
tagname | - tag name. |
int Crest::CrestClient::getSizeFS | ( | const std::string & | tagname | ) |
This metghod gets the number of iovs for the given tag.
This method allows to select the count of iovs in a tag. This method works with the file storage. This method works with the file storage. (This method is an analogue of the get_size method in Python)
tagname | - tag name. |
Definition at line 2645 of file CrestApi.cxx.
void Crest::CrestClient::getTagDataInfo | ( | const std::string & | tagname | ) |
This is an auxillary method for checking how many unique IOVs(hashcodes) are in an IOV list.
It is used to check how many payload files are in the data storage, and how this number corresponds to the unique hashcode number. It works with the file data storage.
tagname | - tag name. |
Definition at line 2712 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::getTagMetaInfo | ( | const std::string & | tagname | ) |
This method gets a tag meta info from the CREST database.
tagname | - tag name |
tagMetaInfo(AtlasLayerMat_v16_ATLAS-R1-2012-02)= [ { "tagName": "AtlasLayerMat_v16_ATLAS-R1-2012-02", "description": "{\"dbname\":\"OFLP200\",\"nodeFullpath\":\"/GLOBAL/TrackingGeo/LayerMaterialV2\",\"schemaName\":\"COOLOFL_GLOBAL\"}", "chansize": 1, "colsize": 1, "tagInfo": "{\"channel_list\":[{\"0\":\"\"}],\"node_description\":\"<timeStamp>run-lumi</timeStamp><addrHeader><address_header service_type=\\\"256\\\" clid=\\\"142190734\\\" /></addrHeader><typeName>Trk::LayerMaterialMap</typeName>\",\"payload_spec\":\"PoolRef:String4k\"}", "insertionTime": "2023-09-22T12:22:07+0000" } ]
Tag Meta Info JSON parameters:
tagName string description string chansize integer($int32) colsize integer($int32) tagInfo string insertionTime string($date-time)
Definition at line 2037 of file CrestApi.cxx.
std::string Crest::CrestClient::getTagMetaInfoElement | ( | const std::string & | name, |
nlohmann::json & | js | ||
) |
Auxillary method to get an element by name from the Tag Meta Info.
name | - an element name. |
js | - the Tag Meta Info in JSON format. Example: |
[{"node_description": " string of the folder description "}, {"channel_list" : [0, 10, 20] }, {"channel_names: ["first", "second", "third"]}, {"payload_specification":"stave: Int32, eta: Int32, mag: Float, base: Float, free: Float"}]
Definition at line 1936 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::getTagMetaInfoFs | ( | const std::string & | name | ) |
This is an auxillary method, it gets a tag meta info from file system storage.
tagname | - tag name |
Definition at line 2205 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::getTagMetaInfoIOVDbSvc | ( | const std::string & | tagname | ) |
This method gets a tag meta info from the CREST database in IOVDbSvc format.
tagname | - tag name |
Definition at line 2120 of file CrestApi.cxx.
bool Crest::CrestClient::isJson | ( | const std::string & | str | ) |
This method checks if a string is in the JSON format.
(It is an auxillary method to check the CREST Server response format.)
str | - the string to be checked. |
Definition at line 1688 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::listFolders | ( | ) |
This method returns the folder list on CREST DB.
(This method is an analogue of the list_folders method in Python)
Definition at line 1163 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::listGlobalTags | ( | ) |
This method finds a global tag lists.
The result is a JSON object. (This method is an analogue of the list_global_tags method in Python)
Global tag list = [ { "description": "A geometry like global tag", "insertionTime": "2023-11-01T08:45:09+0000", "insertionTimeMilli": 1698828309000, "name": "ATLAS-P2-ITK-22-02-00", "release": "1", "scenario": "undefined", "snapshotTime": "2023-11-01T08:45:09+0000", "snapshotTimeMilli": 1698828309000, "type": "U", "validity": 1, "workflow": "undefined" }, ... ]
See the single global tag JSON description in CrestClient::findGlobalTag method.
Definition at line 773 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::listGlobalTags | ( | const std::string & | name, |
int | size, | ||
int | page, | ||
const std::string & | sort | ||
) |
This method returns the global tag list.
It is a verion of this method with all parameters.
name | - global tag name pattern, |
size | - page size, |
page | - page number, |
sort | - sorting order. |
Definition at line 805 of file CrestApi.cxx.
std::string Crest::CrestClient::listGlobalTagsAsString | ( | ) |
This method finds a global tag lists.
The rusult is a string. (This method is an analogue of the list_global_tags_as_string method in Python)
Definition at line 788 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::listPayloadTagInfo | ( | ) |
This method retrieves monitoring information on all payloads as a list of payload tag information.
(This method is an analogue of the list_payload_tag_info method in Python)
payloadTagInfo(TrtCalibT0-MC-run2-run3_00-01)= [ { "tagname": "TrtCalibT0-MC-run2-run3_00-01", "niovs": 9, "totvolume": 63630.0, "avgvolume": 7070.0 } ]
JSON parameters:
tagname string tag name niovs integer number of IOVs totvolume number($float) total volume avgvolume number($float) average volume
Definition at line 1023 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::listPayloadTagInfo | ( | const std::string & | tagname | ) |
This method retrieves monitoring information on payload as a list of payload tag information.
(This method is an analogue of the list_payload_tag_info method in Python) @params tagname - tag name.
Definition at line 1002 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::listRunLumiInfo | ( | ) |
This method gets full list of run/lumi information data.
(This method is an analogue of the list_run_lumi_info method in Python)
Definition at line 1198 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::listTags | ( | const std::string & | name, |
int | size, | ||
int | page, | ||
const std::string & | sort | ||
) |
This method returns the tag list.
It is a verion of this method with all parameters. (This method is an analogue of the list_tags method in Python)
name | - tag name pattern, |
size | - page size, |
page | - page number, |
sort | - sorting order. |
Definition at line 167 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::listTags | ( | int | size, |
int | page | ||
) |
This method returns the tag list.
It is a verion of this method with additional parameters. (This method is an analogue of the list_tags method in Python)
size | - page size. |
page | - page number. |
Definition at line 121 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::listTags | ( | void | ) |
This method returns the tag list.
(This method is an analogue of the list_tags method in Python)
[ { "description": "A new tag for testing", "endOfValidity": 0, "insertionTime": "2023-04-27T18:51:44+0000", "lastValidatedTime": -1, "modificationTime": "2023-10-27T13:05:38+0000", "name": "A-TEST-TAG-03", "payloadSpec": "JSON", "synchronization": "any", "timeType": "time" }, ... ]
See the single tag JSON description in CrestClient::findTag method.
Definition at line 103 of file CrestApi.cxx.
|
private |
|
private |
This method removes all XML/HTML tags from a string.
(It is an auxillary method to clear the CREST Server response.)
xmlBuffer | - the text (a std::string ) to be cleared. |
Definition at line 1656 of file CrestApi.cxx.
|
private |
General auxiliary method to make request to the CREST Server.
This method is used by other methods realizing the requests with the concrete kinds of data (iovs|payloads|tags…).
current_path | - URL request path |
action | - Action (GET|POST|DELETE) |
js | - a JSON object which has to be send or changed with this request. If this argument has to be void it has to be set as nullptr. |
Definition at line 1366 of file CrestApi.cxx.
|
private |
General auxillary method to make request to the CREST Server.
This method is used by other methods realizing the requests with the concrete kinds of data (iovs|payloads|tags…).
current_path | - URL request path |
action | - Action (GET|POST|DELETE) |
js | - a JSON object which has to be send or changed with this request. If this argument has to be void it has to be set as nullptr. |
method_name | - the name of method which called this method. This parameter is used in the error messages. |
Definition at line 1289 of file CrestApi.cxx.
|
private |
General auxillary method to make request to the CREST Server.
This method used to get a Blob as a stream. See method getBlobInStream(std::string& hash, std::ofstream& out).
current_path | - URL request path |
action | - Action (GET|POST|DELETE) |
js | - a JSON object which has to be send or changed with this request. If this argument has to be void it has to be set as nullptr. |
out | - stream to get the result |
Definition at line 1378 of file CrestApi.cxx.
|
private |
This method removes all end of line and carriage return symbols from a string.
(It is an auxillary method to clear the CREST Server response.)
str | - the text (a std::string ) to be cleared. |
Definition at line 1677 of file CrestApi.cxx.
void Crest::CrestClient::removeGlobalTag | ( | const std::string & | name | ) |
This method allows to remove a Global Tag form CREST DB.
(This method is an analogue of the remove_global_tag method in Python)
name | - global tag name |
Definition at line 758 of file CrestApi.cxx.
void Crest::CrestClient::removeTag | ( | const std::string & | tagName | ) |
This method allows to remove a Tag.
(This method is an analogue of the remove_tag method in Python)
tagName | - tag name |
Definition at line 209 of file CrestApi.cxx.
void Crest::CrestClient::removeTagFromGlobalTagMap | ( | const std::string & | global_tag, |
const std::string & | tag, | ||
const std::string & | label | ||
) |
This method removes a tag with the name tag and the label from the global tag map with name global_tag.
global_tag | - global tag name. |
tag | - tag name. |
label | - tag label in the global tag map. |
Definition at line 2902 of file CrestApi.cxx.
void Crest::CrestClient::replaceSymbols | ( | std::string & | str, |
const std::string & | from, | ||
const std::string & | to | ||
) |
This auxilary method replaces the substring from by the substring to.
str | - the string, where it is necessary to replace a substring. |
from | - the substring to be replaced. |
to | - the new substring to replace to replace the old one. |
Definition at line 3156 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::returnJArray | ( | nlohmann::json | js | ) |
This auxillary method creates a JSON array from a JSON object.
It used to convert a single objects (such as tags and global tags to JSON array in methods which retrive the data from a file starage.
js | - JSON object. |
Definition at line 2639 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::selectGroups | ( | const std::string & | tagname | ) |
Select groups for a given tagname.
This method allows to select a list of groups. The result is a JSON object. (This method is an analogue of the select_groups method in Python)
tagname | - tag name. |
Definition at line 579 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::selectGroups | ( | const std::string & | tagname, |
long | snapshot | ||
) |
Select groups for a given tagname.
This method allows to select a list of groups. The result is a JSON object. (This method is an analogue of the select_groups method in Python)
tagname | - tag name. |
snapshot | - snapshot. |
Definition at line 604 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::selectIovs | ( | const std::string & | tagname | ) |
Select iovs for a given tagname.
This method allows to select a list of iovs in a tag for a given snapshot time. The result is a JSON object. (This method is an analogue of the select_iovs method in Python)
tagname | - tag name. |
snapshot | - snapshot. |
Definition at line 493 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::selectIovs | ( | const std::string & | tagname, |
long | since, | ||
long | until, | ||
long | snapshot = 0 |
||
) |
This method selects all iovs for a given tag name and for the selected time interval (since-until).
The result is a JSON array. It is a verion of this method with all parameters. This method works with the CREST server. If until=-1 it means until is infinity, in this case "until=INF" in the URL request.
tagname | - tag name. |
since | - start time. |
until | - end time. |
snapshot | - snapshot (the default value is 0) |
Definition at line 544 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::selectIovs | ( | const std::string & | tagname, |
long | snapshot | ||
) |
Select iovs for a given tagname.
This method allows to select a list of iovs in a tag for a given snapshot time. The result is a JSON object. (This method is an analogue of the select_iovs method in Python)
tagname | - tag name. |
snapshot | - snapshot. |
Definition at line 517 of file CrestApi.cxx.
nlohmann::json Crest::CrestClient::selectIovsFS | ( | const std::string & | tagname, |
long | since, | ||
long | until | ||
) |
This method selects all iovs for a given tag name and for the selected time interval (since-until).
The result is a JSON array. It is a verion of this method with all parameters. This method works with the file storage. If until=-1 it means until is infinity, in this case "until=INF" in the URL request.
tagname | - tag name. |
since | - start time. |
until | - end time. |
Definition at line 2689 of file CrestApi.cxx.
std::list< std::string > Crest::CrestClient::shortListTagsFs | ( | ) |
This method returns a tag list stored in the file storage.
This is the auxilary method. The result is the tag names only (as a string list). (The old name of this method is short_list_tags_fs)
Definition at line 1749 of file CrestApi.cxx.
|
private |
Auxillary method to split a string.
str | - a string to split. |
delim | - a deliminator. |
Definition at line 1982 of file CrestApi.cxx.
void Crest::CrestClient::storeBatchIOVs | ( | nlohmann::json & | js | ) |
This method stores an IOV set on the CREST server.
The IOVs are send as a JSON array.
js | - IOV set. |
Definition at line 630 of file CrestApi.cxx.
std::string Crest::CrestClient::storeBatchPayloadFilesRequest | ( | const std::string & | tag, |
uint64_t | endtime, | ||
const std::string & | js | ||
) |
This is an auxilary method to make an request to store several payloads from files in the batch mode.
tag | - tag name. |
endtime | - end time. |
js | - payloads in the JSON format. |
Definition at line 2948 of file CrestApi.cxx.
|
private |
This is an auxillary method to make an request to store several payloads in the batch mode.
(The old method name - store_batch_payload_request)
tag | - tag name. |
endtime | - end time. |
js | - payloads in the JSON format. |
Definition at line 1505 of file CrestApi.cxx.
void Crest::CrestClient::storeBatchPayloads | ( | const std::string & | tag_name, |
const std::string & | iovsetupload, | ||
uint64_t | endtime = 0 |
||
) |
This method stores several payloads in batch mode.
(This method is an analogue of the store_batch_payloads method in Python)
tag_name | - tag name. |
endtime | - end time, if endtime = 0, the server does not use this parameter in the internal check. |
iovsetupload | - iov data as a string. |
Example how to use these parameters:
std::string name58 = "test_MvG3b"; uint64_t endtime58 = 200; std::string str58 = "[{\"data\":\"aaa\",\"since\":100},{\"data\":\"bbb\",\"since\":150}]"; myCrestClient.storeBatchPayloads(name58, endtime58, str58);
Definition at line 1131 of file CrestApi.cxx.
void Crest::CrestClient::storeBatchPayloads | ( | const std::string & | tag_name, |
nlohmann::json & | js, | ||
uint64_t | endtime = 0 |
||
) |
This method stores several payloads in batch mode.
(This method is an analogue of the store_batch_payloads method in Python)
tag_name | - tag name. |
endtime | - end time, if endtime = 0, the server does not use this parameter in the internal check. |
iovsetupload | - iov data as a JSON object. |
Example how to use these parameters:
std::string name58 = "test_MvG3a"; uint64_t endtime58 = 200; std::string str58 = "[{\"data\":\"aaa\",\"since\":100},{\"data\":\"bbb\",\"since\":150}]"; nlohmann::json js58 = myCrestClient.getJson(str58); myCrestClient.storeBatchPayloads(name58, endtime58, js58)
Definition at line 1138 of file CrestApi.cxx.
void Crest::CrestClient::storeBatchPayloads | ( | const std::string & | tag_name, |
uint64_t | endtime, | ||
const std::string & | iovsetupload | ||
) |
This method stores several payloads in batch mode.
(The deprecated method.) (This method is an analogue of the store_batch_payloads method in Python)
tag_name | - tag name. |
endtime | - end time. |
iovsetupload | - iov data as a string. |
Example how to use these parameters:
std::string name58 = "test_MvG3b"; uint64_t endtime58 = 200; std::string str58 = "[{\"data\":\"aaa\",\"since\":100},{\"data\":\"bbb\",\"since\":150}]"; myCrestClient.storeBatchPayloads(name58, endtime58, str58);
Definition at line 1102 of file CrestApi.cxx.
void Crest::CrestClient::storeBatchPayloads | ( | const std::string & | tag_name, |
uint64_t | endtime, | ||
nlohmann::json & | js | ||
) |
This method stores several payloads in batch mode.
(The deprecated method.) (This method is an analogue of the store_batch_payloads method in Python)
tag_name | - tag name. |
endtime | - end time. |
iovsetupload | - iov data as a JSON object. |
Example how to use these parameters:
std::string name58 = "test_MvG3a"; uint64_t endtime58 = 200; std::string str58 = "[{\"data\":\"aaa\",\"since\":100},{\"data\":\"bbb\",\"since\":150}]"; nlohmann::json js58 = myCrestClient.getJson(str58); myCrestClient.storeBatchPayloads(name58, endtime58, js58)
Definition at line 1109 of file CrestApi.cxx.
void Crest::CrestClient::storeBatchPayloadsFiles | ( | const std::string & | tag_name, |
uint64_t | endtime, | ||
nlohmann::json & | js | ||
) |
This method stores several payloads from files in batch mode.
(The deprecated method.)
tag_name | - tag name. |
endtime | - end time. |
js | - iov data as a JSON object. |
Example how to use these parameters:
std::string file1 = "/tmp/mvg01.txt"; std::string file2 = "/tmp/mvg02.txt"; std::string d1 = "file://" + file1; std::string d2 = "file://" + file2; std::string str = "[{\"data\":\"" + d1 + "\",\"since\":100},{\"data\":\"" + d2 + "\",\"since\":150}]"; nlohmann::json js = myCrestClient.getJson(str); myCrestClient.storeBatchPayloadsFiles(tagname, endtime, js);
Definition at line 2925 of file CrestApi.cxx.
void Crest::CrestClient::storeBatchPayloadsFs | ( | const std::string & | tag_name, |
nlohmann::json & | js | ||
) |
This auxillary method stores several payloads in batch mode in the file storage.
(This method is an analogue of the store_batch_payloads method in Python)
tag_name | - tag name. |
iovsetupload | - iov data as a JSON object. |
Example how to use these parameters:
std::string name39 = "test_M"; std::string str39 = "[{\"data\":\"aaa\",\"since\":100},{\"data\":\"bbb\",\"since\":150}]"; nlohmann::json js39 = myCrestClient.getJson(str39); myCrestClient.storeBatchPayloadsFs(name39, js39);
Definition at line 1837 of file CrestApi.cxx.
void Crest::CrestClient::storeBatchPayloadsFs | ( | const std::string & | tag_name, |
std::string & | iovsetupload | ||
) |
This auxillary method stores several payloads in batch mode in the file storage.
(This method is an analogue of the store_batch_payloads method in Python)
tag_name | - tag name. |
iovsetupload | - iov data as a string. |
Example how to use these parameters:
std::string name39 = "test_M"; std::string str39 = "[{\"data\":\"aaa\",\"since\":100},{\"data\":\"bbb\",\"since\":150}]"; myCrestClient.storeBatchPayloadsFs(name39, str39);
Definition at line 1826 of file CrestApi.cxx.
void Crest::CrestClient::storeData | ( | const std::string & | tag, |
uint64_t | endtime, | ||
uint64_t | since, | ||
const std::string & | file | ||
) |
This method stores a payload from a file in the database, associated to a given IOV since and tag name.
This method allows to insert a payload and an IOV.
tag | - tag name. |
since | - since. A parameter to create an IOV together with payload. |
file | - the file name (with the path) which contains the payload. |
Definition at line 3119 of file CrestApi.cxx.
void Crest::CrestClient::storeDataArray | ( | const std::string & | tag, |
uint64_t | endtime, | ||
std::map< uint64_t, std::string > | m | ||
) |
This method stores several payloads from files in batch mode.
tag_name | - tag name. |
endtime | - end time. |
m | - map with pairs: since - file name (with the path). |
Example how to use these parameters:
uint64_t endtime = 200; uint64_t since1 = 100; uint64_t since2 = 150; std::string file1 = "/tmp/mvg01.txt"; std::string file2 = "/tmp/mvg02.txt"; std::map<uint64_t, std::string> data; data[since1] = file1; data[since2] = file2; myCrestClient.storeBatchFiles(tagname, endtime, data);
Definition at line 3130 of file CrestApi.cxx.
void Crest::CrestClient::storePayload | ( | const std::string & | tag, |
uint64_t | since, | ||
const std::string & | js | ||
) |
Create a payload in the database, associated to a given iov since and tag name.
This method allows to insert a payload and an IOV. (This method is an analogue of the store_payload method in Python)
tag | - tag name. |
since | - since. A parameter to create an iov together with payload. |
js | - payload. |
Definition at line 1252 of file CrestApi.cxx.
void Crest::CrestClient::storePayloadDump | ( | const std::string & | tag, |
uint64_t | since, | ||
const std::string & | js | ||
) |
Method to store a payload in the local file system.
This is an auxillary method. It is used by storePayload method if CrestClient is innitialized in the file storage mode. (The old name of this method is store_payload_dump)
tag | - tag name. |
since | - since. |
js | - payload as a JSON object. |
Definition at line 2446 of file CrestApi.cxx.
void Crest::CrestClient::streamTest | ( | ) |
this is test only, later it will be deleted (The old method name is streamtest)
Definition at line 1810 of file CrestApi.cxx.
void Crest::CrestClient::updateGlobalTag | ( | const std::string & | name, |
nlohmann::json | body | ||
) |
This method allows to update a GlobalTag.Arguments: the name has to uniquely identify a global tag.
(This method is an analogue of the update_global_tag method in Python)
name | - global tag name |
body | - JSON object. A new global tag in JSON format. Example for body parameter: json body = { {"name","MvG_TEST_01"}, {"validity",0}, {"description","test"}, {"release","1"}, {"insertionTime","2018-12-18T11:32:58.081+0000"}, {"snapshotTime","2018-12-18T11:32:57.952+0000"}, {"scenario","test2"}, {"workflow","M"}, {"type","t"}, {"snapshotTimeMilli","null"}, {"insertionTimeMilli","null"} }; |
Definition at line 672 of file CrestApi.cxx.
void Crest::CrestClient::updateTag | ( | const std::string & | tagname, |
nlohmann::json | body | ||
) |
This method allows to update tag record in the CREST DB.
(This method is an analogue of the update_tag method in Python)
tagname | - tg name. |
body | - new parameters in the JSON format. This JSON object contain the parameters which have to be changed only. Example: |
json body = { {"description","none"}, {"lastValidatedTime",0}, {"endOfValidity",40} }
Definition at line 278 of file CrestApi.cxx.
void Crest::CrestClient::updateTagMetaInfo | ( | const std::string & | tagname, |
nlohmann::json & | js | ||
) |
This method updates a tag meta info in the CREST database.
tagname | - tag name |
js | - a JSON object with new parameters (These parameters will be changed in the CREST DB). Example: |
nlohmann::json js = { {"tagName", "test_MvG4"}, {"description", "desc-01"}, {"tagInfo", "taginf-01"}, {"chansize", 0}, {"colsize", 0}, {"insertionTime", "2019-03-14T13:29:25.286Z"} };
Definition at line 2085 of file CrestApi.cxx.
void Crest::CrestClient::updateTagMetaInfo | ( | nlohmann::json & | js | ) |
This method updates a tag meta info in the CREST database.
js | - a JSON object with new parameters (These parameters will be changed in the CREST DB). Example: |
nlohmann::json js = { {"tagName", "test_MvG4"}, {"description", "desc-01"}, {"tagInfo", "taginf-01"}, {"chansize", 0}, {"colsize", 0}, {"insertionTime", "2019-03-14T13:29:25.286Z"} };
Definition at line 2060 of file CrestApi.cxx.
void Crest::CrestClient::updateTagMetaInfoFs | ( | const std::string & | tagname, |
nlohmann::json & | js | ||
) |
This auxillary method updates a tag meta info in local file storage.
tagname | - tag name |
js | - a JSON object with new parameters (These parameters will be changed in the CREST DB). Example: |
nlohmann::json js = { {"tagName", "test_MvG4"}, {"description", "desc-01"}, {"tagInfo", "taginf-01"}, {"chansize", 0}, {"colsize", 0}, {"insertionTime", "2019-03-14T13:29:25.286Z"} };
Definition at line 2224 of file CrestApi.cxx.
void Crest::CrestClient::updateTagSpecification | ( | const std::string & | tagname, |
const std::string & | objectType | ||
) |
This method cahnges object type specification.
(The old name of this method is update_tag_specification)
tagname | - tag name. |
objectType | - new object type. |
Definition at line 293 of file CrestApi.cxx.
|
private |
Definition at line 75 of file CrestApi.h.
|
private |
Definition at line 76 of file CrestApi.h.
|
private |
Definition at line 72 of file CrestApi.h.
|
private |
Definition at line 70 of file CrestApi.h.
|
private |
Definition at line 69 of file CrestApi.h.
|
private |
Definition at line 65 of file CrestApi.h.
|
private |
Definition at line 71 of file CrestApi.h.
|
private |
Definition at line 67 of file CrestApi.h.
|
private |
Definition at line 74 of file CrestApi.h.
|
private |
Definition at line 66 of file CrestApi.h.
|
private |
Definition at line 68 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 78 of file CrestApi.h.
|
inlinestatic |
Definition at line 259 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 122 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 88 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 90 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 103 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 112 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 102 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 106 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 113 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 109 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 110 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 115 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 117 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 105 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 101 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 107 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 84 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 83 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 79 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 81 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 87 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 95 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 94 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 96 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 121 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 123 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 120 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 86 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 85 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 92 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 91 of file CrestApi.h.
|
inlinestaticprivate |
Definition at line 77 of file CrestApi.h.