/* * FormatParserTrait.hpp * * Created on: Sep 27, 2011 * Author: heber */ #ifndef FORMATPARSERTRAIT_HPP_ #define FORMATPARSERTRAIT_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include "ParserTypes.hpp" /** This class encapsulates properties for a specific parser used during * construction of specialized FormatParser variant. */ template struct FormatParserTrait { //!> Name of the parser static const std::string name; //!> suffix of the files the parser understands to read and write static const std::string suffix; //!> ParserTypes enumeration for the parser static const enum ParserTypes type; }; template const std::string FormatParserTrait::name = ""; template const std::string FormatParserTrait::suffix = ""; template const ParserTypes FormatParserTrait::type = (ParserTypes)ParserTypesMax; // forward declare available specializations #include "FormatParserTrait_specializations_header.hpp" #endif /* FORMATPARSERTRAIT_HPP_ */