Bitstream Interpretation Library (BIL)
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
serialization
TileBS.cpp
Go to the documentation of this file.
1
6
#include <
serialization/TileBS.hpp
>
7
#include <
util/BinarySerialization.hpp
>
8
#include <
xdlrc/model/Tile.hpp
>
9
10
using namespace
bil;
11
12
13
void
bil::writeBinary
(
const
Tile
& data, std::ostream& outputStream)
14
{
15
writeBinary
(data.m_name, outputStream);
16
writeBinary
(data.m_primitiveSites, outputStream);
17
writeBinary
(data.m_row, outputStream);
18
writeBinary
(data.m_column, outputStream);
19
writeBinary
(data.m_siteX, outputStream);
20
writeBinary
(data.m_siteY, outputStream);
21
writeBinary
(data.m_typeIndex, outputStream);
22
}
23
24
25
void
bil::readBinary
(
Tile
& data, std::istream& inputStream)
26
{
27
readBinary
(data.m_name, inputStream);
28
readBinary
(data.m_primitiveSites, inputStream);
29
readBinary
(data.m_row, inputStream);
30
readBinary
(data.m_column, inputStream);
31
readBinary
(data.m_siteX, inputStream);
32
readBinary
(data.m_siteY, inputStream);
33
readBinary
(data.m_typeIndex, inputStream);
34
}
Generated on Wed Aug 8 2012 21:57:41 for Bitstream Interpretation Library (BIL) by
1.8.1.1