LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "FileCatalogMetadata.h"
Classes | |
struct | Config |
class | InheritedMetadata |
Public Types | |
using | collection_type = std::vector< std::pair< std::string, std::string >> |
using | value_type = collection_type::value_type |
using | Parameters = ServiceTable< Config > |
Public Member Functions | |
FileCatalogMetadata (Parameters const &config) | |
void | addMetadata (std::string const &key, std::string const &value) |
void | addMetadataString (std::string const &key, std::string const &value) |
void | getMetadata (collection_type &coll) const |
void | setMetadataFromInput (collection_type const &coll) |
bool | wantCheckSyntax () const noexcept |
Private Attributes | |
std::recursive_mutex | mutex_ {} |
bool const | checkSyntax_ |
std::vector< std::string > const | mdToInherit_ |
collection_type | md_ {} |
std::unique_ptr< InheritedMetadata > | imd_ {} |
Definition at line 21 of file FileCatalogMetadata.h.
using art::FileCatalogMetadata::collection_type = std::vector<std::pair<std::string, std::string>> |
Definition at line 23 of file FileCatalogMetadata.h.
Definition at line 63 of file FileCatalogMetadata.h.
using art::FileCatalogMetadata::value_type = collection_type::value_type |
Definition at line 24 of file FileCatalogMetadata.h.
|
explicit |
Definition at line 35 of file FileCatalogMetadata.cc.
References addMetadataString(), and mdToInherit_.
void art::FileCatalogMetadata::addMetadata | ( | std::string const & | key, |
std::string const & | value | ||
) |
Definition at line 78 of file FileCatalogMetadata.cc.
References checkSyntax_, art::errors::DataCorruption, md_, mutex_, and parser().
Referenced by addMetadataString().
void art::FileCatalogMetadata::addMetadataString | ( | std::string const & | key, |
std::string const & | value | ||
) |
Definition at line 72 of file FileCatalogMetadata.cc.
References addMetadata().
Referenced by FileCatalogMetadata(), and setMetadataFromInput().
void art::FileCatalogMetadata::getMetadata | ( | collection_type & | coll | ) | const |
Definition at line 117 of file FileCatalogMetadata.cc.
void art::FileCatalogMetadata::setMetadataFromInput | ( | collection_type const & | coll | ) |
Definition at line 99 of file FileCatalogMetadata.cc.
References addMetadataString(), imd_, mdToInherit_, mutex_, and value.
|
noexcept |
|
private |
Definition at line 136 of file FileCatalogMetadata.h.
Referenced by addMetadata(), and wantCheckSyntax().
|
private |
Definition at line 146 of file FileCatalogMetadata.h.
Referenced by setMetadataFromInput().
|
private |
Definition at line 143 of file FileCatalogMetadata.h.
Referenced by addMetadata(), and getMetadata().
|
private |
Definition at line 140 of file FileCatalogMetadata.h.
Referenced by FileCatalogMetadata(), and setMetadataFromInput().
|
mutableprivate |
Definition at line 132 of file FileCatalogMetadata.h.
Referenced by addMetadata(), getMetadata(), and setMetadataFromInput().