API Documentation
|
A program-defined unit that can be used for some specific task different from a program-wide unit. More...
#include <UnitManager.h>
Public Member Functions | |
BasicCustomUnit (const String &name, const TranslatedString &title, UnitType type) | |
virtual void | prepareForINI (const UnitManager &manager) override |
virtual void | setupINI (INIFactory &ini) override |
virtual void | finishReadingINI (UnitManager &manager) override |
virtual TranslatedString | title () const override |
virtual Resource< ConstPointer< Unit > > & | unitResource (UnitManager &manager) override |
Buffer< ConstPointer< UnitOption > > | options (UnitManager &manager) const override |
virtual ConstPointer< Unit > | defaultUnit (UnitManager &) const override |
Public Member Functions inherited from CustomUnit | |
CustomUnit (const String &id, const TranslatedString &name, UnitType unit_type) | |
virtual | ~CustomUnit () |
virtual void | resetToDefault (UnitManager &) |
virtual ConstPointer< Unit > | currentUnit () |
virtual ConstPointer< Unit > | currentUnit (UnitManager &manager) |
Protected Attributes | |
TranslatedString | m_title |
String | m_ini_unit_name |
Resource< ConstPointer< Unit > > | m_unit |
Additional Inherited Members | |
Public Attributes inherited from CustomUnit | |
TranslatedString | name |
String | id |
UnitType | unit_type |
A program-defined unit that can be used for some specific task different from a program-wide unit.
Class: BaseValues
BasicCustomUnit | ( | const String & | name, |
const TranslatedString & | title, | ||
UnitType | type ) |
|
nodiscardoverridevirtual |
Implements CustomUnit.
|
overridevirtual |
Reimplemented from CustomUnit.
|
nodiscardoverridevirtual |
Implements CustomUnit.
|
overridevirtual |
Reimplemented from CustomUnit.
|
overridevirtual |
Implements CustomUnit.
|
inlinenodiscardoverridevirtual |
Reimplemented from CustomUnit.
|
nodiscardoverridevirtual |
Implements CustomUnit.
|
protected |
|
protected |
|
protected |