DUDS
Distributed Update of Data from Something
duds::ui::Page Class Reference

Represents the notion of a page that may be visited, and helps allow a way to track the path of pages the user has seen. More...

#include <Page.hpp>

Inheritance diagram for duds::ui::Page:
Collaboration diagram for duds::ui::Page:

Public Member Functions

 Page ()=default
 Constructs a page with no name. More...
 
 Page (const std::string &t)
 Constructs a page with the given name. More...
 
const std::string & title () const
 Returns the name or title of the page. More...
 

Protected Member Functions

void title (const std::string &t)
 Changes the name of the page. More...
 

Private Attributes

std::string name
 The page's name or title. More...
 

Detailed Description

Represents the notion of a page that may be visited, and helps allow a way to track the path of pages the user has seen.

Note
Pages must be managed by std::shared_ptr.
Author
Jeff Jackowski

Definition at line 24 of file Page.hpp.

Constructor & Destructor Documentation

◆ Page() [1/2]

duds::ui::Page::Page ( )
default

Constructs a page with no name.

Referenced by title().

◆ Page() [2/2]

duds::ui::Page::Page ( const std::string &  t)
inline

Constructs a page with the given name.

Parameters
tThe new name or title of the page.

Definition at line 46 of file Page.hpp.

Member Function Documentation

◆ title() [1/2]

void duds::ui::Page::title ( const std::string &  t)
inlineprotected

Changes the name of the page.

Parameters
tThe new name or title of the page.

Definition at line 34 of file Page.hpp.

◆ title() [2/2]

const std::string& duds::ui::Page::title ( ) const
inline

Returns the name or title of the page.

Definition at line 50 of file Page.hpp.

Referenced by duds::ui::menu::MenuView::attach().

Member Data Documentation

◆ name

std::string duds::ui::Page::name
private

The page's name or title.

Definition at line 28 of file Page.hpp.

Referenced by title().


The documentation for this class was generated from the following file: