CMake/Source/cmGhsMultiGpj.cxx
Fred Baksik b2a72ec72d GHS: Cleanup unused file handling functions and file output updates
-- File handling cleanup
-- Rename some functions to clarify what they do
-- Update to source file path conversion; only perform conversion when using windows
2019-01-16 10:41:31 -05:00

38 lines
992 B
C++

/* 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;
}