Serial Framework C++ Edition
CwclCustomSerialMonitor Class Referenceabstract

The base serial devices monitor class. More...

#include <wclSerialDevices.h>

Inheritance diagram for CwclCustomSerialMonitor:
CwclSerialMonitor CwclUsbMonitor

Public Member Functions

 CwclCustomSerialMonitor ()
 Creates a new Monitor component.
 
virtual ~CwclCustomSerialMonitor ()
 Frees the component.
 
int Start ()
 Starts monitoring hardware changes.
 
int Stop ()
 Stops monitoring hardware changes.
 
bool GetMonitoring ()
 Gets the hardware monitoring state.
 
 __declspec (property(get=GetMonitoring)) bool Monitoring
 Gets the hardware monitoring state.
 
wclMessageProcessingMethod GetMessageProcessing () const
 Gets a message processing method used by the monitor.
 
void SetMessageProcessing (const wclMessageProcessingMethod Value)
 Sets a message processing method used by the monitor.
 
 __declspec (property(get=GetMessageProcessing, put=SetMessageProcessing)) wclMessageProcessingMethod MessageProcessing
 Gets and sets a message processing method used by the monitor.
 
__event void OnStarted (void *Sender)
 The event called when the monitor was started.
 
__event void OnStopped (void *Sender)
 The event called when the monitor was stopped.
 

Protected Member Functions

virtual void MessageReceived (const CwclMessage *const Message)=0
 The method called when a new notification message received.
 
virtual void DoStarted ()
 Calls the OnStarted event.
 
virtual void DoStopped ()
 Calls the OnStopped event.
 

Detailed Description

The base serial devices monitor class.