9 void setConnTrace(
bool trace) {
10 Fw::PortBase::setTrace(trace);
14 bool PortBase::s_trace =
false;
17 #endif // FW_PORT_TRACING 46 #if FW_PORT_TRACING == 1 48 void PortBase::trace()
const {
49 bool do_trace =
false;
51 if (this->m_ovr_trace) {
55 }
else if (PortBase::s_trace) {
60 #if FW_OBJECT_NAMES == 1 68 void PortBase::setTrace(
bool trace) {
69 PortBase::s_trace = trace;
72 void PortBase::ovrTrace(
bool ovr,
bool trace) {
73 this->m_ovr_trace = ovr;
74 this->m_trace = trace;
77 #endif // FW_PORT_TRACING 79 #if FW_OBJECT_TO_STRING == 1 80 const char* PortBase::getToStringFormatString() {
81 return "Port: %s %s->(%s)";
87 const char* formatString = this->getToStringFormatString();
89 const char* object_name =
90 #if FW_OBJECT_NAMES == 1 91 this->m_objName.toChar();
96 const char* this_is_connected = this->
isConnected() ?
"C" :
"NC";
100 #if FW_OBJECT_NAMES == 1 107 if (
Fw::ExternalString(buffer, static_cast<Fw::ExternalString::SizeType>(size)).format(
115 #endif // FW_OBJECT_TO_STRING
PlatformIntType NATIVE_INT_TYPE
static void log(const char *format,...)
log a formated string with supplied arguments
void init()
Object initializer.
#define FW_PORT_TRACING
Indicates whether port calls are traced (more code, more visibility into execution) ...
A string backed by an external buffer.
C++-compatible configuration header for fprime configuration.