MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / comment

Method comment

isis/src/core/src/PvlKeyword.cpp:595–603  ·  view source on GitHub ↗

* Return a comment at the specified index. * @param index The index of the comment. * @return QString The comment at the index. * @throws iException ArraySubscriptNotInRange (index) Index out of bounds. */

Source from the content-addressed store, hash-verified

593 * @throws iException ArraySubscriptNotInRange (index) Index out of bounds.
594 */
595 QString PvlKeyword::comment(int index) const {
596 if (!m_comments) return "";
597
598 if (index < 0 || index >= (int)m_comments->size()) {
599 QString msg = Message::ArraySubscriptNotInRange(index);
600 throw IException(IException::Programmer, msg, _FILEINFO_);
601 }
602 return (*m_comments)[index];
603 };
604
605 /**
606 * Checks if the value needs to be converted to PVL or iPVL and returns it in

Callers 15

Pvl.cppFile · 0.45
toBlobMethod · 0.45
PvlContainer.cppFile · 0.45
PvlKeyword.cppFile · 0.45
PvlObject.cppFile · 0.45
PvlGroup.cppFile · 0.45
TESTFunction · 0.45
comparePvlKeywordsFunction · 0.45
pvlKeywordToJSONFunction · 0.45
pvlContainerToJSONFunction · 0.45
IsisMainFunction · 0.45
insertGroupFunction · 0.45

Calls 2

IExceptionClass · 0.50
sizeMethod · 0.45

Tested by 3

TESTFunction · 0.36
comparePvlKeywordsFunction · 0.36
TESTFunction · 0.36