91a7106955d7cec49e9f8516b8f89e1910a05a2d
[h316.git] / pc-tools / ldc2 / src / data_block_0.cpp
1 #include "data_block_0.hh"
2
3 /*!
4 *\brief Specialisation constructor.
5 */
6 data_block_0::data_block_0(data_block & org)
7 :data_block(org)
8 {
9 m_has_known_type=false;
10 }
11
12
13 /*!
14 * Determine the block's subtype.
15 *\return The block's subtype, read from block data.
16 */
17 int data_block_0::get_subtype(){
18 return (word_data[0]&0x0fc0)>>6;
19 }
20
21 /*!
22 *\brief Describe the block.
23 *\return A vector of text lines describing this block.
24 */
25 vector<string> data_block_0::get_description(){
26 vector<string> result;
27 char buffer[150];
28 sprintf(buffer," (0-%02o) Type 0 data block, unknown\
29 subtype, this is an illegal condition!",get_subtype());
30 string r_string=buffer;
31 result.insert(result.end(),r_string);
32 return result;
33 }
34
35
36