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
Definition at line 154 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 41 of file ControlPointV0002.cpp.
References copy(), Isis::PvlContainer::deleteKeyword(), Isis::PvlObject::group(), Isis::PvlObject::groups(), Isis::PvlObject::hasKeyword(), Isis::PvlContainer::hasKeyword(), Isis::IException::Io, Isis::PvlContainer::keywords(), m_logData, m_pointData, Isis::PvlKeyword::name(), Isis::IException::Programmer, Isis::toDouble(), 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 28 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 341 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 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 474 of file ControlPointV0002.cpp.
References Isis::PvlContainer::deleteKeyword(), and Isis::PvlContainer::hasKeyword().
|
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 536 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 507 of file ControlPointV0002.cpp.
References Isis::PvlContainer::deleteKeyword(), Isis::PvlContainer::hasKeyword(), and Isis::toDouble().
|
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 383 of file ControlPointV0002.cpp.
References Isis::PvlContainer::deleteKeyword(), and Isis::PvlContainer::hasKeyword().
Referenced by ControlPointV0002().
|
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 445 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 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 416 of file ControlPointV0002.cpp.
References Isis::PvlContainer::deleteKeyword(), Isis::PvlContainer::hasKeyword(), and Isis::toDouble().
QSharedPointer< ControlNetLogDataProtoV0001_Point > Isis::ControlPointV0002::logData | ( | ) |
Access the protobuf log data for the control measures in the point.
Definition at line 364 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 353 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 213 of file ControlPointV0002.h.
Referenced by ControlPointV0002(), and logData().
|
private |
protobuf container that holds information used to create a control point.
Definition at line 211 of file ControlPointV0002.h.
Referenced by ControlPointV0002(), and pointData().