ATLAS Offline Software
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: ClassID_traits.h 613558 2014-08-26 17:16:16Z krasznaa $
8 #ifndef XAODCORE_CLASSID_TRAITS_H
9 #define XAODCORE_CLASSID_TRAITS_H
10 
38 
39 // System include(s):
40 extern "C" {
41 # include <stdint.h>
42 }
43 #include <string>
44 #include <typeinfo>
45 
47 typedef uint32_t CLID;
48 
50 template< class T >
52 
65 template< class T >
66 struct ClassID_traits {
67 
69  static CLID ID() {
71  }
73  static const std::string& typeName() {
75  }
77  static const std::type_info& typeId() {
79  }
80 
81 }; // struct ClassID_traits
82 
83 #endif // not XAODCORE_CLASSID_TRAITS_H
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ERROR_you_should_use_the_CLASS_DEF_macro_to_define_CLID_and_VERSION
Helper used in order to get the clear error message for the developer.
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:28
ClassID_traits::typeName
static const std::string & typeName()
Function returning a user-readable type name for the selected type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:73
ClassID_traits
Default, invalid implementation of ClassID_traits.
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:40
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
ClassID_traits::typeId
static const std::type_info & typeId()
Function returning a type identifier for the selected type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:77
ClassID_traits::ID
static CLID ID()
Function returning a unique integer identifier for the selected type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:69