11# undef _POSIX_C_SOURCE
18# pragma clang diagnostic push
19# pragma clang diagnostic ignored "-Wkeyword-macro"
25# pragma clang diagnostic pop
28#include <CoolKernel/ChannelSelection.h>
29#include <CoolKernel/IObject.h>
30#include <CoolKernel/IObjectIterator.h>
31#include <CoolKernel/IFolder.h>
32#include <CoolKernel/IDatabase.h>
33#include <CoolKernel/IDatabaseSvc.h>
35#include <CoolKernel/IRecordSelection.h>
36#include <CoolKernel/FieldSelection.h>
38#include <CoolApplication/DatabaseSvcFactory.h>
40#define likely(x) __builtin_expect((x),1)
41#define unlikely(x) __builtin_expect((x),0)
43using cool::DatabaseSvcFactory;
44using cool::IDatabasePtr;
47using cool::IFolderPtr;
48using cool::ChannelSelection;
49using cool::IObjectIteratorPtr;
50using cool::IObjectVectorPtr;
51using cool::ValidityKey;
67const cool::RecordSpecification
71 ValidityKey since, ValidityKey until,
72 const ChannelSelection &cs = ChannelSelection::all(),
76 PyObject *inner_object_converter = NULL,
84 const long max_records = -1,
85 const bool with_channel =
true,
86 const bool loud =
false,
88 PyObject *channel_name_mapping = NULL,
89 const bool with_time =
false,
90 const bool as_unicode =
false);
93 const std::string& name,
94 const cool::StorageType::TypeId typeId,
95 cool::FieldSelection::Relation relation,
const cool::RecordSpecification get_coracool_payload_spec(IDatabasePtr cooldb, const string &folder)
PyObject * quick_retrieve(const IObjectIteratorPtr &objects, PyObject *object_converter, PyObject *to_fetch=NULL, const long max_records=-1, const bool with_channel=true, const bool loud=false, PyObject *iovkey_wrapper=NULL, PyObject *channel_name_mapping=NULL, const bool with_time=false, const bool as_unicode=false)
PyObject * browse_coracool(IDatabasePtr cooldb, const string &folder, ValidityKey since, ValidityKey until, const ChannelSelection &cs=ChannelSelection::all(), const char *tag="", PyObject *to_fetch=NULL, PyObject *object_converter=NULL, PyObject *inner_object_converter=NULL, PyObject *iovkey_wrapper=NULL)
vector< const cool::IRecordSelection * > make_selection_vector()
cool::FieldSelection * make_fieldselection(const std::string &name, const cool::StorageType::TypeId typeId, cool::FieldSelection::Relation relation, PyObject *refValue)
const vector< const cool::IRecordSelection * > dummy_recordselection_vector