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

Method read

isis/src/control/objs/ControlNetVersioner/ControlNetVersioner.cpp:553–574  ·  view source on GitHub ↗

* Read a control network file and prepare the data to be converted into * a control network. * * @param netFile The control network file to read. * @param progress The progress object to track reading points. */

Source from the content-addressed store, hash-verified

551 * @param progress The progress object to track reading points.
552 */
553 void ControlNetVersioner::read(const FileName netFile, Progress *progress) {
554 try {
555
556 const Pvl &network(netFile.expanded());
557
558 if ( network.hasObject("ProtoBuffer") ) {
559 readProtobuf(network, netFile, progress);
560 }
561 else if ( network.hasObject("ControlNetwork") ) {
562 readPvl(network, progress);
563 }
564 else {
565 QString msg = "Could not determine the control network file type";
566 throw IException(IException::Io, msg, _FILEINFO_);
567 }
568 }
569 catch (IException &e) {
570 QString msg = "Reading the control network [" + netFile.name()
571 + "] failed";
572 throw IException(e, IException::Io, msg, _FILEINFO_);
573 }
574 }
575
576
577 /**

Callers 15

InterestByMeasureMethod · 0.45
ValidStandardOptionsMethod · 0.45
CreateMethod · 0.45
BundleAdjustMethod · 0.45
IsisMainFunction · 0.45
IsisMainFunction · 0.45
printMapFunction · 0.45
IsisMainFunction · 0.45
IsisMainFunction · 0.45
autoseedFunction · 0.45

Calls 3

hasObjectMethod · 0.80
IExceptionClass · 0.50
nameMethod · 0.45

Tested by

no test coverage detected