ATLAS Offline Software
Loading...
Searching...
No Matches
dictionary.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5// This file intentionally sparse on comments
6// It only exists for dictionary generation.
7// Please see quick_retrieve.cxx for detailed information on these functions.
8
9
10#include <string>
11#include <vector>
12#include <Python.h>
13
14#include <CoolKernel/ChannelSelection.h>
15#include <CoolKernel/IObject.h>
16#include <CoolKernel/IObjectIterator.h>
17#include <CoolKernel/IFolder.h>
18#include <CoolKernel/IDatabase.h>
19#include <CoolKernel/IDatabaseSvc.h>
20
21#include <CoolKernel/IRecordSelection.h>
22#include <CoolKernel/FieldSelection.h>
23
24#include <CoolApplication/DatabaseSvcFactory.h>
25
26using cool::DatabaseSvcFactory;
27using cool::IDatabasePtr;
28using cool::IObject;
29using cool::IFolder;
30using cool::IFolderPtr;
31using cool::ChannelSelection;
32using cool::IObjectIteratorPtr;
33using cool::IObjectVectorPtr;
34using cool::ValidityKey;
35
36using std::string;
37using std::vector;
38
40struct dict {
41 //cool::IRecordSelection* dummy_irecordselection;
42 const vector<const cool::IRecordSelection*> dummy_recordselection_vector;
43};
44}
45
46// In pythonic_coracool.cxx
47
48const cool::RecordSpecification
49 get_coracool_payload_spec(IDatabasePtr cooldb, const string & folder);
50
51PyObject *browse_coracool(IDatabasePtr cooldb, const string & folder,
52 ValidityKey since, ValidityKey until,
53 const ChannelSelection &cs = ChannelSelection::all(),
54 const char *tag="",
55 PyObject *to_fetch = NULL,
56 PyObject *object_converter = NULL,
57 PyObject *inner_object_converter = NULL,
58 PyObject *iovkey_wrapper = NULL);
59
60// In quick_retrieve.cxx
61
62PyObject* quick_retrieve(const IObjectIteratorPtr& objects,
63 PyObject *object_converter,
64 PyObject *to_fetch = NULL,
65 const long max_records = -1,
66 const bool with_channel = true,
67 const bool loud = false,
68 PyObject *iovkey_wrapper = NULL,
69 PyObject *channel_name_mapping = NULL,
70 const bool with_time = false,
71 const bool as_unicode = false);
72
73cool::FieldSelection* make_fieldselection(
74 const std::string& name,
75 const cool::StorageType::TypeId typeId,
76 cool::FieldSelection::Relation relation,
77 PyObject* refValue);
78
79vector<const cool::IRecordSelection*> make_selection_vector();
_object PyObject
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
Definition dictionary.h:42