22 #if FW_OBJECT_TO_STRING == 1 && FW_OBJECT_NAMES == 1
23 void QueuedComponentBase::toString(
char* buffer,
NATIVE_INT_TYPE size) {
26 PlatformIntType status = snprintf(buffer,
static_cast<size_t>(size),
"QueueComp: %s", this->m_objName.toChar());
36 #if FW_OBJECT_NAMES == 1
37 queueName = this->m_objName;
41 queueName = queueNameChar;
47 return this->m_msgsDropped;
51 this->m_msgsDropped++;
PlatformIntType NATIVE_INT_TYPE
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
PlatformSizeType FwSizeType
#define FW_QUEUE_NAME_BUFFER_SIZE
Max size of message queue name.
C++-compatible configuration header for fprime configuration.
void init()
Object initializer.
QueuedComponentBase(const char *name)
Constructor.
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
Os::Queue m_queue
queue object for active component
void incNumMsgDropped()
increment the number of messages dropped
NATIVE_INT_TYPE getNumMsgsDropped()
return number of messages dropped
virtual ~QueuedComponentBase()
Destructor.
Status create(const Fw::StringBase &name, FwSizeType depth, FwSizeType messageSize) override
create queue storage through delegate
static FwSizeType getNumQueues()
get number of queues system-wide
Status
Generic OK/ERROR status.