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

#include <UnitManager.h>

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

Public Member Functions

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

Public Attributes

TranslatedString name
 
String id
 

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

◆ subOptions()

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

Reimplemented in BasicUnitOption, and WGS84UnitOption.

◆ title()

virtual TranslatedString title ( ) const
inlinevirtual

Reimplemented in BasicUnitOption.

◆ unit() [1/2]

virtual ConstPointer< Unit > unit ( ) const
pure virtual

◆ unit() [2/2]

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

Reimplemented in CoordinateUnitOption, and WGS84UnitOption.

Member Data Documentation

◆ id

String id

◆ name


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