Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::ContextStateCondition Class Referencefinal

#include <MContextStateCondition.h>

Inheritance diagram for Maria::ContextStateCondition:
Maria::Condition

Public Member Functions

 ContextStateCondition (const std::string &key, ItemContext::ItemState state, ItemContext::StateScope scope)
 
void setScope (ItemContext::StateScope stateScope)
 
ItemContext::StateScope getScope () const
 
void setExpectedState (ItemContext::ItemState expectedState)
 
ItemContext::ItemState getExpectedState () const
 
void setKey (const std::string &key)
 
const std::string & getKey () const
 
bool IsSatisfied (const ItemContext &context, const GenericGeoObjectAdapter &conditionObjectAccessor) override
 
virtual bool IsSatisfied (const ItemContext &context, const GenericGeoObjectAdapter &conditionObjectAccessor)=0
 

Protected Attributes

std::string _key
 
ItemContext::ItemState _expectedState
 
ItemContext::StateScope _scope
 

Detailed Description

ContextStateCondition - Short description. Detailed description.

Member Function Documentation

◆ IsSatisfied()

bool ContextStateCondition::IsSatisfied ( const ItemContext context,
const GenericGeoObjectAdapter conditionObjectAccessor 
)
overridevirtual

Depends true if condition is satisfied, otherwise false

Parameters
contextContains system parameters such as geo contest, settings and variables
conditionObjectAccessorObject to test (typically track or draw object)
Returns
true if satisfied, otherwise false

Implements Maria::Condition.


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