Bitstream Interpretation Library (BIL)  0.1
Tile.cpp
Go to the documentation of this file.
1 
6 #include <xdlrc/model/Tile.hpp>
7 
8 using namespace bil;
9 
10 
12  m_name(),
13  m_primitiveSites(),
14  m_row(0),
15  m_column(0),
16  m_siteX(0),
17  m_siteY(0),
18  m_typeIndex(0)
19 {
20 
21 }
22 
23 
24 std::string& Tile::name()
25 {
26  return m_name;
27 }
28 
29 
30 const std::string& Tile::name() const
31 {
32  return m_name;
33 }
34 
35 
37 {
38  return m_primitiveSites;
39 }
40 
41 
43 {
44  return m_primitiveSites;
45 }
46 
47 
48 void Tile::row(unsigned short row)
49 {
50  m_row = row;
51 }
52 
53 
54 unsigned short Tile::row() const
55 {
56  return m_row;
57 }
58 
59 
60 void Tile::column(unsigned short column)
61 {
62  m_column = column;
63 }
64 
65 
66 unsigned short Tile::column() const
67 {
68  return m_column;
69 }
70 
71 
72 void Tile::siteX(unsigned short x)
73 {
74  m_siteX = x;
75 }
76 
77 
78 unsigned short Tile::siteX() const
79 {
80  return m_siteX;
81 }
82 
83 
84 void Tile::siteY(unsigned short y)
85 {
86  m_siteY = y;
87 }
88 
89 
90 unsigned short Tile::siteY() const
91 {
92  return m_siteY;
93 }
94 
95 
96 void Tile::typeIndex(unsigned short index)
97 {
98  m_typeIndex = index;
99 }
100 
101 
102 unsigned short Tile::typeIndex() const
103 {
104  return m_typeIndex;
105 }
106 
107 
109 {
110  m_name.clear();
111  m_primitiveSites.clear();
112  m_row = 0;
113  m_column = 0;
114  m_siteX = 0;
115  m_siteY = 0;
116  m_typeIndex = 0;
117 }