1 #ifndef ControlNetVersioner_h
2 #define ControlNetVersioner_h
28 #include "ControlNetFile.h"
29 #include "ControlNetFileV0002.pb.h"
34 class ControlNetFileV0001;
35 class ControlNetFileV0002;
178 (
const std::string &));
Contains more than one keyword-value pair.
File name manipulation and expansion.
static void ConvertVersion3ToVersion4(PvlObject &network)
This converts pvl networks from their version 3 to version 4.
Handle Various Control Network Versions.
static LatestControlNetFile * Read(const FileName &file)
Read the control network from disk.
static void Copy(PvlContainer &container, QString keyName, ControlPointFileEntryV0002 &point, void(ControlPointFileEntryV0002::*setter)(bool))
This is a convenience method for copying keywords out of the container and into the ControlPointFileE...
static void Write(const FileName &file, const LatestControlNetFile &, bool pvl=false)
This will write a control net file object to disk.
static LatestControlNetFile * ReadBinaryNetwork(const Pvl &header, const FileName &file)
This method is designed to read any and all binary networks.
ControlNetVersioner & operator=(const ControlNetVersioner &other)
The constructor is not implemented so assignment is impossible.
Container for cube-like labels.
static const int LATEST_BINARY_VERSION
The latest version of the Binary formatted control networks.
static LatestControlNetFile * ReadPvlNetwork(Pvl pvl)
This interprets a Pvl network of any version.
static void ConvertVersion2ToVersion3(PvlObject &network)
This converts pvl networks from their version 2 to version 3.
static LatestControlNetFile * LatestPvlToBinary(PvlObject &network)
Convert a pvl (in the latest version) back to binary (LatestControlNetFile)
ControlNetVersioner()
The constructor is not implemented.
Handle Binary Control Network Files version 2.
Contains Pvl Groups and Pvl Objects.
static void ConvertVersion1ToVersion2(PvlObject &network)
This converts pvl networks from their implied version 1 to version 2.
static const int LATEST_PVL_VERSION
The latest version of the Pvl formatted control networks.