suanPan
Converter Struct Reference

#include <Converter.h>

Collaboration diagram for Converter:

Public Member Functions

 Converter (std::string &&)
 
int process (std::ifstream &, std::ofstream &)
 
int process_amplitude (std::ifstream &, std::ofstream &, const std::string &, const std::string &)
 
int process_boundary (std::ifstream &, std::ofstream &, const std::string &, const std::string &)
 
int process_cload (std::ifstream &, std::ofstream &, const std::string &)
 
int process_element (std::ifstream &, std::ofstream &, const std::string &) const
 
int process_node (std::ifstream &, std::ofstream &) const
 
int process_node_set (std::ifstream &, std::ofstream &, const std::string &, bool)
 
int process_element_set (std::ifstream &, std::ofstream &, const std::string &, bool)
 
int process_step (std::ifstream &, std::ofstream &, const std::string &)
 
std::string extract_element_type (const std::string &) const
 
bool getline (std::istream &, std::string &) const
 

Static Public Member Functions

static std::istringstream clean (std::string)
 
static std::string extract_name (const std::string &, const std::string &="")
 

Public Attributes

int boundary_tag = 0
 
int set_tag = 0
 
int amplitude_tag = 0
 
int load_tag = 0
 
int step_tag = 0
 
int integrator_tag = 0
 
int converger_tag = 0
 
std::string output_path
 
std::unordered_map< std::string, int > node_set_pool
 
std::unordered_map< std::string, int > element_set_pool
 
std::unordered_map< std::string, int > amplitude_pool
 
std::unordered_map< std::string, int > step_pool
 

Constructor & Destructor Documentation

◆ Converter()

Converter::Converter ( std::string &&  OP)
explicit

Member Function Documentation

◆ clean()

std::istringstream Converter::clean ( std::string  line)
static
Here is the caller graph for this function:

◆ extract_element_type()

std::string Converter::extract_element_type ( const std::string &  line) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ extract_name()

std::string Converter::extract_name ( const std::string &  line,
const std::string &  key = "" 
)
static
Here is the caller graph for this function:

◆ getline()

bool Converter::getline ( std::istream &  in,
std::string &  out 
) const
Here is the caller graph for this function:

◆ process()

int Converter::process ( std::ifstream &  input_file,
std::ofstream &  output_file 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_amplitude()

int Converter::process_amplitude ( std::ifstream &  input_file,
std::ofstream &  output_file,
const std::string &  amplitude_name,
const std::string &  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_boundary()

int Converter::process_boundary ( std::ifstream &  input_file,
std::ofstream &  output_file,
const std::string &  amplitude_name,
const std::string &  type_name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_cload()

int Converter::process_cload ( std::ifstream &  input_file,
std::ofstream &  output_file,
const std::string &  amplitude_name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_element()

int Converter::process_element ( std::ifstream &  input_file,
std::ofstream &  output_file,
const std::string &  type 
) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_element_set()

int Converter::process_element_set ( std::ifstream &  input_file,
std::ofstream &  output_file,
const std::string &  set_name,
bool  generate 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_node()

int Converter::process_node ( std::ifstream &  input_file,
std::ofstream &  output_file 
) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_node_set()

int Converter::process_node_set ( std::ifstream &  input_file,
std::ofstream &  output_file,
const std::string &  set_name,
bool  generate 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_step()

int Converter::process_step ( std::ifstream &  input_file,
std::ofstream &  output_file,
const std::string &  step_name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ amplitude_pool

std::unordered_map<std::string, int> Converter::amplitude_pool

◆ amplitude_tag

int Converter::amplitude_tag = 0

◆ boundary_tag

int Converter::boundary_tag = 0

◆ converger_tag

int Converter::converger_tag = 0

◆ element_set_pool

std::unordered_map<std::string, int> Converter::element_set_pool

◆ integrator_tag

int Converter::integrator_tag = 0

◆ load_tag

int Converter::load_tag = 0

◆ node_set_pool

std::unordered_map<std::string, int> Converter::node_set_pool

◆ output_path

std::string Converter::output_path

◆ set_tag

int Converter::set_tag = 0

◆ step_pool

std::unordered_map<std::string, int> Converter::step_pool

◆ step_tag

int Converter::step_tag = 0

The documentation for this struct was generated from the following files: