Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fileselect.h
Go to the documentation of this file.
1 #ifndef _FILESELECT_H_
2 #define _FILESELECT_H_
3 
4 #include <cstdio>
5 #include <cstdlib>
6 #include <iostream>
7 #include <ostream>
8 #include <fstream>
9 #include <string.h>
10 #include <time.h>
11 #include <sstream>
12 #include <iomanip>
13 
14 #include "points.h"
15 #include "file.h"
16 
17 using std::cout;
18 using std::cerr;
19 using std::endl;
20 
21 class Fileselect {
22 
23  public:
24 
41  static datafile *detectFiletype(ifstream &infile, ofstream &outfile, bool loud, string infile_name, int dim,
42  std::vector< std::vector<int> > rFieldMappings, std::vector<index_order> rIndexOrder,
43  std::vector<adj_map> conv_factor, std::vector<adj_map> norm_val);
44 
51  static bool testTecplot(ifstream &infile, string datapacking);
52 
56  static void printFiletypes();
57 
58  private:
59 
60  static const int BUFFER_SIZE = 512;
61 };
62 
63 #endif
static datafile * detectFiletype(ifstream &infile, ofstream &outfile, bool loud, string infile_name, int dim, std::vector< std::vector< int > > rFieldMappings, std::vector< index_order > rIndexOrder, std::vector< adj_map > conv_factor, std::vector< adj_map > norm_val)
Use test functions to determine the filetype and to create a new file object for the input file...
Definition: fileselect.cpp:3
static const int BUFFER_SIZE
Definition: fileselect.h:60
Base class for file parsing.
Definition: file.h:32
static bool testTecplot(ifstream &infile, string datapacking)
Test if a file is a tecplot file.
Definition: fileselect.cpp:28
static void printFiletypes()
Print list valid filetypes to stdout.
Definition: fileselect.cpp:193