Changes in src/Parser/XyzParser.hpp [4151b0:765f16]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/XyzParser.hpp
r4151b0 r765f16 14 14 #endif 15 15 16 #include <string> 16 17 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 26 template<> 27 struct 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 }; 19 36 20 37 /** 21 38 * Parser for XYZ files. 22 39 */ 23 class XyzParser : public FormatParser { 40 template <> 41 class FormatParser< xyz > : virtual public FormatParserInterface, public FormatParser_common 42 { 24 43 public: 25 XyzParser();26 virtual ~ XyzParser();44 FormatParser(); 45 virtual ~FormatParser(); 27 46 void load(std::istream* file); 28 47 void save(std::ostream* file, const std::vector<atom *> &atoms);
Note:
See TracChangeset
for help on using the changeset viewer.