Bitstream Interpretation Library (BIL)  0.1
PrimitiveTypeBS.cpp
Go to the documentation of this file.
1 
9 
10 using namespace bil;
11 
12 
13 void bil::writeBinary(const PrimitiveType& data, std::ostream& outputStream)
14 {
15  writeBinary(data.m_name, outputStream);
16  writeBinary(data.m_pins, outputStream);
17  writeBinary(data.m_elements, outputStream);
18  writeBinary(data.m_tag, outputStream);
19 }
20 
21 
22 void bil::readBinary(PrimitiveType& data, std::istream& inputStream)
23 {
24  readBinary(data.m_name, inputStream);
25  readBinary(data.m_pins, inputStream);
26  readBinary(data.m_elements, inputStream);
27  readBinary(data.m_tag, inputStream);
28 }