OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Result1DFileData.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
6{
7public:
8 Result1DFileData() : buffer(nullptr), bufferSize(0) {};
9 ~Result1DFileData() { if (buffer != nullptr) delete[] buffer; buffer = nullptr; };
10
11 bool readData(const std::string& fileName);
12
13 size_t getBufferSize() { return bufferSize; }
14 char* getBuffer() { return buffer; }
15
16 std::string getDataHash() { return dataHashValue; }
17
18private:
19 void calculateDataHash();
20
21 char* buffer;
22 size_t bufferSize;
23 std::string dataHashValue;
24};
Definition Result1DFileData.h:6
size_t getBufferSize()
Definition Result1DFileData.h:13
bool readData(const std::string &fileName)
Definition Result1DFileData.cpp:8
Result1DFileData()
Definition Result1DFileData.h:8
~Result1DFileData()
Definition Result1DFileData.h:9
char * getBuffer()
Definition Result1DFileData.h:14
std::string getDataHash()
Definition Result1DFileData.h:16