DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
ConditionsTextRepository.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights For.
6 //
7 // reserved the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 #ifndef DDCOND_CONDITIONSTEXTREPOSITORY_H
14 #define DDCOND_CONDITIONSTEXTREPOSITORY_H
15 
16 // Framework include files
18 
19 // C/C++ include files
20 
22 namespace dd4hep {
23 
25  class IOV;
26  class IOVType;
27 
29  namespace cond {
30 
32 
33 
35 
41  public:
43 
48  class Entry {
49  public:
50  std::string name, address;
52  Entry() = default;
53  Entry(const Entry& copy) = default;
54  ~Entry() = default;
55  Entry& operator=(const Entry& copy) = default;
56  };
57 
59  typedef std::vector<Entry> Data;
60 
61  public:
65  virtual ~ConditionsTextRepository();
67  int save(ConditionsManager m, const std::string& output) const;
69  int load(const std::string& input, Data& data) const;
70  };
71 
72  } /* End namespace detail */
73 } /* End namespace dd4hep */
74 
75 #endif // DDCOND_CONDITIONSTEXTREPOSITORY_H
cond
AlignmentCondition::Object * cond
Definition: AlignmentsCalculator.cpp:68
dd4hep::cond::ConditionsTextRepository::Entry::address
std::string address
Definition: ConditionsTextRepository.h:50
dd4hep::cond::ConditionsTextRepository::Entry::Entry
Entry(const Entry &copy)=default
dd4hep::cond::ConditionsTextRepository::Data
std::vector< Entry > Data
Definition of the entry collection.
Definition: ConditionsTextRepository.h:59
ConditionsManager.h
dd4hep::cond::ConditionsTextRepository::Entry::Entry
Entry()=default
dd4hep::cond::ConditionsTextRepository::ConditionsTextRepository
ConditionsTextRepository()
Default constructor.
Definition: ConditionsTextRepository.cpp:40
dd4hep::cond::ConditionsTextRepository::Entry::~Entry
~Entry()=default
dd4hep::cond::ConditionsTextRepository::Entry::key
Condition::key_type key
Definition: ConditionsTextRepository.h:51
dd4hep::cond::ConditionsTextRepository::load
int load(const std::string &input, Data &data) const
Load the textrepository from file and fill user passed data structory.
Definition: ConditionsTextRepository.cpp:241
dd4hep::cond::ConditionsTextRepository::Entry::operator=
Entry & operator=(const Entry &copy)=default
dd4hep::cond::ConditionsTextRepository::save
int save(ConditionsManager m, const std::string &output) const
Save the textrepository to file.
Definition: ConditionsTextRepository.cpp:204
dd4hep::Condition::key_type
unsigned long long int key_type
Forward definition of the key type.
Definition: Conditions.h:54
dd4hep::cond::ConditionsManager
Manager class for condition handles.
Definition: ConditionsManager.h:46
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::cond::ConditionsTextRepository::~ConditionsTextRepository
virtual ~ConditionsTextRepository()
Default destructor.
Definition: ConditionsTextRepository.cpp:44
dd4hep::cond::ConditionsTextRepository
Forward declarations.
Definition: ConditionsTextRepository.h:40
dd4hep::detail::tools::copy
void copy(Alignment from, Alignment to)
Copy alignment object from source object.
Definition: AlignmentTools.cpp:43
dd4hep::cond::ConditionsTextRepository::Entry
Definition of a single Entry in the conditions repository.
Definition: ConditionsTextRepository.h:48
dd4hep::cond::ConditionsTextRepository::Entry::name
std::string name
Definition: ConditionsTextRepository.h:50