IMessageInterface

class IMessageInterface

interface for Remote::Message::IncomingMessage and Remote::Message::OutgoingMessage and derived objects (Remote::Command, Remote::Report)

Subclassed by Remote::Message::IncomingMessage, Remote::Message::OutgoingMessage

Public Functions

inline virtual IEC60870_5_TypeID getType() const

Getter for remote message type identifier.

Returns:

type identifier as enum

inline virtual uint_fast16_t getCommonAddress() const

Getter for common address of remote message receiver.

Returns:

common address of receiver station

inline virtual uint_fast8_t getOriginatorAddress() const

Getter for originator address of client who is related to remote message.

Returns:

common address of client

inline virtual uint_fast32_t getIOA() const

Getter for information object address.

Returns:

address of information object related to message content

inline virtual InformationObject getInformationObject() const

Getter for information object of remote message.

Returns:

internal informationObject

inline virtual std::shared_ptr<Object::Information> getInfo() const

Get the value from an information object inside the remote message.

Returns:

value as Information object

inline virtual bool isTest() const

test if message test flag is set

Returns:

information if message has a value

inline virtual bool isNegative() const

test if message negative flag is set

Returns:

information if message has a value

inline virtual bool isSequence() const

test if message sequence flag is set

Returns:

information if message has a value

inline virtual CS101_CauseOfTransmission getCauseOfTransmission() const

Getter for cause of transmission: why was this message transmitted.

Returns:

cause of transmission as enum