Isis Developer Reference
PvlToJSON.h
Go to the documentation of this file.
1 #ifndef PvlToJSON_h
2 #define PvlToJSON_h
3 
9 /* SPDX-License-Identifier: CC0-1.0 */
10 
11 #include <nlohmann/json.hpp>
12 
13 namespace Isis {
14  class Pvl;
15  class PvlContainer;
16  class PvlGroup;
17  class PvlKeyword;
18  class PvlObject;
19 
20  nlohmann::json pvlToJSON(Pvl &pvl);
21  nlohmann::json pvlContainerToJSON(PvlContainer &container);
22  nlohmann::json pvlKeywordToJSON(PvlKeyword &keyword);
23  nlohmann::json pvlGroupToJSON(PvlGroup &group);
24  nlohmann::json pvlObjectToJSON(PvlObject &object);
25 }
26 
27 #endif
Isis::PvlObject::PvlGroupIterator
QList< Isis::PvlGroup >::iterator PvlGroupIterator
The counter for groups.
Definition: PvlObject.h:83
Isis::PvlObject
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
Isis::PvlContainer::comment
QString comment(const int index) const
Definition: PvlContainer.h:265
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::pvlContainerToJSON
json pvlContainerToJSON(PvlContainer &container)
Convert the contents of a PvlContainer to a JSON object.
Definition: PvlToJSON.cpp:132
Isis::pvlKeywordToJSON
json pvlKeywordToJSON(PvlKeyword &keyword)
Convert the contents of a PvlKeyword to a JSON object.
Definition: PvlToJSON.cpp:77
Isis::pvlObjectToJSON
json pvlObjectToJSON(PvlObject &object)
Convert the contents of a PvlObject to a JSON object.
Definition: PvlToJSON.cpp:294
Isis::PvlKeyword::comments
int comments() const
Returns the number of lines of comments associated with this keyword.
Definition: PvlKeyword.h:160
Isis::PvlObject::PvlObjectIterator
QList< PvlObject >::iterator PvlObjectIterator
The counter for objects.
Definition: PvlObject.h:227
Isis::pvlToJSON
json pvlToJSON(Pvl &pvl)
Convert the contents of a Pvl to a JSON object.
Definition: PvlToJSON.cpp:348
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Pvl.h
json
nlohmann::json json
This is free and unencumbered software released into the public domain.
Definition: PvlToJSON.cpp:14
json
nlohmann::json json
Definition: PvlObject.cpp:22
Isis::pvlGroupToJSON
json pvlGroupToJSON(PvlGroup &group)
Convert the contents of a PvlGroup to a JSON object.
Definition: PvlToJSON.cpp:213
Isis::PvlContainer::comments
int comments() const
Definition: PvlContainer.h:262
PvlToJSON.h
std
Namespace for the standard library.
PvlKeyword.h
Isis::PvlKeyword::size
int size() const
Returns the number of values stored in this keyword.
Definition: PvlKeyword.h:125
Isis::PvlContainer::PvlKeywordIterator
QList< PvlKeyword >::iterator PvlKeywordIterator
The keyword iterator.
Definition: PvlContainer.h:157
Isis::PvlKeyword::unit
QString unit(const int index=0) const
Returns the units of measurement of the element of the array of values for the object at the specifie...
Definition: PvlKeyword.cpp:357
Isis::PvlContainer::end
PvlKeywordIterator end()
Return the ending iterator.
Definition: PvlContainer.h:194
Isis::PvlKeyword::comment
QString comment(const int index) const
Return a comment at the specified index.
Definition: PvlKeyword.cpp:441
Isis::PvlContainer
Contains more than one keyword-value pair.
Definition: PvlContainer.h:49
Isis::PvlContainer::begin
PvlKeywordIterator begin()
Return the beginning iterator.
Definition: PvlContainer.h:178
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16