#include <iostream>
#include <fstream>
#include <string>
#include <cassert>
#include <vector>
#include <algorithm>
#include <iterator>
#include <utility>
#include <sstream>
#include <cstring>
#include <cstdio>
Functions | |
void | extractWords (const std::string &line, string::size_type beginIndx, const std::string &delimit, std::vector< string > &variableNames) |
std::pair< bool, int > | extractNumber (const std::string &word) |
void | readTecplotFile (std::istream &tecFile, std::vector< double > &vertexVariables, int &numVariablesPerVtx, std::vector< int > &connectivity, int &numNodesPerElem, std::vector< std::string > &variableNames) |
void | printVTK (std::ostream &vtuFile, std::vector< double > &vertexVariables, int &numDims, int &numVariablesPerVtx, std::vector< int > &connectivity, int &numNodesPerElem, std::vector< std::string > &variableNames) |
bool | strequals (const char *src, const char *dst) |
int | main (int argc, char **argv) |
std::pair<bool, int> extractNumber | ( | const std::string & | word | ) |
Referenced by readTecplotFile().
void extractWords | ( | const std::string & | line, | |
string::size_type | beginIndx, | |||
const std::string & | delimit, | |||
std::vector< string > & | variableNames | |||
) |
Referenced by readTecplotFile().
int main | ( | int | argc, | |
char ** | argv | |||
) |
References printVTK(), readTecplotFile(), and strequals().
void printVTK | ( | std::ostream & | vtuFile, | |
std::vector< double > & | vertexVariables, | |||
int & | numDims, | |||
int & | numVariablesPerVtx, | |||
std::vector< int > & | connectivity, | |||
int & | numNodesPerElem, | |||
std::vector< std::string > & | variableNames | |||
) |
void readTecplotFile | ( | std::istream & | tecFile, | |
std::vector< double > & | vertexVariables, | |||
int & | numVariablesPerVtx, | |||
std::vector< int > & | connectivity, | |||
int & | numNodesPerElem, | |||
std::vector< std::string > & | variableNames | |||
) |
References extractNumber(), and extractWords().
Referenced by main().
bool strequals | ( | const char * | src, | |
const char * | dst | |||
) |
Referenced by main().