|
AtilaCalculatorSoftware
2.3.4
C++ Interface for Atila fem resources files
|
Load the resources file and allow to read meshes and results from it. More...
#include <binary_data.h>
Public Member Functions | |
| BinaryData (const std::string &file) | |
| gzFile | getFile () |
| std::vector< Mesh > & | getMeshes () |
| std::vector< Result > & | getResults () |
| ~BinaryData () | |
| Closes open files. More... | |
| void | readMeshes () |
| std::optional< Result > | readResult () |
| Read one result from the res gzFile. More... | |
| std::vector< Result > | readResults (unsigned int n=0) |
| Read the n given results, stops if there is no more result. More... | |
Protected Attributes | |
| gzFile | file |
| Opened res gzFile. More... | |
| std::vector< Mesh > | meshes |
| Read meshes. More... | |
| std::vector< Result > | results |
| Read meshes. More... | |
Static Protected Attributes | |
| static const int | byteOrderCheck = 0x91d |
| Constant value for reading check. More... | |
Load the resources file and allow to read meshes and results from it.
|
explicit |
| file | Path to the res gzFile |
| BinaryData::~BinaryData | ( | ) |
Closes open files.
| gzFile BinaryData::getFile | ( | ) |
| std::vector< Mesh > & BinaryData::getMeshes | ( | ) |
| std::vector< Result > & BinaryData::getResults | ( | ) |
| void BinaryData::readMeshes | ( | ) |
Read all meshes from the res gzFile
| std::optional< Result > BinaryData::readResult | ( | ) |
Read one result from the res gzFile.
| std::vector< Result > BinaryData::readResults | ( | unsigned int | n = 0 | ) |
Read the n given results, stops if there is no more result.
| n | The number of results to read (0 = all) |
|
staticprotected |
Constant value for reading check.
|
protected |
Opened res gzFile.
|
protected |
Read meshes.
|
protected |
Read meshes.