| [comment encoding = UTF-8 /] |
| [comment] |
| /***************************************************************************** |
| * Copyright (c) 2013 INTEMPORA S.A. |
| * |
| * This software is a computer program whose purpose is to transform RobotML models |
| * into RTMaps diagrams and RTMaps components via source code generation techniques. |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Nicolas DU LAC (INTEMPORA) - Initial API and implementation |
| * |
| *****************************************************************************/ |
| [/comment] |
| [module generate_rtmaps_robotml_primitive_datatypes_h('http://www.eclipse.org/uml2/3.0.0/UML', 'http://Papyrus/RobotML/1')] |
| |
| [import org::eclipse::papyrus::robotml::generators::common::mmqueries::DataTypeQueries /] |
| |
| [template public generateRTMapsRobotMLPrimitiveDataTypes(root_model : Model)] |
| [file ('user_sdk/include/robotml/maps_robotml_primitive_datatypes.h', false, 'UTF-8')] |
| #ifndef __MAPS_ROBOTML_PRIMITIVE_DATATYPES_H__ |
| #define __MAPS_ROBOTML_PRIMITIVE_DATATYPES_H__ |
| |
| #include <string> |
| #include <vector> |
| |
| #include "maps_types.h" |
| |
| /**************************************/ |
| /* PRIMITIVE DATA TYPES */ |
| /**************************************/ |
| typedef bool Bool; |
| typedef MAPSUInt8 Byte; |
| typedef MAPSUInt8 Char; |
| typedef MAPSInt8 Int8; |
| typedef MAPSUInt8 UInt8; |
| typedef MAPSInt16 Int16; |
| typedef MAPSUInt16 UInt16; |
| typedef MAPSInt32 Int32; |
| typedef MAPSUInt32 UInt32; |
| typedef MAPSInt64 Int64; |
| typedef MAPSUInt64 UInt64; |
| typedef MAPSFloat32 Float32; |
| typedef MAPSFloat64 Float64; |
| |
| typedef std::string String; |
| |
| typedef MAPSTimestamp Time; |
| typedef MAPSDelay Duration; |
| |
| class MAPSRobotMLString { |
| std::string text; |
| }; |
| |
| #endif //__MAPS_ROBOTML_PRIMITIVE_DATATYPES_H__ |
| [/file] |
| |
| [/template] |