API Documentation
Loading...
Searching...
No Matches
UnitOption Class Referenceabstract

A definition of how to describe a particular set of data to a custom category of unit. More...

#include <UnitManager.h>

Inheritance diagram for UnitOption:
[legend]
Collaboration diagram for UnitOption:
[legend]

Public Member Functions

virtual bool hasMemberUnit (const ConstPointer< Unit > &unit) const =0
 
virtual Buffer< ConstPointer< UnitOption > > subOptions () const
 
virtual TranslatedString title () const
 
virtual ConstPointer< Unitunit () const =0
 
virtual ConstPointer< Unitunit (const ConstPointer< Unit > &) const
 
 UnitOption (const String &id, const TranslatedString &name)
 
virtual ~UnitOption ()
 

Public Attributes

String id
 
TranslatedString name
 

Detailed Description

A definition of how to describe a particular set of data to a custom category of unit.


Constructor & Destructor Documentation

◆ UnitOption()

UnitOption ( const String & id,
const TranslatedString & name )
inline

◆ ~UnitOption()

virtual ~UnitOption ( )
inlinevirtual

Member Function Documentation

◆ hasMemberUnit()

virtual bool hasMemberUnit ( const ConstPointer< Unit > & unit) const
pure virtual

Implemented in BasicUnitOption, and CoordinateUnitOption.

◆ subOptions()

virtual Buffer< ConstPointer< UnitOption > > subOptions ( ) const
inlinevirtual

Reimplemented in BasicUnitOption.

◆ title()

virtual TranslatedString title ( ) const
inlinevirtual

Reimplemented in BasicUnitOption.

◆ unit() [1/2]

virtual ConstPointer< Unit > unit ( ) const
pure virtual

Implemented in BasicUnitOption, and CoordinateUnitOption.

◆ unit() [2/2]

virtual ConstPointer< Unit > unit ( const ConstPointer< Unit > & ) const
inlinevirtual

Reimplemented in CoordinateUnitOption.

Member Data Documentation

◆ id

String id

◆ name


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