Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Rml::DataView Class Referenceabstract

#include <DataView.h>

Inheritance diagram for Rml::DataView:
Rml::DataViewCommon cqsp::engine::ui::DataViewNumber

Public Member Functions

virtual ~DataView ()
 
virtual bool Initialize (DataModel &model, Element *element, const String &expression, const String &modifier)=0
 
virtual bool Update (DataModel &model)=0
 
virtual StringList GetVariableNameList () const =0
 
Element * GetElement () const
 
int GetSortOrder () const
 
bool IsValid () const
 

Protected Member Functions

 DataView (Element *element, int sort_offset)
 

Private Attributes

ObserverPtr< Element > attached_element
 
int sort_order
 

Detailed Description

Data view.

Data views are used to present a data variable in the document by different means. A data view is declared in the document by the element attribute:

data-[type]-[modifier]="[expression]"

The modifier may or may not be required depending on the data view.

Constructor & Destructor Documentation

◆ ~DataView()

virtual Rml::DataView::~DataView ( )
virtual

◆ DataView()

Rml::DataView::DataView ( Element *  element,
int  sort_offset 
)
protected

Member Function Documentation

◆ GetElement()

Element * Rml::DataView::GetElement ( ) const

◆ GetSortOrder()

int Rml::DataView::GetSortOrder ( ) const

◆ GetVariableNameList()

virtual StringList Rml::DataView::GetVariableNameList ( ) const
pure virtual

Implemented in Rml::DataViewCommon.

◆ Initialize()

virtual bool Rml::DataView::Initialize ( DataModel &  model,
Element *  element,
const String &  expression,
const String &  modifier 
)
pure virtual

Implemented in Rml::DataViewCommon.

◆ IsValid()

bool Rml::DataView::IsValid ( ) const

◆ Update()

virtual bool Rml::DataView::Update ( DataModel &  model)
pure virtual

Member Data Documentation

◆ attached_element

ObserverPtr<Element> Rml::DataView::attached_element
private

◆ sort_order

int Rml::DataView::sort_order
private

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