QGIS/external/mdal/frmts/mdal_binary_dat.hpp

42 lines
970 B
C++
Raw Normal View History

2018-05-16 11:20:25 +02:00
/*
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 <string>
#include <vector>
#include <memory>
#include <iosfwd>
#include <iostream>
#include <fstream>
2018-07-18 09:00:34 +02:00
#include "mdal_data_model.hpp"
2018-05-16 11:20:25 +02:00
#include "mdal.h"
namespace MDAL
{
class LoaderBinaryDat
{
public:
LoaderBinaryDat( const std::string &datFile );
void load( Mesh *mesh, MDAL_Status *status );
private:
bool readVertexTimestep( const Mesh *mesh,
2018-07-18 09:00:34 +02:00
std::shared_ptr<DatasetGroup> group,
2018-08-29 12:10:03 +02:00
std::shared_ptr<DatasetGroup> groupMax,
2018-07-18 09:00:34 +02:00
double time,
bool hasStatus,
int sflg,
std::ifstream &in );
2018-05-16 11:20:25 +02:00
std::string mDatFile;
};
} // namespace MDAL
#endif //MDAL_BINARY_DAT_HPP