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.
#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::QueueStatus createQueue(NATIVE_INT_TYPE depth, NATIVE_INT_TYPE 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.
QueueStatus create(const Fw::StringBase &name, NATIVE_INT_TYPE depth, NATIVE_INT_TYPE msgSize)
create a message queue
static NATIVE_INT_TYPE getNumQueues()
get the number of queues in the system