Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/XyzParser.hpp

    r4151b0 r765f16  
    1414#endif
    1515
     16#include <string>
    1617
    17 #include <string>
    18 #include "Parser/FormatParser.hpp"
     18
     19#include "FormatParser.hpp"
     20#include "FormatParserTrait.hpp"
     21#include "FormatParserInterface.hpp"
     22#include "FormatParser_common.hpp"
     23#include "ParserTypes.hpp"
     24
     25// declaration of specialized FormatParserTrait
     26template<>
     27struct FormatParserTrait<xyz>
     28{
     29  //!> Name of the parser
     30  static const std::string name;
     31  //!> suffix of the files the parser understands to read and write
     32  static const std::string suffix;
     33  //!> ParserTypes enumeration for the parser
     34  static const enum ParserTypes type;
     35};
    1936
    2037/**
    2138 * Parser for XYZ files.
    2239 */
    23 class XyzParser : public FormatParser {
     40template <>
     41class FormatParser< xyz >  : virtual public FormatParserInterface, public FormatParser_common
     42{
    2443public:
    25   XyzParser();
    26   virtual ~XyzParser();
     44  FormatParser();
     45  virtual ~FormatParser();
    2746  void load(std::istream* file);
    2847  void save(std::ostream* file, const std::vector<atom *> &atoms);
Note: See TracChangeset for help on using the changeset viewer.