/* MDAL - Mesh Data Abstraction Library (MIT License) Copyright (C) 2018 Peter Petrik (zilolv at gmail dot com) */ #ifndef MDAL_ASCII_DAT_HPP #define MDAL_ASCII_DAT_HPP #include #include #include #include #include #include #include "mdal_data_model.hpp" #include "mdal.h" namespace MDAL { class LoaderAsciiDat { public: LoaderAsciiDat( const std::string &datFile ); void load( Mesh *mesh, MDAL_Status *status ); private: void readVertexTimestep( const Mesh *mesh, std::shared_ptr group, double t, bool isVector, bool hasStatus, std::ifstream &stream ); void readFaceTimestep( const Mesh *mesh, std::shared_ptr group, double t, bool isVector, std::ifstream &stream ); std::string mDatFile; }; } // namespace MDAL #endif //MDAL_ASCII_DAT_HPP