32 #include "pteros/core/file_handler.h"
35 #include "xdrfile_xtc.h"
40 class XtcFile:
public FileHandlerRandomAccess {
42 XtcFile(std::string& fname): FileHandlerRandomAccess(fname), handle(nullptr), content(FileContent().traj(true).rand(true)) {}
43 virtual void open(
char open_mode);
46 virtual FileContent get_content_type()
const {
52 virtual void do_write(
const Selection &sel,
const FileContent& what)
override;
53 virtual bool do_read(System *sys, Frame *frame,
const FileContent& what)
override ;
55 virtual void seek_frame(
int fr)
override;
56 virtual void seek_time(
float t)
override;
57 virtual void tell_current_frame_and_time(
int& step,
float& t)
override;
58 virtual void tell_last_frame_and_time(
int& step,
float& t)
override;