MythTV  master
Public Member Functions | Private Attributes | List of all members
StateVariable< T > Class Template Reference

#include <eventing.h>

Inheritance diagram for StateVariable< T >:
Inheritance graph
[legend]
Collaboration diagram for StateVariable< T >:
Collaboration graph
[legend]

Public Member Functions

 StateVariable (const QString &sName, bool bNotify=false)
 
 StateVariable (const QString &sName, T value, bool bNotify=false)
 
QString ToString () override
 
GetValue ()
 
void SetValue (T value)
 
- Public Member Functions inherited from StateVariableBase
 StateVariableBase (const QString &sName, bool bNotify=false)
 
virtual ~StateVariableBase ()=default
 

Private Attributes

m_value
 

Additional Inherited Members

- Public Attributes inherited from StateVariableBase
bool m_bNotify
 
QString m_sName
 
TaskTime m_ttLastChanged {}
 

Detailed Description

template<class T>
class StateVariable< T >

Definition at line 117 of file eventing.h.

Constructor & Destructor Documentation

◆ StateVariable() [1/2]

template<class T>
StateVariable< T >::StateVariable ( const QString &  sName,
bool  bNotify = false 
)
inlineexplicit

Definition at line 127 of file eventing.h.

◆ StateVariable() [2/2]

template<class T>
StateVariable< T >::StateVariable ( const QString &  sName,
value,
bool  bNotify = false 
)
inline

Definition at line 133 of file eventing.h.

Member Function Documentation

◆ ToString()

template<class T>
QString StateVariable< T >::ToString ( void  )
inlineoverridevirtual

Implements StateVariableBase.

Definition at line 139 of file eventing.h.

◆ GetValue()

template<class T>
T StateVariable< T >::GetValue ( void  )
inline

Definition at line 146 of file eventing.h.

Referenced by StateVariables::GetValue().

◆ SetValue()

template<class T>
void StateVariable< T >::SetValue ( value)
inline

Definition at line 153 of file eventing.h.

Referenced by StateVariables::SetValue().

Member Data Documentation

◆ m_value

template<class T>
T StateVariable< T >::m_value
private

Definition at line 121 of file eventing.h.


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