/*------------------------------------------------------------------- ModbusProtocolAddOn.h ------------------------------------------------------------------- (c) Vector Informatik GmbH. All rights reserved. ------------------------------------------------------------------- */ #pragma once //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------*/ //! Factory for the VCSignalProtocol /*! This class is registered at the NIPB::IAddOnRegistrar registrar. It is responsible to create a instance of the ModbusProtocol, when needed. */ class ModbusProtocolAddOn : public NIPB::IProtocolAddOn { // // Construction // public: ModbusProtocolAddOn(); static ModbusProtocolAddOn& Instance(); // // IProtocolAddOn // public: VDECL CreateProtocol( const char /*in*/ *protocolSymbol, NIPB::IProtocol /*out*/ **protocol ); VDECL ReleaseProtocol( NIPB::IProtocol /*in*/ *protocol); // // Methods // public: void Release(); // // Attributes // private: static ModbusProtocolAddOn *sInstance; }; //////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////