Revise C++ code gen for ports

This commit is contained in:
Rob Bocchino 2025-12-01 10:00:55 -08:00
parent 70324c458e
commit b48d40a5c5
13 changed files with 31 additions and 31 deletions

View File

@ -113,10 +113,10 @@ case class PortCppWriter (
),
)
)
wrapMembersInIfDirective(
"#if !FW_DIRECT_PORT_CALLS",
List.concat(
List(hppIncludes, cppIncludes),
List.concat(
List(hppIncludes, cppIncludes),
wrapMembersInIfDirective(
"#if !FW_DIRECT_PORT_CALLS",
wrapInNamespaces(
namespaceIdentList,
List.concat(
@ -127,9 +127,9 @@ case class PortCppWriter (
CppDoc.Lines.Hpp
)
)
)
),
CppDoc.Lines.Cpp
),
CppDoc.Lines.Cpp
)
)
}

View File

@ -4,12 +4,12 @@
// \brief cpp file for NoArgs port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#include "base/NoArgsPortAc.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace Ports {
namespace {

View File

@ -4,12 +4,12 @@
// \brief cpp file for NoArgsReturn port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#include "base/NoArgsReturnPortAc.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace Ports {
// ----------------------------------------------------------------------

View File

@ -4,12 +4,12 @@
// \brief cpp file for Typed port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#include "base/TypedPortAc.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace Ports {
namespace {

View File

@ -4,12 +4,12 @@
// \brief cpp file for TypedReturn port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#include "base/TypedReturnPortAc.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace Ports {
// ----------------------------------------------------------------------

View File

@ -4,12 +4,12 @@
// \brief cpp file for AbsType port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "AbsTypePortAc.hpp"
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace {
// ----------------------------------------------------------------------

View File

@ -4,12 +4,12 @@
// \brief cpp file for Empty port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "EmptyPortAc.hpp"
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace {
// ----------------------------------------------------------------------

View File

@ -4,12 +4,12 @@
// \brief cpp file for FppType port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "FppTypePortAc.hpp"
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace {
// ----------------------------------------------------------------------

View File

@ -4,12 +4,12 @@
// \brief cpp file for KwdName port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#include "KwdNamePortAc.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace {
// ----------------------------------------------------------------------

View File

@ -4,12 +4,12 @@
// \brief cpp file for Primitive port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#include "PrimitivePortAc.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace {
// ----------------------------------------------------------------------

View File

@ -4,12 +4,12 @@
// \brief cpp file for ReturnType port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#include "ReturnTypePortAc.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace M {
// ----------------------------------------------------------------------

View File

@ -4,12 +4,12 @@
// \brief cpp file for String port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#include "StringPortAc.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace {
// ----------------------------------------------------------------------

View File

@ -4,12 +4,12 @@
// \brief cpp file for StringReturnType port
// ======================================================================
#if !FW_DIRECT_PORT_CALLS
#include "Fw/Types/Assert.hpp"
#include "Fw/Types/ExternalString.hpp"
#include "StringReturnTypePortAc.hpp"
#if !FW_DIRECT_PORT_CALLS
namespace M {
// ----------------------------------------------------------------------