#include <exodusII_io_helper.h>
Public Member Functions | |
NamesData (size_t n_strings, size_t string_length) | |
void | push_back_entry (const std::string &name) |
char ** | get_char_star_star () |
char * | get_char_star (int i) |
Private Attributes | |
std::vector< std::vector< char > > | data_table |
std::vector< char * > | data_table_pointers |
size_t | counter |
size_t | table_size |
This class is useful for managing anything that requires a char ** input/output in ExodusII file. You must know the number of strings and the length of each one at the time you create it.
Definition at line 1245 of file exodusII_io_helper.h.
|
explicit |
Constructor. Allocates enough storage to hold n_strings of length string_length. (Actually allocates string_length+1 characters per string to account for the trailing '\0' character.)
Definition at line 2503 of file exodusII_io_helper.C.
References data_table, and data_table_pointers.
char * libMesh::ExodusII_IO_Helper::NamesData::get_char_star | ( | int | i | ) |
Provide access to the i'th underlying char *
Definition at line 2546 of file exodusII_io_helper.C.
Referenced by libMesh::ExodusII_IO_Helper::read_var_names_impl(), and libMesh::ExodusII_IO_Helper::write_var_names_impl().
char ** libMesh::ExodusII_IO_Helper::NamesData::get_char_star_star | ( | ) |
Provide access to the underlying C data table
Definition at line 2539 of file exodusII_io_helper.C.
Referenced by libMesh::ExodusII_IO_Helper::read_var_names_impl(), libMesh::Nemesis_IO_Helper::write_elements(), libMesh::ExodusII_IO_Helper::write_elements(), libMesh::ExodusII_IO_Helper::write_information_records(), and libMesh::ExodusII_IO_Helper::write_var_names_impl().
void libMesh::ExodusII_IO_Helper::NamesData::push_back_entry | ( | const std::string & | name | ) |
Adds another name to the current data table.
Definition at line 2523 of file exodusII_io_helper.C.
References data, and libMesh::Quality::name().
Referenced by libMesh::Nemesis_IO_Helper::write_elements(), libMesh::ExodusII_IO_Helper::write_elements(), libMesh::ExodusII_IO_Helper::write_information_records(), libMesh::ExodusII_IO_Helper::write_nodesets(), libMesh::ExodusII_IO_Helper::write_sidesets(), and libMesh::ExodusII_IO_Helper::write_var_names_impl().
|
private |
Definition at line 1276 of file exodusII_io_helper.h.
|
private |
Definition at line 1273 of file exodusII_io_helper.h.
Referenced by NamesData().
|
private |
Definition at line 1274 of file exodusII_io_helper.h.
Referenced by NamesData().
|
private |
Definition at line 1277 of file exodusII_io_helper.h.