00001 //============================================================================ 00005 //============================================================================ 00006 00007 #include "base/Peripheral.h" 00008 00009 #include <stdexcept> 00010 00011 //---------------------------------------------------------------------------- 00013 00019 base::Peripheral::Peripheral(base::Board* board) 00020 { 00021 fBoard = board; 00022 } 00023 00024 //---------------------------------------------------------------------------- 00026 00030 base::Board& base::Peripheral::board() 00031 { 00032 if (fBoard==0) throw std::runtime_error("Board object not specified"); 00033 return *fBoard; 00034 }