#include <BasicFolder.h>
Definition at line 21 of file BasicFolder.h.
◆ BasicFolder()
IOVDbNamespace::BasicFolder::BasicFolder |
( |
| ) |
|
◆ addChannelPayload() [1/4]
void IOVDbNamespace::BasicFolder::addChannelPayload |
( |
const cool::ChannelId & |
channelId, |
|
|
const coral::AttributeList & |
payload |
|
) |
| |
◆ addChannelPayload() [2/4]
void IOVDbNamespace::BasicFolder::addChannelPayload |
( |
const cool::ChannelId & |
channelId, |
|
|
const std::string & |
name, |
|
|
const coral::AttributeList & |
payload |
|
) |
| |
◆ addChannelPayload() [3/4]
void IOVDbNamespace::BasicFolder::addChannelPayload |
( |
const cool::ChannelId & |
channelId, |
|
|
const std::string & |
name, |
|
|
const std::vector< coral::AttributeList > & |
payload |
|
) |
| |
◆ addChannelPayload() [4/4]
void IOVDbNamespace::BasicFolder::addChannelPayload |
( |
const cool::ChannelId & |
channelId, |
|
|
const std::vector< coral::AttributeList > & |
payload |
|
) |
| |
◆ channelIds()
const std::vector< cool::ChannelId > & IOVDbNamespace::BasicFolder::channelIds |
( |
| ) |
|
◆ empty()
bool IOVDbNamespace::BasicFolder::empty |
( |
| ) |
const |
◆ getPayload() [1/2]
coral::AttributeList IOVDbNamespace::BasicFolder::getPayload |
( |
const cool::ChannelId & |
channelId | ) |
|
◆ getPayload() [2/2]
coral::AttributeList IOVDbNamespace::BasicFolder::getPayload |
( |
const std::string & |
channelName | ) |
|
Definition at line 86 of file BasicFolder.cxx.
90 if (not nameExists)
return invalidPayload;
91 const cool::ChannelId
channel=chanPtr->second;
◆ getVectorPayload() [1/2]
std::vector< coral::AttributeList > IOVDbNamespace::BasicFolder::getVectorPayload |
( |
const cool::ChannelId & |
channelId | ) |
|
◆ getVectorPayload() [2/2]
std::vector< coral::AttributeList > IOVDbNamespace::BasicFolder::getVectorPayload |
( |
const std::string & |
channelName | ) |
|
Definition at line 101 of file BasicFolder.cxx.
105 if (not nameExists)
return invalidVectorPayload;
106 const cool::ChannelId
channel=chanPtr->second;
◆ iov()
std::pair< cool::ValidityKey, cool::ValidityKey > IOVDbNamespace::BasicFolder::iov |
( |
| ) |
|
◆ isVectorPayload()
bool IOVDbNamespace::BasicFolder::isVectorPayload |
( |
| ) |
const |
◆ jsonPayload()
std::string IOVDbNamespace::BasicFolder::jsonPayload |
( |
const std::string & |
folderDescription, |
|
|
const std::string & |
spec |
|
) |
| |
Definition at line 119 of file BasicFolder.cxx.
122 std::string
result(
"\"data_array\" : [");
134 for (
auto &att : vAtt){
137 if (
sep.empty())
sep =s_delimiterJson;
154 std::ostringstream
os;
155 att[0].toOutputStream(
os);
157 const std::string
sep(
" : ");
158 const auto separatorPosition =
res.find(
sep);
159 const std::string payloadOnly=
res.substr(separatorPosition+3);
◆ setIov()
void IOVDbNamespace::BasicFolder::setIov |
( |
const std::pair< cool::ValidityKey, cool::ValidityKey > & |
iov | ) |
|
◆ setVectorPayloadFlag()
void IOVDbNamespace::BasicFolder::setVectorPayloadFlag |
( |
const bool |
flag | ) |
|
◆ m_channel2Name
std::map<int, std::string> IOVDbNamespace::BasicFolder::m_channel2Name |
|
private |
◆ m_channels
std::vector<cool::ChannelId> IOVDbNamespace::BasicFolder::m_channels |
|
private |
◆ m_iov
std::pair<cool::ValidityKey, cool::ValidityKey> IOVDbNamespace::BasicFolder::m_iov |
|
private |
◆ m_isVectorPayload
bool IOVDbNamespace::BasicFolder::m_isVectorPayload |
|
private |
◆ m_name2Channel
std::map<std::string, int> IOVDbNamespace::BasicFolder::m_name2Channel |
|
private |
◆ m_payload
std::map<int, coral::AttributeList> IOVDbNamespace::BasicFolder::m_payload |
|
private |
◆ m_vectorPayload
std::map<int, std::vector<coral::AttributeList> > IOVDbNamespace::BasicFolder::m_vectorPayload |
|
private |
The documentation for this class was generated from the following files:
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
FolderType determineFolderType(const std::string &folderDescription, const std::string &spec, const std::vector< cool::ChannelId > &chans)
Determine folder type with optional check using clid service to check clid matches typename.