Bitstream Interpretation Library (BIL)  0.1
PIP.cpp
Go to the documentation of this file.
1 
6 #include <xdlrc/model/PIP.hpp>
7 
8 using namespace bil;
9 
10 
12  m_startWireIndex(0),
13  m_endWireIndex(0),
14  m_direction(PIPDirection::MONODI_BUF)
15 {
16 
17 }
18 
19 
20 void PIP::startWireIndex(unsigned short index)
21 {
22  m_startWireIndex = index;
23 }
24 
25 
26 unsigned short PIP::startWireIndex() const
27 {
28  return m_startWireIndex;
29 }
30 
31 
32 void PIP::endWireIndex(unsigned short index)
33 {
34  m_endWireIndex = index;
35 }
36 
37 
38 unsigned short PIP::endWireIndex() const
39 {
40  return m_endWireIndex;
41 }
42 
43 
45 {
46  m_direction = dir;
47 }
48 
49 
51 {
52  return m_direction;
53 }
54 
55 
56 void PIP::clear()
57 {
58  m_startWireIndex = 0;
59  m_endWireIndex = 0;
60  m_direction = PIPDirection::MONODI_BUF;
61 }