| /** |
| * Copyright (c) 2020 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.commons.m2t.generators; |
| |
| public class TranslationUnit { |
| private String path; |
| private String call; |
| private String incFile; |
| private String srcFile; |
| |
| public TranslationUnit(final String path, final String call, final String incFile, final String srcFile) { |
| this.path = path; |
| this.call = call; |
| this.incFile = incFile; |
| this.srcFile = srcFile; |
| } |
| |
| public TranslationUnit() { |
| this("MODULE_PATH", "CALL", "MODULE.H", "MODULE.CPP"); // dummy values for unused data |
| } |
| |
| public String getCall() { |
| return this.call; |
| } |
| |
| public void setCall(final String _call) { |
| this.call = _call; |
| } |
| |
| public String getPath() { |
| return this.path; |
| } |
| |
| public void setPath(final String _path) { |
| this.path = _path; |
| } |
| |
| public String getSrcFile() { |
| return this.srcFile; |
| } |
| |
| public String getIncFile() { |
| return this.incFile; |
| } |
| |
| public String getExtendedIncPath() { |
| return ((this.path + "/_inc/") + this.incFile); |
| } |
| |
| public String getExtendedSrcPath() { |
| return ((this.path + "/_src/") + this.srcFile); |
| } |
| |
| } |