37# ifndef __BITPIT_DGF_HPP__
38# define __BITPIT_DGF_HPP__
56# include "bitpit_common.hpp"
57# include "Operators.hpp"
90 std::ifstream ifile_handle;
91 std::ofstream ofile_handle;
92 std::vector<std::vector<int> > dgf_error;
115 const std::string &a =
"inout"
132 std::vector<std::vector<double> > &,
133 std::vector<std::vector<int> > &
138 std::vector<std::array<double,3> > &,
139 std::vector<std::vector<int> > &
144 std::vector<std::array<double,3> > &,
145 std::vector<std::vector<int> > &,
147 const std::string &pidName =
"PID"
152 std::vector<std::vector<double> > &,
153 std::vector<std::vector<int> > &
158 std::vector<std::array<double,3> > &,
159 std::vector<std::vector<int> > &
162 template<
typename T,
typename ... T2 >
164 const std::string &data_name,
166 std::vector< T > &
data,
169 template<
typename T,
typename ... T2 >
171 const std::string &data_name,
173 std::vector< T > &
data,
176 template <
typename T,
typename ... T2 >
178 const std::string &data_name,
180 std::vector< T > &
data,
183 template <
typename T,
typename ... T2 >
185 const std::string &data_name,
187 std::vector< T > &
data,
223 std::vector<std::string> &,
224 std::vector<std::string> &,
236 std::vector<std::vector<int> > &
240template<
typename T >
241unsigned int readData(
242 std::ifstream &file_handle,
244 std::vector< T > &
Data
250 std::vector<std::vector<double> > &,
251 std::vector<std::vector<int> > &
257 std::vector<std::array<double,3> > &,
258 std::vector<std::vector<int> > &
261unsigned int readVertexData(
262 std::ifstream &file_handle,
264 std::vector< T > &data,
265 const std::string &data_name =
""
267template<
typename T >
268unsigned int readSimplexData(
269 std::ifstream &file_handle,
271 std::vector< T > &data,
272 const std::string &data_name =
""
276template <
typename T >
277unsigned int writeData(
286 std::vector<std::vector<double> > &,
287 std::vector<std::vector<int> > &
293 std::vector<std::array<double,3> > &,
294 std::vector<std::vector<int> > &
297template <
typename T >
298unsigned int writeVertexData(
299 std::ofstream &file_handle,
301 std::vector< T > &
Data,
302 const std::string &Data_name =
""
304template <
typename T >
305unsigned int writeSimplexData(
306 std::ofstream &file_handle,
308 std::vector< T > &
Data,
309 const std::string &Data_name =
""
Interface to DGF I/O function.
void close(const std::string &a="inout")
void save(int &, int &, std::vector< std::vector< double > > &, std::vector< std::vector< int > > &)
void open(const std::string &)
void display(std::ostream &)
void load(int &, int &, std::vector< std::vector< double > > &, std::vector< std::vector< int > > &)
unsigned int scan(std::ifstream &, int &, int &, std::vector< std::string > &, std::vector< std::string > &, std::vector< int > &, std::vector< int > &)
unsigned int writeMesh(std::ofstream &, int &, int &, std::vector< std::vector< double > > &, std::vector< std::vector< int > > &)
unsigned int check(std::ifstream &, std::vector< std::vector< int > > &)
unsigned int checkData(std::ifstream &, int &)
unsigned int readMesh(std::ifstream &, int &, int &, std::vector< std::vector< double > > &, std::vector< std::vector< int > > &)
unsigned int scanData(std::ifstream &, int &)
structure holding meta-information
std::vector< std::string > sS_data
std::vector< std::string > sV_data
std::vector< int > nV_data
std::vector< int > nS_data