mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
/*
|
|
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>
|
|
|
|
#include "mdal_defines.hpp"
|
|
#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,
|
|
Datasets &datOutputs,
|
|
float time,
|
|
bool isVector,
|
|
bool hasStatus,
|
|
int sflg,
|
|
std::ifstream &in );
|
|
|
|
void addDatasets( MDAL::Mesh *mesh,
|
|
const std::string &name,
|
|
const Datasets &datOutputs ) const;
|
|
|
|
std::string mDatFile;
|
|
};
|
|
|
|
} // namespace MDAL
|
|
#endif //MDAL_BINARY_DAT_HPP
|