libMesh
|
This class is useful for managing anything that requires a char ** input/output in ExodusII file. More...
#include <exodusII_io_helper.h>
Public Member Functions | |
NamesData (size_t n_strings, size_t string_length) | |
Constructor. More... | |
void | push_back_entry (const std::string &name) |
Adds another name to the current data table. More... | |
char ** | get_char_star_star () |
Provide access to the underlying C data table. More... | |
char * | get_char_star (int i) |
Provide access to the i'th underlying char *. More... | |
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 1253 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 4850 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 4893 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 4886 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(), 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 4870 of file exodusII_io_helper.C.
References libMesh::Quality::name().
Referenced by libMesh::Nemesis_IO_Helper::write_elements(), libMesh::ExodusII_IO_Helper::write_elements(), libMesh::ExodusII_IO_Helper::write_sidesets(), and libMesh::ExodusII_IO_Helper::write_var_names_impl().
|
private |
Definition at line 1284 of file exodusII_io_helper.h.
|
private |
Definition at line 1281 of file exodusII_io_helper.h.
Referenced by NamesData().
|
private |
Definition at line 1282 of file exodusII_io_helper.h.
Referenced by NamesData().
|
private |
Definition at line 1285 of file exodusII_io_helper.h.