xbmc
Public Member Functions | Protected Attributes | List of all members
INFO::InfoBool Class Reference

Base class, wrapping boolean conditions and expressions. More...

#include <InfoBool.h>

Inheritance diagram for INFO::InfoBool:
Inheritance graph
[legend]
Collaboration diagram for INFO::InfoBool:
Collaboration graph
[legend]

Public Member Functions

 InfoBool (const std::string &expression, int context, unsigned int &refreshCounter)
 
virtual void Initialize ()
 
bool Get (int contextWindow, const CGUIListItem *item=nullptr)
 Get the value of this info bool This is called to update (if dirty) and fetch the value of the info bool. More...
 
bool operator== (const InfoBool &right) const
 
bool operator< (const InfoBool &right) const
 
virtual void Update (int contextWindow, const CGUIListItem *item)
 Update the value of this info bool This is called if and only if the info bool is dirty, allowing it to update it's current value.
 
const std::string & GetExpression () const
 
bool ListItemDependent () const
 

Protected Attributes

bool m_value
 current value
 
int m_context
 contextual information to go with the condition
 
bool m_listItemDependent
 do not cache if a listitem pointer is given
 
std::string m_expression
 original expression
 

Detailed Description

Base class, wrapping boolean conditions and expressions.

Member Function Documentation

◆ Get()

bool INFO::InfoBool::Get ( int  contextWindow,
const CGUIListItem item = nullptr 
)
inline

Get the value of this info bool This is called to update (if dirty) and fetch the value of the info bool.

Parameters
contextWindowthe context (window id) where this condition is being evaluated
itemthe item used to evaluate the bool

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