35 #include "xdrfile/xdrfile.h" 36 #include "xdrfile/xdrfile_xtc.h" 37 #include "xdrfile/xdrfile_trr.h" 44 virtual std::vector<float> next() = 0;
45 virtual void write(std::vector<float> row) = 0;
46 virtual bool eof() = 0;
52 std::vector<float> next();
53 void write(std::vector<float> row);
64 XtcHandler(std::string fname, std::string mode);
66 std::vector<float> next();
67 void write(std::vector<float> row);
78 typedef std::unique_ptr<Handler> FilePointer;
80 template <
typename T> std::vector<T>
84 open(std::string fname, std::string mode);