/* MDAL - Mesh Data Abstraction Library (MIT License) Copyright (C) 2018 Peter Petrik (zilolv at gmail dot com) */ #ifndef MDAL_BINARY_DAT_HPP #define MDAL_BINARY_DAT_HPP #include #include #include #include #include #include #include "mdal_data_model.hpp" #include "mdal.h" #include "mdal_driver.hpp" namespace MDAL { class DriverBinaryDat: public Driver { public: DriverBinaryDat(); ~DriverBinaryDat( ) override; DriverBinaryDat *create() override; bool canReadDatasets( const std::string &uri ) override; void load( const std::string &datFile, Mesh *mesh ) override; bool persist( DatasetGroup *group ) override; private: bool readVertexTimestep( const Mesh *mesh, std::shared_ptr group, std::shared_ptr groupMax, RelativeTimestamp time, bool hasStatus, int sflg, std::ifstream &in ); std::string mDatFile; }; } // namespace MDAL #endif //MDAL_BINARY_DAT_HPP