00001 //Dear emacs, this is -*- c++ -*- 00002 00013 #include "eformat/old/ROSFragment.h" 00014 #include "eformat/old/ROBFragment.h" 00015 #include "eformat/SizeCheckIssue.h" 00016 #include "eformat/HeaderMarker.h" 00017 00018 eformat::old::ROSFragment::ROSFragment (const uint32_t* it) 00019 : eformat::old::Header(it, eformat::ROS), 00020 m_start(specific_header()) 00021 { 00022 } 00023 00024 bool eformat::old::ROSFragment::check () const 00025 { 00026 eformat::old::Header::check(); //< first do a generic check 00027 if (nspecific() != 2) { 00028 throw EFORMAT_SIZE_CHECK(2, nspecific()); 00029 } 00030 return true; 00031 } 00032 00033 bool eformat::old::ROSFragment::check_tree () const 00034 { 00035 check(); // check myself 00036 for (size_t i=0; i<noffset(); ++i) { 00037 eformat::old::ROBFragment rob(child(i)); 00038 rob.check_tree(); 00039 } 00040 return true; 00041 } 00042 00043 00044 00045