Isis 3.0 Object Programmers' Reference |
Home |
Handle Binary Control Network Files version 1. More...
#include <ControlNetFileV0001.h>
Public Member Functions | |
virtual void | Read (const Pvl &header, const FileName &file) |
This reads the binary file into memory. | |
virtual void | Write (const FileName &file) const |
This writes the binary file that is in memory to disk. | |
virtual Pvl | toPvl () const |
Convert the binary representation to Pvl (any pvl version). | |
ControlNetFileProtoV0001 & | GetNetwork () |
Retrieve the protocol buffer that encapsulates the entire control network. | |
ControlNetLogDataProtoV0001 & | GetLogData () |
Retrieve the protocol buffer that encapsulates all of the log data. | |
Private Attributes | |
ControlNetFileProtoV0001 * | p_network |
This contains the entire cnet. | |
ControlNetLogDataProtoV0001 * | p_logData |
This contains all of the log data in the cnet. | |
Handle Binary Control Network Files version 1.
This functionality and history was extracted from Isis::ControlNet
2010-01-12 Tracie Sucharski Added support for binary networks, added new parameters, renamed ComputeErrors to ComputeResiduals, renamed MaximumError to MaximumResidual, renamed AverageError to AverageResidual.
2010-08-05 Steven Lambright New label format much closer to a cube so that we can expand upon it easily later. Also added support for more than just the protocol buffer in the file, at the current cost of reading the protocol buffer's binary data into memory. This might need to be changed later.
2011-04-04 Steven Lambright - Reading is more likely to work... not sure why my changes fixed it for very large networks. Binary reads now do the same progress as Pvl for console output consistency (and because it can take time).
2011-04-08 Steven Lambright - Extracted functionality to ControlNetFileV0001 class
Definition at line 58 of file ControlNetFileV0001.h.
|
inline |
Retrieve the protocol buffer that encapsulates all of the log data.
Definition at line 82 of file ControlNetFileV0001.h.
References p_logData.
|
inline |
Retrieve the protocol buffer that encapsulates the entire control network.
Definition at line 74 of file ControlNetFileV0001.h.
References p_network.
This reads the binary file into memory.
The header is the Pvl that must be at the top of the file (it's how we could tell it was binary in the first place).
header | The pvl at the top of the file down to the "End" keyword |
file | The filename of the binary file to be read |
Implements Isis::ControlNetFile.
Definition at line 35 of file ControlNetFileV0001.cpp.
References _FILEINFO_, Isis::PvlObject::clear(), and Isis::PvlObject::findObject().
|
virtual |
Convert the binary representation to Pvl (any pvl version).
Implements Isis::ControlNetFile.
Definition at line 97 of file ControlNetFileV0001.cpp.
References Isis::PvlObject::addObject(), Isis::PvlObject::findObject(), Isis::ControlMeasureLogData::ToKeyword(), and Isis::toString().
|
inlinevirtual |
This writes the binary file that is in memory to disk.
The behavior of this method is undefined if the required data is not set (ControlNetVersioner::LatestPvlToBinary guarantees they are, and this should never be called for old versions).
file | The filename of the binary file to be written |
Implements Isis::ControlNetFile.
Definition at line 67 of file ControlNetFileV0001.h.
|
private |
This contains all of the log data in the cnet.
Definition at line 91 of file ControlNetFileV0001.h.
Referenced by GetLogData().
|
private |
This contains the entire cnet.
Definition at line 88 of file ControlNetFileV0001.h.
Referenced by GetNetwork().