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