mirror of
https://github.com/nasa/fpp.git
synced 2025-12-10 17:29:15 -06:00
Revise C++ code gen for ports
This commit is contained in:
parent
70324c458e
commit
b48d40a5c5
@ -113,10 +113,10 @@ case class PortCppWriter (
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
wrapMembersInIfDirective(
|
List.concat(
|
||||||
"#if !FW_DIRECT_PORT_CALLS",
|
List(hppIncludes, cppIncludes),
|
||||||
List.concat(
|
wrapMembersInIfDirective(
|
||||||
List(hppIncludes, cppIncludes),
|
"#if !FW_DIRECT_PORT_CALLS",
|
||||||
wrapInNamespaces(
|
wrapInNamespaces(
|
||||||
namespaceIdentList,
|
namespaceIdentList,
|
||||||
List.concat(
|
List.concat(
|
||||||
@ -127,9 +127,9 @@ case class PortCppWriter (
|
|||||||
CppDoc.Lines.Hpp
|
CppDoc.Lines.Hpp
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
),
|
||||||
),
|
CppDoc.Lines.Cpp
|
||||||
CppDoc.Lines.Cpp
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for NoArgs port
|
// \brief cpp file for NoArgs port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
#include "base/NoArgsPortAc.hpp"
|
#include "base/NoArgsPortAc.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace Ports {
|
namespace Ports {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for NoArgsReturn port
|
// \brief cpp file for NoArgsReturn port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
#include "base/NoArgsReturnPortAc.hpp"
|
#include "base/NoArgsReturnPortAc.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace Ports {
|
namespace Ports {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for Typed port
|
// \brief cpp file for Typed port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
#include "base/TypedPortAc.hpp"
|
#include "base/TypedPortAc.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace Ports {
|
namespace Ports {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for TypedReturn port
|
// \brief cpp file for TypedReturn port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
#include "base/TypedReturnPortAc.hpp"
|
#include "base/TypedReturnPortAc.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace Ports {
|
namespace Ports {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for AbsType port
|
// \brief cpp file for AbsType port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "AbsTypePortAc.hpp"
|
#include "AbsTypePortAc.hpp"
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for Empty port
|
// \brief cpp file for Empty port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "EmptyPortAc.hpp"
|
#include "EmptyPortAc.hpp"
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for FppType port
|
// \brief cpp file for FppType port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "FppTypePortAc.hpp"
|
#include "FppTypePortAc.hpp"
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for KwdName port
|
// \brief cpp file for KwdName port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
#include "KwdNamePortAc.hpp"
|
#include "KwdNamePortAc.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for Primitive port
|
// \brief cpp file for Primitive port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
#include "PrimitivePortAc.hpp"
|
#include "PrimitivePortAc.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for ReturnType port
|
// \brief cpp file for ReturnType port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
#include "ReturnTypePortAc.hpp"
|
#include "ReturnTypePortAc.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace M {
|
namespace M {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for String port
|
// \brief cpp file for String port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
#include "StringPortAc.hpp"
|
#include "StringPortAc.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
// \brief cpp file for StringReturnType port
|
// \brief cpp file for StringReturnType port
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
|
|
||||||
#if !FW_DIRECT_PORT_CALLS
|
|
||||||
|
|
||||||
#include "Fw/Types/Assert.hpp"
|
#include "Fw/Types/Assert.hpp"
|
||||||
#include "Fw/Types/ExternalString.hpp"
|
#include "Fw/Types/ExternalString.hpp"
|
||||||
#include "StringReturnTypePortAc.hpp"
|
#include "StringReturnTypePortAc.hpp"
|
||||||
|
|
||||||
|
#if !FW_DIRECT_PORT_CALLS
|
||||||
|
|
||||||
namespace M {
|
namespace M {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user