blob: c4b69c93c51fe81dedbd2040a743216ab8df84bf [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006 - 2011 ACIN, Profactor GmbH
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Alois Zoitl, Gerhard Ebenhofer
* - initial API and implementation and/or initial documentation
*******************************************************************************/
#ifndef _E_MERGE_H_
#define _E_MERGE_H_
#include <funcbloc.h>
class E_MERGE: public CFunctionBlock{
DECLARE_FIRMWARE_FB(E_MERGE)
private:
static const TEventID scm_nEventEI1ID = 0;
static const TEventID scm_nEventEI2ID = 1;
static const CStringDictionary::TStringId scm_anEventInputNames[];
static const TEventID scm_nEventEOID = 0;
static const CStringDictionary::TStringId scm_anEventOutputNames[];
virtual void executeEvent(int pa_nEIID){
if((scm_nEventEI1ID == pa_nEIID)||(scm_nEventEI2ID == pa_nEIID)){
sendOutputEvent(scm_nEventEOID);
}
};
static const SFBInterfaceSpec scm_stFBInterfaceSpec;
FORTE_FB_DATA_ARRAY(1,0,0, 0);
public:
FUNCTION_BLOCK_CTOR(E_MERGE){
};
virtual ~E_MERGE() {};
};
#endif //_E_MERGE_H_