Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem app epson mbed msp430 pl tests
bookmonitor.h
00001 // 00002 // Filename: bookmonitor.h 00003 // 00004 // Flexbook page turn monitor. 00005 // 00006 00007 // include guards 00008 #ifndef BOOKMONITOR_H 00009 #define BOOKMONITOR_H 00010 00011 namespace Flexbook 00012 { 00013 00014 class Book; 00015 00016 class BookMonitor 00017 { 00018 public: 00019 // Constructor needs to be explicit. 00020 explicit BookMonitor(Book &book); 00021 00022 // Destructor. 00023 ~BookMonitor(); 00024 00025 // Check for a page turn. 00026 void CheckForPageChange(); 00027 00028 private: 00029 // Disable the copy constructor. 00030 BookMonitor(const BookMonitor &); 00031 00032 // Disable assignment. 00033 BookMonitor &operator=(const BookMonitor &); 00034 00035 Book &book; 00036 }; 00037 00038 } // End Flexbook namespace. 00039 00040 #endif // BOOKMONITOR_H 00041
Generated on Tue Jul 12 2022 21:14:34 by
