summaryrefslogtreecommitdiffstats
path: root/Source/cmGhsMultiGpj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGhsMultiGpj.cxx')
-rw-r--r--Source/cmGhsMultiGpj.cxx37
1 files changed, 37 insertions, 0 deletions
diff --git a/Source/cmGhsMultiGpj.cxx b/Source/cmGhsMultiGpj.cxx
new file mode 100644
index 0000000..c1f0742
--- /dev/null
+++ b/Source/cmGhsMultiGpj.cxx
@@ -0,0 +1,37 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing for details. */
+#include "cmGhsMultiGpj.h"
+
+#include "cmGeneratedFileStream.h"
+
+static const char* GHS_TAG[] = { "[INTEGRITY Application]",
+ "[Library]",
+ "[Project]",
+ "[Program]",
+ "[Reference]",
+ "[Subproject]" };
+
+const char* GhsMultiGpj::GetGpjTag(Types const gpjType)
+{
+ char const* tag;
+ switch (gpjType) {
+ case INTERGRITY_APPLICATION:
+ case LIBRARY:
+ case PROJECT:
+ case PROGRAM:
+ case REFERENCE:
+ case SUBPROJECT:
+ tag = GHS_TAG[gpjType];
+ break;
+ default:
+ tag = "";
+ }
+ return tag;
+}
+
+void GhsMultiGpj::WriteGpjTag(Types const gpjType, std::ostream& fout)
+{
+ char const* tag;
+ tag = GhsMultiGpj::GetGpjTag(gpjType);
+ fout << tag << std::endl;
+}