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

#include <libmythupnp/eventing.h>

Inheritance diagram for StateVariable< T >:
[legend]
Collaboration diagram for StateVariable< T >:
[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 (const T &value)
 
- Public Member Functions inherited from StateVariableBase
 StateVariableBase (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 112 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 122 of file eventing.h.

◆ StateVariable() [2/2]

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

Definition at line 128 of file eventing.h.

Member Function Documentation

◆ ToString()

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

Implements StateVariableBase.

Definition at line 134 of file eventing.h.

◆ GetValue()

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

Definition at line 141 of file eventing.h.

Referenced by StateVariables::GetValue().

◆ SetValue()

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

Definition at line 148 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 116 of file eventing.h.


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