1 #ifndef ControlNetVersioner_h 2 #define ControlNetVersioner_h 29 #include <QSharedPointer> 45 class ControlPointV0001;
46 class ControlPointV0002;
47 class ControlPointV0003;
433 QString
netId()
const;
476 struct ControlNetHeaderV0001 {
484 QString lastModified;
492 typedef ControlNetHeaderV0001 ControlNetHeaderV0002;
494 typedef ControlNetHeaderV0001 ControlNetHeaderV0003;
496 typedef ControlNetHeaderV0001 ControlNetHeaderV0004;
498 typedef ControlNetHeaderV0001 ControlNetHeaderV0005;
507 void readPvl(
const Pvl &network,
Progress *progress=NULL);
515 void readProtobufV0001(
const Pvl &header,
const FileName netFile,
Progress *progress=NULL);
516 void readProtobufV0002(
const Pvl &header,
const FileName netFile,
Progress *progress=NULL);
517 void readProtobufV0005(
const Pvl &header,
const FileName netFile,
Progress *progress=NULL);
523 ControlMeasure *createMeasure(
const ControlPointFileEntryV0002_Measure&);
525 void createHeader(
const ControlNetHeaderV0001 header);
527 void writeHeader(std::fstream *output);
528 int writeFirstPoint(std::fstream *output);
530 ControlNetHeaderV0005 m_header;
~ControlNetVersioner()
Destroy a ControlNetVersioner.
Definition: ControlNetVersioner.cpp:90
QString creationDate() const
Returns the date and time that the network was created.
Definition: ControlNetVersioner.cpp:126
File name manipulation and expansion.
Definition: FileName.h:116
Pvl toPvl()
Generates a Pvl file from the currently stored control points and header.
Definition: ControlNetVersioner.cpp:194
QString lastModificationDate() const
Returns the date and time of the last modification to the network.
Definition: ControlNetVersioner.cpp:136
Handle various control network file format versions.
Definition: ControlNetVersioner.h:426
A container for the information stored in a version 3 and 4 ControlPoint.
Definition: ControlPointV0003.h:174
Program progress reporter.
Definition: Progress.h:58
QString description() const
Returns the network's description.
Definition: ControlNetVersioner.cpp:146
a control network
Definition: ControlNet.h:271
A single control point.
Definition: ControlPoint.h:369
Container for cube-like labels.
Definition: Pvl.h:135
QString targetName() const
Returns the target for the network.
Definition: ControlNetVersioner.cpp:116
A container for the information stored in a version 1 ControlPoint.
Definition: ControlPointV0001.h:76
void write(FileName netFile)
This will write a control net file object to disk.
Definition: ControlNetVersioner.cpp:1651
ControlPoint * takeFirstPoint()
Returns the first point stored in the versioner's internal list.
Definition: ControlNetVersioner.cpp:179
QString netId() const
Returns the ID for the network.
Definition: ControlNetVersioner.cpp:106
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
a control measurement
Definition: ControlMeasure.h:189
QString userName() const
Returns the name of the last person or program to modify the network.
Definition: ControlNetVersioner.cpp:156
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:74
A container for the information stored in a version 2 ControlPoint.
Definition: ControlPointV0002.h:168
int numPoints() const
Returns the number of points that have been read in or are ready to write out.
Definition: ControlNetVersioner.cpp:166