fprime/Svc/ComSplitter/ComSplitter.hpp
Joshua Anderson 3cccd731d9
Refactor FW_OBJECT_NAMES switches and fix building without object names
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.
2020-10-07 17:19:05 -07:00

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