Bitstream Interpretation Library (BIL)  0.1
V5CfgTileMapEntry.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 #ifndef BIL_V5CFGTILEMAPENTRY_HPP
8 #define BIL_V5CFGTILEMAPENTRY_HPP
9 
10 #include <boost/cstdint.hpp>
11 
12 
13 namespace bil {
14 
15  class V5Configuration;
16 
17 
29 
30  /**********************************************************************/
31  /* ADDRESS PARTS EQUAL IN ALL CORRESPONDING FRAMES */
32  /**********************************************************************/
33 
35  bool lowerHalf;
37  unsigned char rowIndex;
39  unsigned char columnIndex;
40 
41 
42  /**********************************************************************/
43  /* CONTINOUS FRAME INDEX RANGE */
44  /**********************************************************************/
45 
47  unsigned char frameBeginIndex;
49  unsigned char frameEndIndex;
50 
51 
52  /**********************************************************************/
53  /* CONTINOUS WORD RANGE INSIDE ALL CORRESPONDING FRAMES */
54  /**********************************************************************/
55 
57  unsigned char wordBeginOffset;
59  unsigned char wordEndOffset;
60 
61 
62  /**********************************************************************/
63  /* MODIFICATORS */
64  /**********************************************************************/
65 
69  void clear();
70 
71  };
72 
73 
79  size_t getCfgDataWordCount(const V5CfgTileMapEntry& where);
80 
89  size_t getCfgData(boost::uint32_t* data, size_t dataWordCount,
90  const V5Configuration& src, const V5CfgTileMapEntry& where);
91 
92 }
93 
94 #endif