#include "ProcessFile.h" ProcessFile::ProcessFile() { } ProcessFile::~ProcessFile() { } void ProcessFile::process(std::ifstream &file) { uint32_t grootte = 0; file.read((char*) &grootte, sizeof(uint32_t)); for (unsigned int i = 0; i < grootte; i++) { enum GETAL type; file.read((char*) &type, sizeof(enum GETAL)); switch(type) { case LONG: { read_and_print(file); break; } case SHORT: { read_and_print(file); break; } case DOUBLE: { read_and_print(file); break; } case FLOAT: { read_and_print(file); break; } default: { break; } } } }