FOUND
Loading...
Searching...
No Matches
serialization.hpp
Go to the documentation of this file.
1#ifndef SERIALIZATION_H
2#define SERIALIZATION_H
3
4#include <string>
5
6#include "datafile/datafile.hpp" // Include the header for DataFile and DataFileHeader
7
8namespace found {
9
18void serializeDataFile(const DataFile& data, std::ostream& stream);
19
27DataFile deserializeDataFile(std::istream& stream);
28
37DataFile deserializeDataFile(std::istream& stream, const std::string &path);
38
46DataFileHeader readHeader(std::istream& stream);
47
55void hton(DataFileHeader& header);
56
64void ntoh(DataFileHeader& header);
65
66} // namespace found
67
68#endif // SERIALIZATION_H
Declares data structures for serialized spatial data files, including headers, location records,...
Definition calibrate.cpp:7
DataFileHeader readHeader(std::istream &stream)
Reads only the header of a DataFile from an input stream.
Definition serialization.cpp:296
void serializeDataFile(const DataFile &data, std::ostream &stream)
Serializes a DataFile object to an output stream.
Definition serialization.cpp:250
DataFile deserializeDataFile(std::istream &stream)
Deserializes a DataFile object from an input stream.
Definition serialization.cpp:263
void hton(DataFileHeader &header)
Converts a DataFileHeader from host to network byte order.
Definition serialization.cpp:14
void ntoh(DataFileHeader &header)
Converts a DataFileHeader from network to host byte order.
Definition serialization.cpp:20