@@ -149,13 +149,14 @@ class CcdbApi //: public DatabaseInterface
149149 * @param timestamp Timestamp of the object to retrieve. If omitted, current timestamp is used.
150150 * @param headers Map to be populated with the headers we received, if it is not null.
151151 * @param optional etag from previous call
152- * @param optional createdNotAfter time limit for the object creation timestamp (TimeMachine mode)
152+ * @param optional createdNotAfter upper time limit for the object creation timestamp (TimeMachine mode)
153+ * @param optional createdNotBefore lower time limit for the object creation timestamp (TimeMachine mode)
153154 * @return the object, or nullptr if none were found.
154155 * @deprecated in favour of retrieveFromTFileAny as it is not limited to TObjects.
155156 */
156157 TObject* retrieveFromTFile (std::string const & path, std::map<std::string, std::string> const & metadata,
157158 long timestamp = -1 , std::map<std::string, std::string>* headers = nullptr , std::string const & etag = " " ,
158- const std::string& createdNotAfter = " " ) const ;
159+ const std::string& createdNotAfter = " " , const std::string& createdNotBefore = " " ) const ;
159160
160161 /* *
161162 * Retrieve object at the given path for the given timestamp.
@@ -165,13 +166,14 @@ class CcdbApi //: public DatabaseInterface
165166 * @param timestamp Timestamp of the object to retrieve. If omitted, current timestamp is used.
166167 * @param headers Map to be populated with the headers we received, if it is not null.
167168 * @param optional etag from previous call
168- * @param optional createdNotAfter time limit for the object creation timestamp (TimeMachine mode)
169+ * @param optional createdNotAfter upper time limit for the object creation timestamp (TimeMachine mode)
170+ * @param optional createdNotBefore lower time limit for the object creation timestamp (TimeMachine mode)
169171 * @return the object, or nullptr if none were found or type does not match serialized type.
170172 */
171173 template <typename T>
172174 T* retrieveFromTFileAny (std::string const & path, std::map<std::string, std::string> const & metadata,
173175 long timestamp = -1 , std::map<std::string, std::string>* headers = nullptr , std::string const & etag = " " ,
174- const std::string& createdNotAfter = " " ) const ;
176+ const std::string& createdNotAfter = " " , const std::string& createdNotBefore = " " ) const ;
175177
176178 /* *
177179 * Delete all versions of the object at this path.
@@ -365,7 +367,7 @@ class CcdbApi //: public DatabaseInterface
365367 */
366368 void * retrieveFromTFile (std::type_info const &, std::string const & path, std::map<std::string, std::string> const & metadata,
367369 long timestamp = -1 , std::map<std::string, std::string>* headers = nullptr , std::string const & etag = " " ,
368- const std::string& createdNotAfter = " " ) const ;
370+ const std::string& createdNotAfter = " " , const std::string& createdNotBefore = " " ) const ;
369371
370372 /* *
371373 * A helper function to extract object from a local ROOT file
@@ -391,9 +393,9 @@ class CcdbApi //: public DatabaseInterface
391393template <typename T>
392394T* CcdbApi::retrieveFromTFileAny (std::string const & path, std::map<std::string, std::string> const & metadata,
393395 long timestamp, std::map<std::string, std::string>* headers, std::string const & etag,
394- const std::string& createdNotAfter) const
396+ const std::string& createdNotAfter, const std::string& createdNotBefore ) const
395397{
396- return static_cast <T*>(retrieveFromTFile (typeid (T), path, metadata, timestamp, headers, etag, createdNotAfter));
398+ return static_cast <T*>(retrieveFromTFile (typeid (T), path, metadata, timestamp, headers, etag, createdNotAfter, createdNotBefore ));
397399}
398400
399401} // namespace ccdb
0 commit comments