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