![]() |
VR-Forces Development_Version Class Documentation
|
A page path is the location of a page based upon its parents. More...

Classes | |
| struct | PagePathBuilder |
| Internal class used to ensure that it is not possible to incorrectly build a menu path. More... | |
Public Member Functions | |
| DtPagePath () | |
| Default CTOR. | |
| DtPagePath (const PagePathBuilder &builder) | |
| CTOR. | |
| DtPagePath (const DtPagePath ©) | |
| Copy CTOR. | |
| const std::string & | path () const |
| Get the current path. | |
| DtPagePath | collectionPart () const |
| Get the path to the parent of this path. | |
| std::string | name () const |
| Calculate the name of the this menu path. | |
| bool | isEmpty () const |
| Is the path empty? | |
| bool | isCollection () const |
| Is this item a main menu path? | |
| bool | isPage () const |
| Is the path a menu (not an item)? | |
| bool | isChildOf (const DtPagePath &parent) const |
| Is this path its direct parent? | |
| bool | isSiblingOf (const DtPagePath &sibling) const |
| Does this path have the same parent as the given path? | |
| bool | operator== (const DtPagePath &other) const |
| Equal comparison operator. | |
| bool | operator< (const DtPagePath &other) const |
| Less than comparison operator. | |
| bool | operator!= (const DtPagePath &other) const |
| Not equal comparison operator. | |
Static Public Member Functions | |
| static DtPagePath | empty () |
| Create an empty menu path. | |
| static DtPagePath | root () |
| Create an empty root menu path. | |
| static PagePathBuilder | collection (const std::string &name) |
| Start a main menu. | |
Protected Member Functions | |
| template<class Archive > | |
| void | _serialize (Archive &ar, const unsigned int version) |
| Serialize this class. | |
| DtPagePath (const std::string &path) | |
| Protected CTOR. | |
Protected Attributes | |
| std::string | myPath |
| Internal path. | |
A page path is the location of a page based upon its parents.
A page path usually only consists of a Collection class name and a Page class name.
| makVrv::DtPagePath::DtPagePath | ( | ) |
Default CTOR.
Needed for serialization.
| makVrv::DtPagePath::DtPagePath | ( | const PagePathBuilder & | builder | ) |
CTOR.
| makVrv::DtPagePath::DtPagePath | ( | const DtPagePath & | copy | ) |
Copy CTOR.
|
protected |
Protected CTOR.
Use the static PagePage function to start a path.
|
static |
Create an empty menu path.
|
static |
Create an empty root menu path.
|
static |
Start a main menu.
Reimplemented in makVrf::DtInformationPagePath.
|
inline |
Get the current path.
| DtPagePath makVrv::DtPagePath::collectionPart | ( | ) | const |
Get the path to the parent of this path.
If this path is the top level an empty path is returned.
Reimplemented in makVrf::DtInformationPagePath.
| std::string makVrv::DtPagePath::name | ( | ) | const |
Calculate the name of the this menu path.
This is either the item name or the menu name.
Reimplemented in makVrf::DtInformationPagePath.
| bool makVrv::DtPagePath::isEmpty | ( | ) | const |
Is the path empty?
| bool makVrv::DtPagePath::isCollection | ( | ) | const |
Is this item a main menu path?
| bool makVrv::DtPagePath::isPage | ( | ) | const |
Is the path a menu (not an item)?
Reimplemented in makVrf::DtInformationPagePath.
| bool makVrv::DtPagePath::isChildOf | ( | const DtPagePath & | parent | ) | const |
Is this path its direct parent?
| bool makVrv::DtPagePath::isSiblingOf | ( | const DtPagePath & | sibling | ) | const |
Does this path have the same parent as the given path?
| bool makVrv::DtPagePath::operator== | ( | const DtPagePath & | other | ) | const |
Equal comparison operator.
| bool makVrv::DtPagePath::operator< | ( | const DtPagePath & | other | ) | const |
Less than comparison operator.
| bool makVrv::DtPagePath::operator!= | ( | const DtPagePath & | other | ) | const |
Not equal comparison operator.
|
inlineprotected |
Serialize this class.
References DT_SERIALIZE_MEMBER.
|
protected |
Internal path.