1 #ifndef CondCore_PoolDBOutputService_h
2 #define CondCore_PoolDBOutputService_h
14 #ifndef COND_EXCEPTION_H
81 boost::shared_ptr<T> sptr(
m_p );
125 bool withlogging=
false);
133 bool withlogging=
false){
145 bool withlogging=
false) {
158 bool withlogging=
false){
173 bool withlogging=
false) {
245 bool withlogging=
false);
250 bool withlogging=
false);
254 void initDB(
bool forReading=
true );
282 std::vector< std::pair<std::string,std::string> >
m_newtags;
std::vector< std::pair< std::string, std::string > > m_newtags
const TimeTypeSpecs timeTypeSpecs[]
unsigned int insertIOV(cond::DbSession &pooldb, Record &record, const std::string &payloadToken, cond::Time_t tillTime)
Returns payload location index.
virtual ~GetTrivialToken()
void closeIOV(Time_t lastTill, const std::string &recordName, bool withlogging=false)
void initDB(bool forReading=true)
GetTrivialToken(std::string token)
virtual std::string operator()(cond::DbSession &pooldb) const
void fillRecord(edm::ParameterSet &pset)
std::map< std::string, cond::UserLogInfo > m_logheaders
void add(GetToken const &token, cond::Time_t time, const std::string &recordName, bool withlogging=false)
void preBeginLumi(const edm::LuminosityBlockID &, const edm::Timestamp &)
std::string tag(const std::string &recordName)
std::string classNameForTypeId(const std::type_info &typeInfo)
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
static std::string classNameForPointer(T *pointer)
unsigned long long Time_t
bool isNewTagRequest(const std::string &recordName)
Record & lookUpRecord(const std::string &recordName)
cond::DbSession session() const
cond::Time_t beginOfTime() const
std::string m_connectionString
GetTokenFromPointer(T *p)
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
virtual std::string operator()(cond::DbSession &) const
cond::TimeType m_timetype
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
void createNewIOV(const std::string &firstPayloadToken, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
void setLogHeaderForRecord(const std::string &recordName, const std::string &provenance, const std::string &usertext)
std::string storeObject(const T *object, const std::string &containerName)
void tagInfo(const std::string &recordName, cond::TagInfo &result)
void postModule(const edm::ModuleDescription &desc)
virtual ~PoolDBOutputService()
cond::Time_t m_currentTime
void preModule(const edm::ModuleDescription &desc)
void appendSinceTime(const std::string &payloadToken, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
cond::Time_t endOfTime() const
std::string timetypestr() const
std::string m_logConnectionString
cond::Time_t currentTime() const
std::string const & className() const
cond::TimeType m_timetype
std::map< std::string, Record > m_callbacks
char const * className(const std::type_info &t)
cond::DbSession m_session
void preEventProcessing(const edm::EventID &evtID, const edm::Timestamp &iTime)
std::string m_timetypestr
cond::UserLogInfo & lookUpUserLogInfo(const std::string &recordName)
const cond::Logger & queryLog() const
PoolDBOutputService(const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR)
std::auto_ptr< cond::Logger > m_logdb
unsigned int appendIOV(cond::DbSession &, Record &record, const std::string &payloadToken, cond::Time_t sinceTime)
virtual std::string operator()(cond::DbSession &) const =0