ATLAS Offline Software
Loading...
Searching...
No Matches
dictionary.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 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#ifdef _POSIX_C_SOURCE
11#undef _POSIX_C_SOURCE
12#endif
13#ifdef _XOPEN_SOURCE
14#undef _XOPEN_SOURCE
15#endif
16#include <Python.h>
17
18#include <string>
19#include <vector>
20
21#include <CoolKernel/ChannelSelection.h>
22#include <CoolKernel/IObject.h>
23#include <CoolKernel/IObjectIterator.h>
24#include <CoolKernel/IFolder.h>
25#include <CoolKernel/IDatabase.h>
26#include <CoolKernel/IDatabaseSvc.h>
27
28#include <CoolKernel/IRecordSelection.h>
29#include <CoolKernel/FieldSelection.h>
30
31#include <CoolApplication/DatabaseSvcFactory.h>
32
33using cool::DatabaseSvcFactory;
34using cool::IDatabasePtr;
35using cool::IObject;
36using cool::IFolder;
37using cool::IFolderPtr;
38using cool::ChannelSelection;
39using cool::IObjectIteratorPtr;
40using cool::IObjectVectorPtr;
41using cool::ValidityKey;
42
43using std::string;
44using std::vector;
45
47struct dict {
48 //cool::IRecordSelection* dummy_irecordselection;
49 const vector<const cool::IRecordSelection*> dummy_recordselection_vector;
50};
51}
52
53// In pythonic_coracool.cxx
54
55const cool::RecordSpecification
56 get_coracool_payload_spec(IDatabasePtr cooldb, const string & folder);
57
58PyObject *browse_coracool(IDatabasePtr cooldb, const string & folder,
59 ValidityKey since, ValidityKey until,
60 const ChannelSelection &cs = ChannelSelection::all(),
61 const char *tag="",
62 PyObject *to_fetch = NULL,
63 PyObject *object_converter = NULL,
64 PyObject *inner_object_converter = NULL,
65 PyObject *iovkey_wrapper = NULL);
66
67// In quick_retrieve.cxx
68
69PyObject* quick_retrieve(const IObjectIteratorPtr& objects,
70 PyObject *object_converter,
71 PyObject *to_fetch = NULL,
72 const long max_records = -1,
73 const bool with_channel = true,
74 const bool loud = false,
75 PyObject *iovkey_wrapper = NULL,
76 PyObject *channel_name_mapping = NULL,
77 const bool with_time = false,
78 const bool as_unicode = false);
79
80cool::FieldSelection* make_fieldselection(
81 const std::string& name,
82 const cool::StorageType::TypeId typeId,
83 cool::FieldSelection::Relation relation,
84 PyObject* refValue);
85
86vector<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:49