You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently the "TaskPipe" function is comprised of a couple big switch statements based on MsgId and FcnCode, along with length validation and potentially other structural checks. If/When migrating to EDS some of that logic can be handled by common code that check against constraints defined in EDS.
Describe the solution you'd like
The current "TaskPipe" function and the supporting logic around it should be moved to a separate "dispatch" source unit. This improves organization in general, but also makes for an easier switch to different logic in the future, should that come to be needed.
Describe alternatives you've considered
The alternative is to add #ifdef blocks if validation logic needs to be switched.
Additional context
The recommended solution of moving this logic to a separate source unit permits source-selection in CMake at configuration time rather than relying on preprocessor-based option selection. This is generally cleaner, and permits all options to be verified in a single unit test build, as opposed to only being able to test the selected option.
Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered:
jphickey
changed the title
Separate cmd pipe processing into separate dispatch file
Move cmd pipe processing into separate dispatch file
Mar 23, 2023
Isolate the message verification and dispatch from the general message
processing. Functions in the "task" source file now strictly handle the
command content, and do not get involved in general validation.
Also note: this is mostly a simple code move but does add a "const"
qualifier to the task pipe function where it was missing before. All of
the handlers were already "const".
Isolate the message verification and dispatch from the general message
processing. Functions in the "task" source file now strictly handle the
command content, and do not get involved in general validation.
Also note: this is mostly a simple code move but does add a "const"
qualifier to the task pipe function where it was missing before. All of
the handlers were already "const".
Is your feature request related to a problem? Please describe.
Currently the "TaskPipe" function is comprised of a couple big switch statements based on MsgId and FcnCode, along with length validation and potentially other structural checks. If/When migrating to EDS some of that logic can be handled by common code that check against constraints defined in EDS.
Describe the solution you'd like
The current "TaskPipe" function and the supporting logic around it should be moved to a separate "dispatch" source unit. This improves organization in general, but also makes for an easier switch to different logic in the future, should that come to be needed.
Describe alternatives you've considered
The alternative is to add
#ifdef
blocks if validation logic needs to be switched.Additional context
The recommended solution of moving this logic to a separate source unit permits source-selection in CMake at configuration time rather than relying on preprocessor-based option selection. This is generally cleaner, and permits all options to be verified in a single unit test build, as opposed to only being able to test the selected option.
Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: