26 #ifndef BinaryReader_H
27 #define BinaryReader_H
This gives functionality to read information from binary formats like STL etc. This class is complete...
Definition: BinaryReader.h:37
double readFloat(unsigned int size)
read the next so many bytes as a double (not in this case they were saves as a float orgainlly)
Definition: BinaryReader.cc:108
void ignoreChar(unsigned int size)
read and ignore the next number of characters
Definition: BinaryReader.cc:133
~BinaryReader()
Destructor, simple closes the file.
Definition: BinaryReader.cc:49
std::ifstream binaryFile_
The pointer for the binary file.
Definition: BinaryReader.h:88
BinaryReader(std::string)
Default constuction, requires to users to prove the name of the file that will be opened.
Definition: BinaryReader.cc:41
unsigned int readUnsignedInt(unsigned int size)
read the next so many bytes as a unsined int
Definition: BinaryReader.cc:121
void closeFile()
close the file with fileName
Definition: BinaryReader.cc:57
double readDouble(unsigned int size)
read the next so many bytes as a double
Definition: BinaryReader.cc:94
std::string readString(unsigned int numChar)
reads the next so many Characters (bytes) as a std::string
Definition: BinaryReader.cc:80
void openFile(std::string fileName)
opens the file with fileName
Definition: BinaryReader.cc:66