22#if FW_OBJECT_TO_STRING == 1 && FW_OBJECT_NAMES == 1
23 void QueuedComponentBase::toString(
char* buffer,
NATIVE_INT_TYPE size) {
25 if (snprintf(buffer, size,
"QueueComp: %s", this->m_objName) < 0) {
34#if FW_OBJECT_NAMES == 1
35 queueName = this->m_objName;
39 queueName = queueNameChar;
45 return this->m_msgsDropped;
49 this->m_msgsDropped++;
PlatformIntType NATIVE_INT_TYPE
#define FW_QUEUE_NAME_MAX_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