Bitstream Interpretation Library (BIL)  0.1
DeviceBS.cpp
Go to the documentation of this file.
1 
8 #include <xdlrc/model/Device.hpp>
9 
10 using namespace bil;
11 
12 
13 void bil::writeBinary(const Device& data, std::ostream& outputStream)
14 {
15  writeBinary(data.m_name, outputStream);
16  writeBinary(data.m_tiles, outputStream);
17  writeBinary(data.m_tileTypes, outputStream);
18  writeBinary(data.m_primitiveTypes, outputStream);
19 }
20 
21 
22 void bil::readBinary(Device& data, std::istream& inputStream)
23 {
24  readBinary(data.m_name, inputStream);
25  readBinary(data.m_tiles, inputStream);
26  readBinary(data.m_tileTypes, inputStream);
27  readBinary(data.m_primitiveTypes, inputStream);
28 }