1 #ifndef CondCore_CondDB_KeyList_h
2 #define CondCore_CondDB_KeyList_h
29 namespace persistency {
36 void load(
const std::vector<unsigned long long>&
keys );
39 boost::shared_ptr<T>
get(
size_t n)
const {
45 m_objects[
n] = deserialize<T>(
i->second.first,
i->second.second.first,
i->second.second.second );
48 throwException(
"Payload for index "+boost::lexical_cast<std::string>(n)+
" has not been found.",
52 return boost::static_pointer_cast<
T>(
m_objects[
n] );
61 mutable std::map<size_t,std::pair<std::string,std::pair<cond::Binary,cond::Binary> > >
m_data;
62 mutable std::vector<boost::shared_ptr<void> >
m_objects;
std::map< size_t, std::pair< std::string, std::pair< cond::Binary, cond::Binary > > > m_data
std::vector< boost::shared_ptr< void > > m_objects
void init(IOVProxy iovProxy)
void load(const std::vector< unsigned long long > &keys)
void throwException(const std::string &message, const std::string &methodName)