From 2ce989f220b1613fd3cb197d3398c6d1de0f21c0 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Wed, 8 Feb 2017 07:50:05 -0800 Subject: [PATCH] Hadrons: default I/O to HDF5 --- extras/Hadrons/Global.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extras/Hadrons/Global.hpp b/extras/Hadrons/Global.hpp index 81afab13..3e11ddf8 100644 --- a/extras/Hadrons/Global.hpp +++ b/extras/Hadrons/Global.hpp @@ -145,6 +145,15 @@ std::string typeName(void) return typeName(typeIdPt()); } +// default writers/readers +#ifdef HAVE_HDF5 +typedef Hdf5Reader CorrReader; +typedef Hdf5Writer CorrWriter; +#else +typedef XmlReader CorrReader; +typedef XmlWriter CorrWriter; +#endif + END_HADRONS_NAMESPACE #endif // Hadrons_Global_hpp_