1#ifndef ControlNetVersioner_h
2#define ControlNetVersioner_h
15#include <QSharedPointer>
31 class ControlPointV0001;
32 class ControlPointV0002;
33 class ControlPointV0003;
419 QString
netId()
const;
462 struct ControlNetHeaderV0001 {
470 QString lastModified;
478 typedef ControlNetHeaderV0001 ControlNetHeaderV0002;
480 typedef ControlNetHeaderV0001 ControlNetHeaderV0003;
482 typedef ControlNetHeaderV0001 ControlNetHeaderV0004;
484 typedef ControlNetHeaderV0001 ControlNetHeaderV0005;
493 void readPvl(
const Pvl &network,
Progress *progress=NULL);
501 void readProtobufV0001(
const Pvl &header,
const FileName netFile,
Progress *progress=NULL);
502 void readProtobufV0002(
const Pvl &header,
const FileName netFile,
Progress *progress=NULL);
503 void readProtobufV0005(
const Pvl &header,
const FileName netFile,
Progress *progress=NULL);
509 ControlMeasure *createMeasure(
const ControlPointFileEntryV0002_Measure&);
511 void createHeader(
const ControlNetHeaderV0001 header);
513 void writeHeader(std::fstream *output);
514 int writeFirstPoint(std::fstream *output);
516 ControlNetHeaderV0005 m_header;
518 QList<ControlPoint *> m_points;
a control measurement
Definition ControlMeasure.h:175
a control network
Definition ControlNet.h:258
Handle various control network file format versions.
Definition ControlNetVersioner.h:412
int numPoints() const
Returns the number of points that have been read in or are ready to write out.
Definition ControlNetVersioner.cpp:176
QString netId() const
Returns the ID for the network.
Definition ControlNetVersioner.cpp:116
Pvl toPvl()
Generates a Pvl file from the currently stored control points and header.
Definition ControlNetVersioner.cpp:204
QString creationDate() const
Returns the date and time that the network was created.
Definition ControlNetVersioner.cpp:136
QString targetName() const
Returns the target for the network.
Definition ControlNetVersioner.cpp:126
ControlPoint * takeFirstPoint()
Returns the first point stored in the versioner's internal list.
Definition ControlNetVersioner.cpp:189
~ControlNetVersioner()
Destroy a ControlNetVersioner.
Definition ControlNetVersioner.cpp:100
QString userName() const
Returns the name of the last person or program to modify the network.
Definition ControlNetVersioner.cpp:166
QString lastModificationDate() const
Returns the date and time of the last modification to the network.
Definition ControlNetVersioner.cpp:146
void write(FileName netFile)
This will write a control net file object to disk.
Definition ControlNetVersioner.cpp:1657
QString description() const
Returns the network's description.
Definition ControlNetVersioner.cpp:156
A single control point.
Definition ControlPoint.h:356
A container for the information stored in a version 1 ControlPoint.
Definition ControlPointV0001.h:62
A container for the information stored in a version 2 ControlPoint.
Definition ControlPointV0002.h:154
A container for the information stored in a version 3 and 4 ControlPoint.
Definition ControlPointV0003.h:160
File name manipulation and expansion.
Definition FileName.h:100
Program progress reporter.
Definition Progress.h:42
Container for cube-like labels.
Definition Pvl.h:119
Contains Pvl Groups and Pvl Objects.
Definition PvlObject.h:61
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16