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