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
book.h
- Committer:
- marcbax
- Date:
- 2018-01-11
- Revision:
- 1:5874c1a074a7
- Parent:
- 0:c643d398cdb6
File content as of revision 1:5874c1a074a7:
//
// Filename: book.h
//
// Container for Flexbook pages.
//
// include guards
#ifndef BOOK_H
#define BOOK_H
#include "page.h"
namespace Flexbook
{
class Page;
class PageFactory;
typedef int PageType;
class Book
{
public:
// Constructor needs to be explicit.
explicit Book(PageFactory &factory);
// Destructor.
~Book();
// Page change notification.
void PageChange(PageType type);
// Return the type of the currently active page.
PageType GetPageType() const;
void HandleActions();
private:
// Disable the copy constructor.
Book(const Book &);
// Disable assignment.
Book &operator=(const Book &);
PageFactory &factory;
PageType pagetype;
BookPage page;
};
} // End Flexbook namespace.
#endif // BOOK_H