DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep
Rev:Unversioneddirectory
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DDCore
src
Callback.cpp
Go to the documentation of this file.
1
// $Id: $
2
//==========================================================================
3
// AIDA Detector description implementation for LCD
4
//--------------------------------------------------------------------------
5
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6
// All rights reserved.
7
//
8
// For the licensing terms see $DD4hepINSTALL/LICENSE.
9
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10
//
11
// Author : M.Frank
12
//
13
//==========================================================================
14
15
// Framework include files
16
#include "
DD4hep/Callback.h
"
17
#include "
DD4hep/Exceptions.h
"
18
19
using namespace
DD4hep;
20
22
void
CallbackSequence::checkTypes
(
const
std::type_info& typ1,
const
std::type_info& typ2,
void
* test) {
23
if
(!test) {
24
throw
unrelated_type_error
(typ1, typ2,
"Cannot install a callback for these 2 types."
);
25
}
26
}
27
Callback.h
DD4hep::CallbackSequence::checkTypes
static void checkTypes(const std::type_info &typ1, const std::type_info &typ2, void *test)
Check the compatibility of two typed objects. The test is the result of a dynamic_cast.
Definition:
Callback.cpp:22
DD4hep::unrelated_type_error
Exception class to signal operations on unrelated classes.
Definition:
Exceptions.h:31
Exceptions.h
Generated on Fri Dec 2 2016 12:31:07 for DD4hep by
1.8.6