00001
00002
00003 #ifndef ASGTOOLS_TOOLHANDLEARRAY_H
00004 #define ASGTOOLS_TOOLHANDLEARRAY_H
00005
00006
00007 #include "AsgTools/AsgToolsConf.h"
00008
00009 #ifdef ASGTOOL_ATHENA
00010 # include "GaudiKernel/ToolHandle.h"
00011 #elif defined(ASGTOOL_STANDALONE)
00012
00013
00014 #include <vector>
00015 #if __cplusplus >= 201100
00016 # include <initializer_list>
00017 #endif // C++11
00018
00019
00020 #include "AsgTools/ToolHandle.h"
00021
00033 template< class T >
00034 class ToolHandleArray : public std::vector< ToolHandle< T > > {
00035
00036 public:
00038 ToolHandleArray();
00039 #if __cplusplus >= 201100
00041 ToolHandleArray( const std::initializer_list< ToolHandle< T > >& l );
00043 ToolHandleArray( const std::initializer_list< std::string >& l );
00044 #endif // C++11
00045
00047 StatusCode retrieve() const;
00048
00049 };
00050
00051
00052 #include "AsgTools/ToolHandleArray.icc"
00053
00054 #endif // Environment selection
00055 #endif // ASGTOOLS_TOOLHANDLEARRAY_H