mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 17:47:10 -06:00
Instead of adding the name argument to a constructor when FW_OBJECT_NAMES is enabled, always supply a name argument. Add a marco that conditionally sets the name to "" if FW_OBJECT_NAMES is not set. This cleans up a lot of the conditional compilation switches that weren't being tested and would silently break, while still stripping the strings from the binary.
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
// ----------------------------------------------------------------------
|
|
//
|
|
// ComSplitter.hpp
|
|
//
|
|
// ----------------------------------------------------------------------
|
|
|
|
#ifndef COMSPLITTER_HPP
|
|
#define COMSPLITTER_HPP
|
|
|
|
#include <Svc/ComSplitter/ComSplitterComponentAc.hpp>
|
|
#include <Fw/Types/Assert.hpp>
|
|
|
|
namespace Svc {
|
|
|
|
class ComSplitter :
|
|
public ComSplitterComponentBase
|
|
{
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Friend class for whitebox testing
|
|
// ----------------------------------------------------------------------
|
|
|
|
friend class ComSplitterComponentBaseFriend;
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Construction, initialization, and destruction
|
|
// ----------------------------------------------------------------------
|
|
|
|
public:
|
|
|
|
ComSplitter(const char* compName);
|
|
|
|
~ComSplitter(void);
|
|
|
|
void init(NATIVE_INT_TYPE instance);
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Handler implementations
|
|
// ----------------------------------------------------------------------
|
|
|
|
private:
|
|
|
|
void comIn_handler(
|
|
NATIVE_INT_TYPE portNum,
|
|
Fw::ComBuffer &data,
|
|
U32 context
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#endif
|