]> gerrit.simantics Code Review - simantics/fmil.git/blobdiff - org.simantics.fmil.core/native/FMILibrary/src/Util/include/FMI/fmi_version.h
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / src / Util / include / FMI / fmi_version.h
diff --git a/org.simantics.fmil.core/native/FMILibrary/src/Util/include/FMI/fmi_version.h b/org.simantics.fmil.core/native/FMILibrary/src/Util/include/FMI/fmi_version.h
new file mode 100644 (file)
index 0000000..3104db2
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+    Copyright (C) 2012 Modelon AB
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the BSD style license.
+
+     This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    FMILIB_License.txt file for more details.
+
+    You should have received a copy of the FMILIB_License.txt file
+    along with this program. If not, contact Modelon AB <http://www.modelon.com>.
+*/
+
+#ifndef FMI_VERSION_H
+#define FMI_VERSION_H
+#include <fmilib_config.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+       @file fmi_version.h 
+       \brief Enum defining supported FMI versions.
+
+       */
+/** \addtogroup jm_utils
+  * @{
+*/
+
+/** \brief Suported versions of FMI standard */\r
+typedef enum\r
+{ \r
+       fmi_version_unknown_enu = 0,\r
+       fmi_version_1_enu,\r
+       fmi_version_2_0_enu,\r
+       fmi_version_unsupported_enu\r
+} fmi_version_enu_t;\r
+
+/** Convert version enum into string */
+FMILIB_EXPORT
+const char * fmi_version_to_string(fmi_version_enu_t v);
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+/* JM_TYPES_H */
+#endif