fprime/Ref/RecvBuffApp/RecvBuffComponentImpl.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

37 lines
976 B
C++

#ifndef REF_LPR_ATM_IMPL_HPP
#define REF_LPR_ATM_IMPL_HPP
#include <Ref/RecvBuffApp/RecvBuffComponentAc.hpp>
namespace Ref {
class RecvBuffImpl : public RecvBuffComponentBase {
public:
// Only called by derived class
RecvBuffImpl(const char* compName);
void init(void);
~RecvBuffImpl(void);
private:
// downcall for input port
void Data_handler(NATIVE_INT_TYPE portNum, Drv::DataBuffer &buff);
Ref::PacketStat m_stats;
U32 m_buffsReceived; // !< number of buffers received
bool m_firstBuffReceived; // !< first buffer received or not
U32 m_errBuffs; // !< number of buffers with errors received
F32 m_sensor1;
F32 m_sensor2;
void toString(char* str, I32 buffer_size);
// parameter update notification
void parameterUpdated(FwPrmIdType id);
};
}
#endif