| 1 | /****************************************************************************** |
| 2 | * |
| 3 | * LDC2 source code |
| 4 | * |
| 5 | * $Date: 2007/03/26 01:00:38 $ |
| 6 | * $Author: hachti $ |
| 7 | * |
| 8 | * $Log: broken_block.cpp,v $ |
| 9 | * Revision 2.0 2007/03/26 01:00:38 hachti |
| 10 | * *** empty log message *** |
| 11 | * |
| 12 | * |
| 13 | ******************************************************************************/ |
| 14 | |
| 15 | |
| 16 | #include "broken_block.hh" |
| 17 | |
| 18 | using namespace std; |
| 19 | |
| 20 | /*! |
| 21 | *\brief Specialisation constructor. |
| 22 | */ |
| 23 | broken_block::broken_block(tape_block& org) |
| 24 | :tape_block(org) |
| 25 | { |
| 26 | block_type=TBT_BROKEN; |
| 27 | } |
| 28 | |
| 29 | /*! |
| 30 | *\brief Describe the block. |
| 31 | *\return A vector of text lines describing this block. |
| 32 | */ |
| 33 | vector<string> broken_block::get_description(){ |
| 34 | vector<string> result; |
| 35 | string r_string="********* (B-B) Broken block"; |
| 36 | result.insert(result.end(),r_string); |
| 37 | return result; |
| 38 | } |
| 39 | |
| 40 | /*! |
| 41 | *\brief Determine if the block marks the end of an object |
| 42 | *\retval true The block marks the end of an object. |
| 43 | *\retval false The block does not mark the end of an object. |
| 44 | */ |
| 45 | bool broken_block::get_obj_end(){ |
| 46 | return false; |
| 47 | } |
| 48 | |