Isis 3 Programmer Reference
|
A container for the information stored in a version 2 ControlPoint. More...
#include <ControlPointV0002.h>
Public Member Functions | |
ControlPointV0002 (PvlObject &pointObject) | |
Create a ControlPointV0002 object from a version 2 control point Pvl object. More... | |
ControlPointV0002 (QSharedPointer< ControlNetFileProtoV0001_PBControlPoint > pointData, QSharedPointer< ControlNetLogDataProtoV0001_Point > logData) | |
Create a ControlPointV0002 object from a protobuf version 1 control point message. More... | |
ControlPointV0002 (ControlPointV0001 &oldPoint) | |
Create a version 2 control point from a version 1 control point. More... | |
QSharedPointer< ControlNetFileProtoV0001_PBControlPoint > | pointData () |
Access the protobuf control point data. More... | |
QSharedPointer< ControlNetLogDataProtoV0001_Point > | logData () |
Access the protobuf log data for the control measures in the point. More... | |
Private Member Functions | |
ControlPointV0002 () | |
Default constructor. More... | |
ControlPointV0002 (const ControlPointV0002 &other) | |
Copy constructor. More... | |
ControlPointV0002 & | operator= (const ControlPointV0002 &other) |
Assignment operator. More... | |
void | copy (PvlContainer &container, QString keyName, QSharedPointer< ControlNetFileProtoV0001_PBControlPoint > point, void(ControlNetFileProtoV0001_PBControlPoint::*setter)(bool)) |
This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 protobuf field. More... | |
void | copy (PvlContainer &container, QString keyName, QSharedPointer< ControlNetFileProtoV0001_PBControlPoint > point, void(ControlNetFileProtoV0001_PBControlPoint::*setter)(double)) |
This convenience method takes a double value from a PvlKeyword and copies it into a version 1 protobuf field. More... | |
void | copy (PvlContainer &container, QString keyName, QSharedPointer< ControlNetFileProtoV0001_PBControlPoint > point, void(ControlNetFileProtoV0001_PBControlPoint::*setter)(const std::string &)) |
This convenience method takes a string value from a PvlKeyword and copies it into a version 1 protobuf field. More... | |
void | copy (PvlContainer &container, QString keyName, ControlNetFileProtoV0001_PBControlPoint_PBControlMeasure &measure, void(ControlNetFileProtoV0001_PBControlPoint_PBControlMeasure::*setter)(bool)) |
This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 protobuf field. More... | |
void | copy (PvlContainer &container, QString keyName, ControlNetFileProtoV0001_PBControlPoint_PBControlMeasure &measure, void(ControlNetFileProtoV0001_PBControlPoint_PBControlMeasure::*setter)(double)) |
This convenience method takes a double value from a PvlKeyword and copies it into a version 1 protobuf field. More... | |
void | copy (PvlContainer &container, QString keyName, ControlNetFileProtoV0001_PBControlPoint_PBControlMeasure &measure, void(ControlNetFileProtoV0001_PBControlPoint_PBControlMeasure::*setter)(const std::string &)) |
This convenience method takes a string value from a PvlKeyword and copies it into a version 1 protobuf field. More... | |
Private Attributes | |
QSharedPointer< ControlNetFileProtoV0001_PBControlPoint > | m_pointData |
protobuf container that holds information used to create a control point. More... | |
QSharedPointer< ControlNetLogDataProtoV0001_Point > | m_logData |
Protobuf container that holds log data for the control measures in the point. More... | |
A container for the information stored in a version 2 ControlPoint.
A wrapper around the version 2 protobuf serialization of a ControlPoint. It allows for reading ControlPoints serialized as both PvlObjects and protobuf messages.
The version 1 and 2 control points use the same internal protobuf message format. Thus the "upgrade" process simply copies the shared pointer to the protobuf message.
Version 2 was the first version to have a standardized Pvl format. In the Pvl format, control points are represented by objects contained in the ControlNetwork object. Control measures are represented by groups contained in the control point objects.
Valid Control Point Keywords
Valid Control Measure Keywords
2017-12-14 Jesse Mapel - Original version.
2017-12-21 Jesse Mapel - Added support for measure log data.
2017-12-21 Adam Goins - Changed Pvl constructor to take PvlObject.
2018-01-03 Jesse Mapel - Improved documentation.
2017-01-27 Jesse Mapel - More documentation improvements.
Definition at line 168 of file ControlPointV0002.h.
Isis::ControlPointV0002::ControlPointV0002 | ( | PvlObject & | pointObject | ) |
Create a ControlPointV0002 object from a version 2 control point Pvl object.
pointObject | The control point and its measures in a Pvl object. |
Definition at line 33 of file ControlPointV0002.cpp.
References _FILEINFO_, copy(), Isis::PvlObject::hasKeyword(), m_pointData, and Isis::IException::User.
Isis::ControlPointV0002::ControlPointV0002 | ( | QSharedPointer< ControlNetFileProtoV0001_PBControlPoint > | pointData, |
QSharedPointer< ControlNetLogDataProtoV0001_Point > | logData | ||
) |
Create a ControlPointV0002 object from a protobuf version 1 control point message.
pointData | The protobuf message from a control net file. |
logData | The accompanying protobuf control measure log data for the point. |
Definition at line 20 of file ControlPointV0002.cpp.
Isis::ControlPointV0002::ControlPointV0002 | ( | ControlPointV0001 & | oldPoint | ) |
Create a version 2 control point from a version 1 control point.
The two versions internally store the same protobuf message, so all this does is copy the pointer to the internal protobuf object.
oldPoint | The old version 1 control point. |
Definition at line 333 of file ControlPointV0002.cpp.
|
private |
Default constructor.
Intentionally un-implemented.
|
private |
Copy constructor.
Intentionally un-implemented.
other | The other ControlPointV0002 to copy from. |
|
private |
This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 protobuf field.
Once copied, the PvlKeyword is deleted.
If the keyword doesn't exist, this does nothing.
container | The PvlContainer representation of the control point that contains the PvlKeyword. | |
keyName | The name of the keyword to be copied. | |
[out] | point | The version 1 protobuf representation of the control point that the value will be copied into. |
setter | The protobuf mutator method that sets the value of the field in the protobuf representation. |
Definition at line 375 of file ControlPointV0002.cpp.
References Isis::PvlContainer::deleteKeyword(), and Isis::PvlContainer::hasKeyword().
Referenced by ControlPointV0002().
|
private |
This convenience method takes a double value from a PvlKeyword and copies it into a version 1 protobuf field.
Once copied, the PvlKeyword is deleted.
If the keyword doesn't exist, this does nothing.
container | The PvlContainer representation of the control point that contains the PvlKeyword. | |
keyName | The name of the keyword to be copied. | |
[out] | point | The version 1 protobuf representation of the control point that the value will be copied into. |
setter | The protobuf mutator method that sets the value of the field in the protobuf representation. |
Definition at line 408 of file ControlPointV0002.cpp.
References Isis::PvlContainer::deleteKeyword(), Isis::PvlContainer::hasKeyword(), and Isis::toDouble().
|
private |
This convenience method takes a string value from a PvlKeyword and copies it into a version 1 protobuf field.
Once copied, the PvlKeyword is deleted.
If the keyword doesn't exist, this does nothing.
container | The PvlContainer representation of the control point that contains the PvlKeyword. | |
keyName | The name of the keyword to be copied. | |
[out] | point | The version 1 protobuf representation of the control point that the value will be copied into. |
setter | The protobuf mutator method that sets the value of the field in the protobuf representation. |
Definition at line 437 of file ControlPointV0002.cpp.
References Isis::PvlContainer::deleteKeyword(), and Isis::PvlContainer::hasKeyword().
|
private |
This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 protobuf field.
Once copied, the PvlKeyword is deleted.
If the keyword doesn't exist, this does nothing.
container | The PvlContainer representation of the control measure that contains the PvlKeyword. | |
keyName | The name of the keyword to be copied. | |
[out] | measure | The version 1 protobuf representation of the control measure that the value will be copied into. |
setter | The protobuf mutator method that sets the value of the field in the protobuf representation. |
Definition at line 466 of file ControlPointV0002.cpp.
References Isis::PvlContainer::deleteKeyword(), and Isis::PvlContainer::hasKeyword().
|
private |
This convenience method takes a double value from a PvlKeyword and copies it into a version 1 protobuf field.
Once copied, the PvlKeyword is deleted.
If the keyword doesn't exist, this does nothing.
container | The PvlContainer representation of the control measure that contains the PvlKeyword. | |
keyName | The name of the keyword to be copied. | |
[out] | measure | The version 1 protobuf representation of the control measure that the value will be copied into. |
setter | The protobuf mutator method that sets the value of the field in the protobuf representation. |
Definition at line 499 of file ControlPointV0002.cpp.
References Isis::PvlContainer::deleteKeyword(), Isis::PvlContainer::hasKeyword(), and Isis::toDouble().
|
private |
This convenience method takes a string value from a PvlKeyword and copies it into a version 1 protobuf field.
Once copied, the PvlKeyword is deleted.
If the keyword doesn't exist, this does nothing.
container | The PvlContainer representation of the control measure that contains the PvlKeyword. | |
keyName | The name of the keyword to be copied. | |
[out] | measure | The version 1 protobuf representation of the control measure that the value will be into. |
setter | The protobuf mutator method that sets the value of the field in the protobuf representation. |
Definition at line 528 of file ControlPointV0002.cpp.
References Isis::PvlContainer::deleteKeyword(), and Isis::PvlContainer::hasKeyword().
QSharedPointer< ControlNetLogDataProtoV0001_Point > Isis::ControlPointV0002::logData | ( | ) |
Access the protobuf log data for the control measures in the point.
Definition at line 356 of file ControlPointV0002.cpp.
References m_logData.
Referenced by Isis::ControlPointV0003::ControlPointV0003().
|
private |
Assignment operator.
Intentionally un-implemented.
other | The other ControlPointV0002 to assign from. |
QSharedPointer< ControlNetFileProtoV0001_PBControlPoint > Isis::ControlPointV0002::pointData | ( | ) |
Access the protobuf control point data.
Definition at line 345 of file ControlPointV0002.cpp.
References m_pointData.
Referenced by Isis::ControlPointV0003::ControlPointV0003().
|
private |
Protobuf container that holds log data for the control measures in the point.
Definition at line 227 of file ControlPointV0002.h.
Referenced by logData().
|
private |
protobuf container that holds information used to create a control point.
Definition at line 225 of file ControlPointV0002.h.
Referenced by ControlPointV0002(), and pointData().