blob: 482b413163b21dc3991ebf19458e8bc75184c039 [file] [log] [blame]
/**
* Copyright (c) 2020-2021 Robert Bosch GmbH.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
*/
package org.eclipse.app4mc.slg.ros2.transformers
import com.google.inject.Inject
import com.google.inject.Singleton
import org.eclipse.app4mc.amalthea.model.ChannelSend
import org.eclipse.app4mc.slg.commons.m2t.transformers.SynteticTransformer
import org.eclipse.app4mc.slg.ros2.generators.RosChannelSendUtilsTranslationUnit
import org.eclipse.app4mc.transformation.util.OutputBuffer
@Singleton
class RosChannelSendUtilsTransformer extends SynteticTransformer<RosChannelSendUtilsTranslationUnit> {
@Inject OutputBuffer outputBuffer
def RosChannelSendUtilsTranslationUnit generate(ChannelSend cs) {
return generateIntern(cs) // hash according to class not instance
}
def create new RosChannelSendUtilsTranslationUnit(outputBuffer, cs) generateIntern(ChannelSend cs) {
}
override getCache() { return this._createCache_generateIntern }
}