Bachelorthesis/Modbus-DLL/include/VCSignalProtocolDLL/ModbusProtocolAddOn.h
Jonny007-MKD b0c465c341 Changed VCSignalProtocol to ModbusProtocol
This is a first draft and it would be lucky if it worked
2014-05-28 14:27:53 +00:00

52 lines
1.3 KiB
C++

/*-------------------------------------------------------------------
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;
};
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////