C++Instrument Catalog MFC 1.2
Metrolab C++InstrumentCatalog for MFC
Loading...
Searching...
No Matches
MTL::InstrumentCatalogInterface::CVariable< DataType > Class Template Reference

#include <Catalog.h>

Inheritance diagram for MTL::InstrumentCatalogInterface::CVariable< DataType >:

Public Member Functions

 CVariable ()
 CVariable (DataType InitialValue)
virtual ~CVariable ()

Protected Member Functions

void rWrite (const DataType &rNewValue)
void Write (const DataType NewValue)
void rRead (DataType &rReturnedValue)
DataType Read (void)
void Subscribe (CObserverNotifier_untyped &rNotifier, CObserver< DataType > &rObs)
void Unsubscribe (CObserverNotifier_untyped &rNotifier)

Protected Attributes

DataType m_Value
CRecursiveMutex m_Lock

Friends

class CControl< DataType >
class CObserver< DataType >

Detailed Description

template<class DataType>
class MTL::InstrumentCatalogInterface::CVariable< DataType >

Definition at line 19 of file Catalog.h.

Constructor & Destructor Documentation

◆ CVariable() [1/2]

template<class DataType>
MTL::InstrumentCatalogInterface::CVariable< DataType >::CVariable ( )
inline

Definition at line 39 of file Catalog.h.

◆ CVariable() [2/2]

template<class DataType>
MTL::InstrumentCatalogInterface::CVariable< DataType >::CVariable ( DataType InitialValue)
inline

Definition at line 41 of file Catalog.h.

◆ ~CVariable()

template<class DataType>
virtual MTL::InstrumentCatalogInterface::CVariable< DataType >::~CVariable ( )
inlinevirtual

Definition at line 44 of file Catalog.h.

Member Function Documentation

◆ Read()

template<class DataType>
DataType MTL::InstrumentCatalogInterface::CVariable< DataType >::Read ( void )
inlineprotected

Definition at line 68 of file Catalog.h.

◆ rRead()

template<class DataType>
void MTL::InstrumentCatalogInterface::CVariable< DataType >::rRead ( DataType & rReturnedValue)
inlineprotected

Definition at line 62 of file Catalog.h.

◆ rWrite()

template<class DataType>
void MTL::InstrumentCatalogInterface::CVariable< DataType >::rWrite ( const DataType & rNewValue)
inlineprotected

Definition at line 51 of file Catalog.h.

◆ Subscribe()

template<class DataType>
void MTL::InstrumentCatalogInterface::CVariable< DataType >::Subscribe ( CObserverNotifier_untyped & rNotifier,
CObserver< DataType > & rObs )
inlineprotected

Definition at line 78 of file Catalog.h.

◆ Unsubscribe()

template<class DataType>
void MTL::InstrumentCatalogInterface::CVariable< DataType >::Unsubscribe ( CObserverNotifier_untyped & rNotifier)
inlineprotected

Definition at line 84 of file Catalog.h.

◆ Write()

template<class DataType>
void MTL::InstrumentCatalogInterface::CVariable< DataType >::Write ( const DataType NewValue)
inlineprotected

Definition at line 58 of file Catalog.h.

◆ CControl< DataType >

template<class DataType>
friend class CControl< DataType >
friend

Definition at line 1 of file Catalog.h.

◆ CObserver< DataType >

template<class DataType>
friend class CObserver< DataType >
friend

Definition at line 1 of file Catalog.h.

Member Data Documentation

◆ m_Lock

template<class DataType>
CRecursiveMutex MTL::InstrumentCatalogInterface::CVariable< DataType >::m_Lock
protected

Definition at line 33 of file Catalog.h.

◆ m_Value

template<class DataType>
DataType MTL::InstrumentCatalogInterface::CVariable< DataType >::m_Value
protected

Definition at line 32 of file Catalog.h.


The documentation for this class was generated from the following file:
  • Libraries/InstrumentCatalogInterface/include/Catalog.h