Bitstream Interpretation Library (BIL)  0.1
TileTypeBS.cpp
Go to the documentation of this file.
1 
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 }