opendnp3  3.1.0
Reference implementation of DNP3 (IEEE-1815)
opendnp3::DefaultMasterApplication Class Referencefinal

#include <opendnp3/master/DefaultMasterApplication.h>

Public Member Functions

 DefaultMasterApplication ()
 
virtual bool AssignClassDuringStartup () final
 
virtual void ConfigureAssignClassRequest (const WriteHeaderFunT &fun) final
 Configure the request headers for assign class. More...
 
virtual UTCTimestamp Now () final
 Returns a UTCTimestamp of the current time. More...
 
virtual void OnReceiveIIN (const IINField &iin) final
 Called when a response or unsolicited response is receive from the outstation. More...
 
virtual void OnStateChange (LinkStatus value) final
 Called when a the reset/unreset status of the link layer changes. More...
 
virtual void OnTaskComplete (const TaskInfo &info) final
 Task completion notification. More...
 
virtual void OnTaskStart (MasterTaskType type, TaskId id) final
 Task start notification. More...
 
- Public Member Functions inherited from opendnp3::IMasterApplication
virtual ~IMasterApplication ()
 
virtual void OnClose ()
 Called when the application layer is closed. More...
 
virtual void OnOpen ()
 Called when the application layer is opened. More...
 

Static Public Member Functions

static std::shared_ptr< IMasterApplicationCreate ()
 

Detailed Description

Definition at line 30 of file DefaultMasterApplication.h.

Constructor & Destructor Documentation

◆ DefaultMasterApplication()

opendnp3::DefaultMasterApplication::DefaultMasterApplication ( )
inline

Definition at line 33 of file DefaultMasterApplication.h.

Member Function Documentation

◆ AssignClassDuringStartup()

virtual bool opendnp3::DefaultMasterApplication::AssignClassDuringStartup ( )
inlinefinalvirtual
Returns
true if the master should do an assign class task during startup handshaking

Reimplemented from opendnp3::IMasterApplication.

Definition at line 46 of file DefaultMasterApplication.h.

◆ ConfigureAssignClassRequest()

virtual void opendnp3::DefaultMasterApplication::ConfigureAssignClassRequest ( const WriteHeaderFunT fun)
inlinefinalvirtual

Configure the request headers for assign class.

Only called if "AssignClassDuringStartup" returns true The user only needs to call the function for each header type to be written

Reimplemented from opendnp3::IMasterApplication.

Definition at line 51 of file DefaultMasterApplication.h.

◆ Create()

static std::shared_ptr<IMasterApplication> opendnp3::DefaultMasterApplication::Create ( )
inlinestatic

Definition at line 35 of file DefaultMasterApplication.h.

◆ Now()

virtual UTCTimestamp opendnp3::DefaultMasterApplication::Now ( )
finalvirtual

Returns a UTCTimestamp of the current time.

Implements opendnp3::IUTCTimeSource.

◆ OnReceiveIIN()

virtual void opendnp3::DefaultMasterApplication::OnReceiveIIN ( const IINField iin)
inlinefinalvirtual

Called when a response or unsolicited response is receive from the outstation.

Reimplemented from opendnp3::IMasterApplication.

Definition at line 40 of file DefaultMasterApplication.h.

◆ OnStateChange()

virtual void opendnp3::DefaultMasterApplication::OnStateChange ( LinkStatus  value)
inlinefinalvirtual

Called when a the reset/unreset status of the link layer changes.

Reimplemented from opendnp3::ILinkListener.

Definition at line 55 of file DefaultMasterApplication.h.

◆ OnTaskComplete()

virtual void opendnp3::DefaultMasterApplication::OnTaskComplete ( const TaskInfo info)
inlinefinalvirtual

Task completion notification.

Reimplemented from opendnp3::IMasterApplication.

Definition at line 44 of file DefaultMasterApplication.h.

◆ OnTaskStart()

virtual void opendnp3::DefaultMasterApplication::OnTaskStart ( MasterTaskType  type,
TaskId  id 
)
inlinefinalvirtual

Task start notification.

Reimplemented from opendnp3::IMasterApplication.

Definition at line 42 of file DefaultMasterApplication.h.


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