Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:14:31

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 //==========================================================================
0011 #include "Parsers/spirit/ParsersStandardMiscCommon.h"
0012 
0013 PARSERS_DEF_FOR_PAIR(bool,bool)
0014 PARSERS_DEF_FOR_PAIR(float,float)
0015 PARSERS_DEF_FOR_PAIR(double,double)
0016 PARSERS_DEF_FOR_PAIR(double,int)
0017 PARSERS_DEF_FOR_PAIR(double,long)
0018 PARSERS_DEF_FOR_PAIR(double,size_t)
0019 
0020 /// Namespace for the AIDA detector description toolkit
0021 namespace dd4hep {
0022 
0023   /// Namespace for the AIDA detector for utilities using boost::spirit parsers
0024   namespace Parsers {
0025 
0026     template <> int parse(std::vector<std::pair<double, double> >& result, const std::string& input) {
0027       return parse_(result, input);
0028     }
0029 
0030     template <> int parse(std::vector<std::pair<int, int> >& result, const std::string& input) {
0031       return parse_(result, input);
0032     }
0033 
0034     template <> int parse(std::vector<std::vector<std::string> >& result, const std::string& input) {
0035       return parse_(result, input);
0036     }
0037   }
0038 }