Skip to content

Commit

Permalink
Merge pull request nasa#490 from nasa/fix/dp-async-pre-hook
Browse files Browse the repository at this point in the history
Fixing data product pre message hooks
  • Loading branch information
bocchino authored Aug 12, 2024
2 parents 04bd5a9 + 642748f commit 2ab0edd
Show file tree
Hide file tree
Showing 17 changed files with 1 addition and 297 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ case class ComponentPorts(
inputPortWriter.getHandlerBases(typedInputPorts),
inputPortWriter.getHandlers(serialInputPorts),
inputPortWriter.getHandlerBases(serialInputPorts),
inputPortWriter.getPreMsgHooks(dataProductInputPorts),
inputPortWriter.getPreMsgHooks(dataProductAsyncInputPorts),
inputPortWriter.getPreMsgHooks(typedAsyncInputPorts),
inputPortWriter.getPreMsgHooks(serialAsyncInputPorts),
outputPortWriter.getInvokers(dataProductOutputPorts),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2600,25 +2600,6 @@ void ActiveGuardedProductsComponentBase ::
);
}

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

void ActiveGuardedProductsComponentBase ::
productRecvIn_preMsgHook(
FwIndexType portNum,
FwDpIdType id,
const Fw::Buffer& buffer,
const Fw::Success& status
)
{
// Default: no-op
}

// ----------------------------------------------------------------------
// Pre-message hooks for typed async input ports
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1128,24 +1128,6 @@ class ActiveGuardedProductsComponentBase :
const S& s //!< A struct
);

PROTECTED:

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

//! Pre-message hook for async input port productRecvIn
virtual void productRecvIn_preMsgHook(
FwIndexType portNum, //!< The port number
FwDpIdType id, //!< The container ID
const Fw::Buffer& buffer, //!< The buffer
const Fw::Success& status //!< The status
);

PROTECTED:

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2594,25 +2594,6 @@ void ActiveSyncProductsComponentBase ::
);
}

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

void ActiveSyncProductsComponentBase ::
productRecvIn_preMsgHook(
FwIndexType portNum,
FwDpIdType id,
const Fw::Buffer& buffer,
const Fw::Success& status
)
{
// Default: no-op
}

// ----------------------------------------------------------------------
// Pre-message hooks for typed async input ports
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1128,24 +1128,6 @@ class ActiveSyncProductsComponentBase :
const S& s //!< A struct
);

PROTECTED:

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

//! Pre-message hook for async input port productRecvIn
virtual void productRecvIn_preMsgHook(
FwIndexType portNum, //!< The port number
FwDpIdType id, //!< The container ID
const Fw::Buffer& buffer, //!< The buffer
const Fw::Success& status //!< The status
);

PROTECTED:

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1855,25 +1855,6 @@ void PassiveGuardedProductsComponentBase ::
);
}

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

void PassiveGuardedProductsComponentBase ::
productRecvIn_preMsgHook(
FwIndexType portNum,
FwDpIdType id,
const Fw::Buffer& buffer,
const Fw::Success& status
)
{
// Default: no-op
}

// ----------------------------------------------------------------------
// Invocation functions for special output ports
// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -956,24 +956,6 @@ class PassiveGuardedProductsComponentBase :
const S& s //!< A struct
);

PROTECTED:

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

//! Pre-message hook for async input port productRecvIn
virtual void productRecvIn_preMsgHook(
FwIndexType portNum, //!< The port number
FwDpIdType id, //!< The container ID
const Fw::Buffer& buffer, //!< The buffer
const Fw::Success& status //!< The status
);

PROTECTED:

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,25 +265,6 @@ void PassiveSyncProductPortsOnlyComponentBase ::
);
}

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

void PassiveSyncProductPortsOnlyComponentBase ::
productRecvIn_preMsgHook(
FwIndexType portNum,
FwDpIdType id,
const Fw::Buffer& buffer,
const Fw::Success& status
)
{
// Default: no-op
}

// ----------------------------------------------------------------------
// Invocation functions for special output ports
// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,24 +188,6 @@ class PassiveSyncProductPortsOnlyComponentBase :
const Fw::Success& status //!< The status
);

PROTECTED:

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

//! Pre-message hook for async input port productRecvIn
virtual void productRecvIn_preMsgHook(
FwIndexType portNum, //!< The port number
FwDpIdType id, //!< The container ID
const Fw::Buffer& buffer, //!< The buffer
const Fw::Success& status //!< The status
);

PROTECTED:

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1849,25 +1849,6 @@ void PassiveSyncProductsComponentBase ::
);
}

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

void PassiveSyncProductsComponentBase ::
productRecvIn_preMsgHook(
FwIndexType portNum,
FwDpIdType id,
const Fw::Buffer& buffer,
const Fw::Success& status
)
{
// Default: no-op
}

// ----------------------------------------------------------------------
// Invocation functions for special output ports
// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -956,24 +956,6 @@ class PassiveSyncProductsComponentBase :
const S& s //!< A struct
);

PROTECTED:

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

//! Pre-message hook for async input port productRecvIn
virtual void productRecvIn_preMsgHook(
FwIndexType portNum, //!< The port number
FwDpIdType id, //!< The container ID
const Fw::Buffer& buffer, //!< The buffer
const Fw::Success& status //!< The status
);

PROTECTED:

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2146,25 +2146,6 @@ void PassiveTestComponentBase ::
);
}

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

void PassiveTestComponentBase ::
productRecvIn_preMsgHook(
FwIndexType portNum,
FwDpIdType id,
const Fw::Buffer& buffer,
const Fw::Success& status
)
{
// Default: no-op
}

// ----------------------------------------------------------------------
// Invocation functions for special output ports
// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1057,24 +1057,6 @@ class PassiveTestComponentBase :
const S& s //!< A struct
);

PROTECTED:

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

//! Pre-message hook for async input port productRecvIn
virtual void productRecvIn_preMsgHook(
FwIndexType portNum, //!< The port number
FwDpIdType id, //!< The container ID
const Fw::Buffer& buffer, //!< The buffer
const Fw::Success& status //!< The status
);

PROTECTED:

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2600,25 +2600,6 @@ void QueuedGuardedProductsComponentBase ::
);
}

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

void QueuedGuardedProductsComponentBase ::
productRecvIn_preMsgHook(
FwIndexType portNum,
FwDpIdType id,
const Fw::Buffer& buffer,
const Fw::Success& status
)
{
// Default: no-op
}

// ----------------------------------------------------------------------
// Pre-message hooks for typed async input ports
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1128,24 +1128,6 @@ class QueuedGuardedProductsComponentBase :
const S& s //!< A struct
);

PROTECTED:

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

//! Pre-message hook for async input port productRecvIn
virtual void productRecvIn_preMsgHook(
FwIndexType portNum, //!< The port number
FwDpIdType id, //!< The container ID
const Fw::Buffer& buffer, //!< The buffer
const Fw::Success& status //!< The status
);

PROTECTED:

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2594,25 +2594,6 @@ void QueuedSyncProductsComponentBase ::
);
}

// ----------------------------------------------------------------------
// Pre-message hooks for special async input ports
//
// Each of these functions is invoked just before processing a message
// on the corresponding port. By default, they do nothing. You can
// override them to provide specific pre-message behavior.
// ----------------------------------------------------------------------

void QueuedSyncProductsComponentBase ::
productRecvIn_preMsgHook(
FwIndexType portNum,
FwDpIdType id,
const Fw::Buffer& buffer,
const Fw::Success& status
)
{
// Default: no-op
}

// ----------------------------------------------------------------------
// Pre-message hooks for typed async input ports
//
Expand Down
Loading

0 comments on commit 2ab0edd

Please sign in to comment.