10 #ifndef ATILACALCULATORSOFTWARE_RESULT_H 11 #define ATILACALCULATORSOFTWARE_RESULT_H 71 std::tuple<int&, float*>
getResult(
const unsigned int&
id);
93 void readResults(gzFile file,
char buffer[GZ_BUFFER_SIZE]);
137 #endif // ATILACALCULATORSOFTWARE_RESULT_H void readResults(gzFile file, char buffer[GZ_BUFFER_SIZE])
Definition: result.cpp:101
float step
Time step inside the analysis.
Definition: result.h:108
Result(gzFile file, dataFields fields, int componentCount)
Definition: result.cpp:16
std::string result
Type of results.
Definition: result.h:103
std::string analysis
Type of analysis.
Definition: result.h:98
int componentCount
Number of components of the result.
Definition: result.h:113
Representation of all the results and their components read from a res file.
Definition: result.h:28
float getStep() const
Definition: result.cpp:50
int getComponentCount() const
Definition: result.cpp:52
std::vector< std::string > getComponents()
Definition: result.cpp:55
std::vector< std::string > components
Components of the result (size = componentCount)
Definition: result.h:123
#define GZ_BUFFER_SIZE
Buffer size for gzread uses.
Definition: utilities.h:26
int * nodeIDs
List of IDs of the nodes involved in the result.
Definition: result.h:128
std::string getAnalysis()
Definition: result.cpp:47
unsigned int getValuesCount() const
Definition: result.cpp:53
std::string getResultType()
Definition: result.cpp:48
void readComponents(gzFile file, char buffer[GZ_BUFFER_SIZE], dataFields fields)
Write the result into a currently open PostResultFile.
Definition: result.cpp:73
float * values
Values of the result.
Definition: result.h:134
unsigned int valuesCount
Number of values read.
Definition: result.h:118
std::tuple< int &, float * > getResult(const unsigned int &id)
Definition: result.cpp:61
char dataFields[10][40]
Definition: utilities.h:76