11#include <QExplicitlySharedDataPointer> 
   65      void setName(
const QString &identity);
 
   68      bool exists(
const QString &keywordName) 
const;
 
   69      int  count(
const QString &keywordName) 
const;
 
   70      bool isNull(
const QString &keywordName, 
const int keywordIndex = 0) 
const;
 
   73      QString 
value(
const QString &keywordName, 
const int &keywordIndex  = 0) 
const;
 
   74      QString 
value(
const QString &keywordName, 
const QString &defValue,
 
   75                    const int &keywordIndex  = 0) 
const;
 
   78      void add(
const QString &keywordName, 
const QString &keywordValue);
 
   81      void append(
const QString &keywordName, 
const QString &keywordValue);
 
   83      int erase(
const QString &keywordName);
 
   97      bool hasAsset(
const QString &assetName) 
const;
 
   98      void addAsset(
const QString &assetName, QVariant &assetValue);
 
   99      QVariant 
asset(
const QString &assetName) 
const;
 
  105                              const bool &withAssets=
false) 
const;
 
  107      virtual PvlObject toPvl(
const QString &pvlName = 
"Resource") 
const;
 
  125          ResourceData() : m_name(
"Resource"), m_keys(), 
 
  126                           m_assets(), m_geom(0) { }
 
  127          ResourceData(
const ResourceData &other) : 
QSharedData(other), 
 
  128                                                    m_name(other.m_name),
 
  129                                                    m_keys(other.m_keys),
 
  130                                                    m_assets(other.m_assets),
 
  131                                                    m_geom(other.m_geom) { }
 
  159      QExplicitlySharedDataPointer<ResourceData> m_data; 
 
Q_DECLARE_METATYPE(Isis::SharedResource)
 
Encapsulation class provides support for GEOS-C API.
Definition: GisGeometry.h:50
 
Contains more than one keyword-value pair.
Definition: PvlContainer.h:49
 
Provides a flat map of PvlKeywords.
Definition: PvlFlatMap.h:218
 
A single keyword-value pair.
Definition: PvlKeyword.h:87
 
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
 
This class provides a resource of PVL keywords for Strategy classes.
Definition: Resource.h:54
 
int erase(const QString &keywordName)
Removes all of the PVL keywords in this Resource that are associated with the given name.
Definition: Resource.cpp:341
 
bool hasAsset(const QString &assetName) const
This method is used to determine whether an asset with the given name is in this Resource.
Definition: Resource.cpp:452
 
void addAsset(const QString &assetName, QVariant &assetValue)
Inserts an asset with the given name and value into this Resource's VariantList.
Definition: Resource.cpp:463
 
bool isDiscarded() const
Accessor method to determine whether this Resource is to be discarded.
Definition: Resource.cpp:439
 
int removeAsset(const QString &assetName)
Removes all of the assets in this Resource that are mapped to the given name.
Definition: Resource.cpp:477
 
bool isNull(const QString &keywordName, const int keywordIndex=0) const
Determines whether the PVL keyword with the given name at the given index is null.
Definition: Resource.cpp:187
 
int clearAssets()
Clears the assets from this Resource's VariantList.
Definition: Resource.cpp:487
 
SharedGisGeometry geometry() const
Accessor method for this Resource's GIS geometry.
Definition: Resource.cpp:403
 
QString value(const QString &keywordName, const int &keywordIndex=0) const
Gets the value of the PVL keyword with the given name at the given index.
Definition: Resource.cpp:224
 
bool exists(const QString &keywordName) const
Determines whether a PVL keyword with the given name is in this Resource.
Definition: Resource.cpp:155
 
void activate()
Activate a resource.
Definition: Resource.cpp:411
 
const PvlFlatMap & keys() const
Accessor method for the PVL keywords associated with this Resource.
Definition: Resource.cpp:198
 
bool isActive() const
Accessor method to determine whether this Resource is to be discarded.
Definition: Resource.cpp:421
 
bool hasGeometry() const
This method is used to determine whether the GIS geometry has been set for this Resource.
Definition: Resource.cpp:378
 
void setName(const QString &identity)
A mutator to set the Resource's name.
Definition: Resource.cpp:124
 
virtual Resource * copy() const
Copy this resource for distinct management of its status.
Definition: Resource.cpp:526
 
Resource()
Default constructor for a Resource object.
Definition: Resource.cpp:31
 
QString name() const
Accessor for a string containing the Resource's name.
Definition: Resource.cpp:114
 
QVariant asset(const QString &assetName) const
Retrieves the value of the asset in this Resource that is mapped to the given name.
Definition: Resource.cpp:504
 
virtual ~Resource()
Destroys the Resource object.
Definition: Resource.cpp:105
 
bool hasValidGeometry() const
This method is used to determine whether a valid GIS geometry has been set for this Resource.
Definition: Resource.cpp:389
 
int count(const QString &keywordName) const
Counts the number of values the PVL keyword with the given name has, if it exists in this Resource.
Definition: Resource.cpp:169
 
void add(const QString &keywordName, const QString &keywordValue)
Adds a PVL keyword with the given name and value to this Resource.
Definition: Resource.cpp:286
 
PvlKeyword keyword(const QString &keywordName) const
Gets the PvlKeyword object with the given name, if it exists in this Resource.
Definition: Resource.cpp:270
 
void append(const QString &keywordName, const QString &keywordValue)
Appends the given value to the PVL keyword with the given name.
Definition: Resource.cpp:327
 
bool isEqual(const Resource &other) const
Checks for equality of another Resource.
Definition: Resource.cpp:142
 
virtual Resource * clone(const QString &name, const bool &withAssets=false) const
Clone this resource for additional specialized use.
Definition: Resource.cpp:548
 
virtual PvlObject toPvl(const QString &pvlName="Resource") const
Transfer all keywords in map to a PvlObject.
Definition: Resource.cpp:566
 
void discard()
Discard a resource.
Definition: Resource.cpp:429
 
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
 
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
 
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
 
QList< SharedResource > ResourceList
Defintion of a ResourceList, a list of SharedResource types.
Definition: Resource.h:169
 
QSharedPointer< Resource > SharedResource
Defintion of a SharedResource, a shared pointer to a Resource object.
Definition: Resource.h:166