MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / removeRepo

Method removeRepo

tools/monitor/MonitorData.cpp:87–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87bool
88Monitor::MonitorData::removeRepo( const QString& ior)
89{
90 if( !this->enabled_) {
91 return false;
92 }
93
94 // Replace call to toStdString() with toLocal8Bit().constData()
95 // to avoid QString-related aborts under windows.
96 QByteArray ior_arr = ior.toLocal8Bit();
97 const char* ior_str = ior_arr.constData();
98
99 // Check if this is the currently monitored repository, and clear its
100 // data if it is in the view.
101 if( this->storage_->activeIor() == ior_str) {
102 this->clearData();
103 }
104
105 // Look up the index for this IOR and remove it from the service.
106 return true;
107}
108
109bool
110Monitor::MonitorData::clearData()

Callers

nothing calls this directly

Calls 2

clearDataMethod · 0.95
activeIorMethod · 0.80

Tested by

no test coverage detected