MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / deleteObject

Method deleteObject

isis/src/core/src/PvlObject.cpp:358–368  ·  view source on GitHub ↗

* Remove an object from the current PvlObject. * * @param name The name of the PvlObject to remove. * * @throws IException */

Source from the content-addressed store, hash-verified

356 * @throws IException
357 */
358 void PvlObject::deleteObject(const QString &name) {
359 PvlObjectIterator key = findObject(name, beginObject(), endObject());
360 if(key == endObject()) {
361 QString msg = "Unable to find PVL object [" + name + "] in " + type() +
362 " [" + this->name() + "]";
363 if(m_filename.size() > 0) msg += " in file [" + m_filename + "]";
364 throw IException(IException::Unknown, msg, _FILEINFO_);
365 }
366
367 m_objects.erase(key);
368 }
369
370
371 /**

Callers 15

IsisMainFunction · 0.80
updatePointingMethod · 0.80
updatePositionMethod · 0.80
jigsawFunction · 0.80
validatePvlMethod · 0.80
validateObjectMethod · 0.80
IsisMainFunction · 0.80
IsisMainFunction · 0.80
attachSpiceFromIsdMethod · 0.80
deleteBlobMethod · 0.80
IsisMainFunction · 0.80
shadowFunction · 0.80

Calls 5

nameFunction · 0.85
IExceptionClass · 0.50
nameMethod · 0.45
sizeMethod · 0.45
eraseMethod · 0.45

Tested by 7

IsisMainFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64