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_ASCII_DAT_HPP
|
|
|
|
#define MDAL_ASCII_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 LoaderAsciiDat
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
LoaderAsciiDat( const std::string &datFile );
|
|
|
|
void load( Mesh *mesh, MDAL_Status *status );
|
|
|
|
|
|
|
|
private:
|
|
|
|
void readVertexTimestep(
|
|
|
|
const Mesh *mesh,
|
2018-07-18 09:00:34 +02:00
|
|
|
std::shared_ptr<DatasetGroup> group,
|
2018-05-16 11:20:25 +02:00
|
|
|
double t,
|
|
|
|
bool isVector,
|
|
|
|
bool hasStatus,
|
|
|
|
std::ifstream &stream );
|
|
|
|
|
|
|
|
void readFaceTimestep(
|
|
|
|
const Mesh *mesh,
|
2018-07-18 09:00:34 +02:00
|
|
|
std::shared_ptr<DatasetGroup> group,
|
2018-05-16 11:20:25 +02:00
|
|
|
double t,
|
|
|
|
bool isVector,
|
|
|
|
std::ifstream &stream );
|
|
|
|
|
|
|
|
std::string mDatFile;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace MDAL
|
|
|
|
#endif //MDAL_ASCII_DAT_HPP
|