mirror of
https://github.com/nasa/fpp.git
synced 2025-12-10 00:40:22 -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(
|
||||
"#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
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@ -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 {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@ -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 {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@ -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 {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@ -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 {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@ -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 {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@ -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 {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@ -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 {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@ -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 {
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user