• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

roclib/src_base/Peripheral.cxx (r4864/r4162)

Go to the documentation of this file.
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 }

Generated on Tue Dec 10 2013 04:52:23 for ROCsoft by  doxygen 1.7.1