DD4hep  1.28.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Static Public Member Functions | List of all members
dd4hep::detail::OpaqueDataBinder Class Reference

Helper class to bind string values to C++ data items. More...

#include <OpaqueDataBinder.h>

Public Member Functions

 OpaqueDataBinder ()=default
 Default constructor. More...
 
 ~OpaqueDataBinder ()=default
 Default destructor. More...
 
template<typename BINDER , typename T >
bool bind (const BINDER &b, T &object, const std::string &typ, const std::string &val)
 Binding function for scalar items. See the implementation function for the concrete instantiations. More...
 
template<typename T >
bool bind_sequence (T &object, const std::string &typ, const std::string &val)
 Binding function for sequences (unmapped STL containers) More...
 
template<>
bool bind_map (const MapBinder &b, Condition &object, const std::string &key_type, const std::string &val_type)
 Conditions binding function for STL maps. More...
 
template<>
bool insert_map (const MapBinder &b, Condition &object, const std::string &key_type, const std::string &key, const std::string &val_type, const std::string &val)
 Conditions: Filling function for STL maps. More...
 
template<>
bool insert_map (const MapBinder &b, Condition &object, const std::string &key_type, const std::string &val_type, const std::string &pair_data)
 Conditions: Filling function for STL maps. More...
 

Static Public Member Functions

template<typename BINDER , typename OBJECT >
static bool bind (const BINDER &b, OBJECT &object, const std::string &typ, const std::string &val)
 Binding function for scalar items. See the implementation function for the concrete instantiations. More...
 
template<typename OBJECT >
static bool bind_sequence (OBJECT &object, const std::string &typ, const std::string &val)
 Binding function for sequences (unmapped STL containers) More...
 
template<typename BINDER , typename OBJECT >
static bool bind_map (const BINDER &b, OBJECT &o, const std::string &key_type, const std::string &val_type)
 Binding function for STL maps. Does not fill data! More...
 
template<typename BINDER , typename OBJECT >
static bool insert_map (const BINDER &b, OBJECT &o, const std::string &key_type, const std::string &key, const std::string &val_type, const std::string &val)
 Filling function for STL maps. More...
 
template<typename BINDER , typename OBJECT >
static bool insert_map (const BINDER &b, OBJECT &o, const std::string &key_type, const std::string &val_type, const std::string &pair_data)
 Filling function for STL maps. More...
 

Detailed Description

Helper class to bind string values to C++ data items.

Author
M.Frank
Version
1.0

Definition at line 75 of file OpaqueDataBinder.h.

Constructor & Destructor Documentation

◆ OpaqueDataBinder()

dd4hep::detail::OpaqueDataBinder::OpaqueDataBinder ( )
default

Default constructor.

◆ ~OpaqueDataBinder()

dd4hep::detail::OpaqueDataBinder::~OpaqueDataBinder ( )
default

Default destructor.

Member Function Documentation

◆ bind() [1/2]

template<typename BINDER , typename OBJECT >
static bool dd4hep::detail::OpaqueDataBinder::bind ( const BINDER &  b,
OBJECT &  object,
const std::string &  typ,
const std::string &  val 
)
static

Binding function for scalar items. See the implementation function for the concrete instantiations.

◆ bind() [2/2]

template<typename BINDER , typename T >
bool dd4hep::detail::OpaqueDataBinder::bind ( const BINDER &  b,
T &  object,
const std::string &  typ,
const std::string &  val 
)

Binding function for scalar items. See the implementation function for the concrete instantiations.

Definition at line 57 of file OpaqueDataBinder.cpp.

◆ bind_map() [1/2]

template<typename BINDER , typename OBJECT >
template bool dd4hep::detail::OpaqueDataBinder::bind_map< MapBinder, OpaqueDataBlock > ( const BINDER &  b,
OBJECT &  o,
const std::string &  key_type,
const std::string &  val_type 
)
static

Binding function for STL maps. Does not fill data!

Binding function for STL maps.

Definition at line 272 of file OpaqueDataBinder.cpp.

◆ bind_map() [2/2]

template<>
bool dd4hep::detail::OpaqueDataBinder::bind_map ( const MapBinder b,
Condition object,
const std::string &  key_type,
const std::string &  val_type 
)

Conditions binding function for STL maps.

Definition at line 378 of file OpaqueDataBinder.cpp.

◆ bind_sequence() [1/2]

template<typename OBJECT >
static bool dd4hep::detail::OpaqueDataBinder::bind_sequence ( OBJECT &  object,
const std::string &  typ,
const std::string &  val 
)
static

Binding function for sequences (unmapped STL containers)

◆ bind_sequence() [2/2]

template<typename T >
bool dd4hep::detail::OpaqueDataBinder::bind_sequence ( T &  object,
const std::string &  typ,
const std::string &  val 
)

Binding function for sequences (unmapped STL containers)

Definition at line 118 of file OpaqueDataBinder.cpp.

◆ insert_map() [1/4]

template<typename BINDER , typename OBJECT >
bool dd4hep::detail::OpaqueDataBinder::insert_map ( const BINDER &  b,
OBJECT &  o,
const std::string &  key_type,
const std::string &  key,
const std::string &  val_type,
const std::string &  val 
)
static

Filling function for STL maps.

Definition at line 302 of file OpaqueDataBinder.cpp.

◆ insert_map() [2/4]

template<typename BINDER , typename OBJECT >
bool dd4hep::detail::OpaqueDataBinder::insert_map ( const BINDER &  b,
OBJECT &  o,
const std::string &  key_type,
const std::string &  val_type,
const std::string &  pair_data 
)
static

Filling function for STL maps.

Definition at line 334 of file OpaqueDataBinder.cpp.

◆ insert_map() [3/4]

template<>
bool dd4hep::detail::OpaqueDataBinder::insert_map ( const MapBinder b,
Condition object,
const std::string &  key_type,
const std::string &  key,
const std::string &  val_type,
const std::string &  val 
)

Conditions: Filling function for STL maps.

Definition at line 383 of file OpaqueDataBinder.cpp.

◆ insert_map() [4/4]

template<>
bool dd4hep::detail::OpaqueDataBinder::insert_map ( const MapBinder b,
Condition object,
const std::string &  key_type,
const std::string &  val_type,
const std::string &  pair_data 
)

Conditions: Filling function for STL maps.

Definition at line 389 of file OpaqueDataBinder.cpp.


The documentation for this class was generated from the following files: