Isis 3.0 Developer's Reference (API) |
Home |
Loads plugins from a shared library. More...
#include <Plugin.h>
Inherits Isis::Pvl.
Public Types | |
enum | FindOptions { None, Traverse } |
A collection of options to use when finding. More... | |
typedef QList< Isis::PvlGroup > ::iterator | PvlGroupIterator |
The counter for groups. | |
typedef QList< Isis::PvlGroup > ::const_iterator | ConstPvlGroupIterator |
typedef QList< PvlObject > ::iterator | PvlObjectIterator |
The counter for objects. | |
typedef QList< PvlObject > ::const_iterator | ConstPvlObjectIterator |
enum | InsertMode { Append, Replace } |
Contains both modes: Append or Replace. More... | |
typedef QList< PvlKeyword > ::iterator | PvlKeywordIterator |
The keyword iterator. | |
typedef QList< PvlKeyword > ::const_iterator | ConstPvlKeywordIterator |
The const keyword iterator. | |
Public Member Functions | |
Plugin () | |
Constructs a Plugin object. | |
virtual | ~Plugin () |
Destroys the Plugin object. | |
void * | GetPlugin (const std::string &group) |
This method returns a void pointer to a C function (i.e., the plugin) It does this by looking in itself (Pvl) for the keyword LIBRARY and the keyword ROUTINE. | |
void | Read (const std::string &file) |
Loads PVL information from a stream. | |
void | Write (const std::string &file) |
Opens and writes PVL information to a file and handles the end of line sequence. | |
void | Append (const std::string &file) |
Appends PVL information to a file and handles the end of line sequence. | |
void | SetTerminator (const std::string &term) |
Sets the terminator used to signify the end of the PVL informationDefaults to "END". | |
std::string | Terminator () const |
Returns the terminator used to signify the end of the PVL informationDefaults to "END". | |
void | SetFormatTemplate (Isis::Pvl &temp) |
void | SetFormatTemplate (const std::string &filename) |
void | SetFormatTemplate (PvlContainer &ref) |
void | ValidatePvl (const Pvl &pPvl, Pvl &pPvlResults) |
Validate a Pvl with the Template Pvl. | |
int | Groups () const |
Returns the number of groups contained. | |
PvlGroup & | Group (const int index) |
Return the group at the specified index. | |
const PvlGroup & | Group (const int index) const |
Return the group at the specified index. | |
PvlGroupIterator | BeginGroup () |
Returns the beginning group index. | |
ConstPvlGroupIterator | BeginGroup () const |
Returns the beginning group index. | |
PvlGroupIterator | EndGroup () |
Returns the ending group index. | |
ConstPvlGroupIterator | EndGroup () const |
Returns the const ending group index. | |
PvlGroupIterator | FindGroup (const std::string &name, PvlGroupIterator beg, PvlGroupIterator end) |
Find a group with the specified name, within these indexes. | |
ConstPvlGroupIterator | FindGroup (const std::string &name, ConstPvlGroupIterator beg, ConstPvlGroupIterator end) const |
Find a group with the specified name, within these indexes. | |
Isis::PvlGroup & | FindGroup (const std::string &name, FindOptions opts=None) |
Finds a group within the current PvlObject. | |
const Isis::PvlGroup & | FindGroup (const std::string &name, FindOptions opts=None) const |
Finds a group within the current PvlObject. | |
PvlKeyword & | FindKeyword (const std::string &kname, FindOptions opts) |
Finds a keyword in the current PvlObject, or deeper inside other PvlObjects and PvlGroups within this one. | |
PvlKeyword & | FindKeyword (const std::string &name) |
Find a keyword with a specified name. | |
const PvlKeyword & | FindKeyword (const std::string &name) const |
Find a keyword with a specified name. | |
PvlKeywordIterator | FindKeyword (const std::string &name, PvlKeywordIterator beg, PvlKeywordIterator end) |
Find the index of a keyword, using iterators. | |
ConstPvlKeywordIterator | FindKeyword (const std::string &name, ConstPvlKeywordIterator beg, ConstPvlKeywordIterator end) const |
Find the index of a keyword, using iterators. | |
bool | HasKeyword (const std::string &kname, FindOptions opts) const |
See if a keyword is in the current PvlObject, or deeper inside other PvlObjects and PvlGroups within this one. | |
bool | HasKeyword (const std::string &name) const |
Check to see if a keyword exists. | |
void | AddGroup (const Isis::PvlGroup &group) |
Add a group to the object. | |
void | operator+= (const Isis::PvlGroup &group) |
void | operator+= (const Isis::PvlObject &obj) |
void | operator+= (const PvlKeyword &keyword) |
When you use the += operator with a PvlKeyword, it will call the AddKeyword() method. | |
void | DeleteGroup (const std::string &name) |
Remove a group from the current PvlObject. | |
void | DeleteGroup (const int index) |
Remove a group from the current PvlObject. | |
bool | HasGroup (const std::string &name) const |
Returns a boolean value based on whether the object has the specified group or not. | |
int | Objects () const |
Returns the number of objects. | |
PvlObject & | Object (const int index) |
Return the object at the specified index. | |
const PvlObject & | Object (const int index) const |
Return the object at the specified index. | |
PvlObjectIterator | BeginObject () |
Returns the index of the beginning object. | |
ConstPvlObjectIterator | BeginObject () const |
Returns the const index of the beginning object. | |
PvlObjectIterator | EndObject () |
Returns the index of the ending object. | |
ConstPvlObjectIterator | EndObject () const |
Returns the const index of the ending object. | |
PvlObjectIterator | FindObject (const std::string &name, PvlObjectIterator beg, PvlObjectIterator end) |
Find the index of object with a specified name, between two indexes. | |
ConstPvlObjectIterator | FindObject (const std::string &name, ConstPvlObjectIterator beg, ConstPvlObjectIterator end) const |
Find the index of object with a specified name, between two indexes. | |
PvlObject & | FindObject (const std::string &name, FindOptions opts=None) |
Find an object within the current PvlObject. | |
const PvlObject & | FindObject (const std::string &name, FindOptions opts=None) const |
Find an object within the current PvlObject. | |
void | AddObject (const PvlObject &object) |
Add a PvlObject. | |
void | DeleteObject (const std::string &name) |
Remove an object from the current PvlObject. | |
void | DeleteObject (const int index) |
Remove an object from the current PvlObject. | |
bool | HasObject (const std::string &name) const |
Returns a boolean value based on whether the object exists in the current PvlObject or not. | |
bool | operator== (const PvlObject &object) const |
Compares two PvlObjects. | |
void | Clear () |
Remove everything from the current PvlObject. | |
void | ValidateObject (PvlObject &pPvlObj) |
Validate Object. | |
void | SetName (const std::string &name) |
Set the name of the container. | |
std::string | Name () const |
Returns the container name. | |
bool | IsNamed (const std::string &match) const |
Returns whether the given string is equal to the container name or not. | |
std::string | Type () const |
Returns the container type. | |
int | Keywords () const |
Returns the number of keywords contained in the PvlContainer. | |
void | AddKeyword (const PvlKeyword &keyword, const InsertMode mode=Append) |
Add a keyword to the container. | |
PvlKeywordIterator | AddKeyword (const PvlKeyword &keyword, PvlKeywordIterator pos) |
Insert a keyword at the specified iterator position. | |
PvlKeyword & | operator[] (const std::string &name) |
When you use the [] operator with a (string) name, it will call the FindKeyword() method. | |
PvlKeyword & | operator[] (const int index) |
Return the PvlKeyword object at the specified index. | |
PvlKeyword & | operator[] (const char *name) |
When you use the [] operator with a (char) name, it will call the FindKeyword() method. | |
const PvlKeyword & | operator[] (const std::string &name) const |
When you use the [] operator with a (string) name, it will call the FindKeyword() method. | |
const PvlKeyword & | operator[] (const int index) const |
Return the PvlKeyword object at the specified index. | |
PvlKeyword | operator[] (const char *name) const |
When you use the [] operator with a (char) name, it will call the FindKeyword() method. | |
PvlKeywordIterator | Begin () |
Return the beginning iterator. | |
ConstPvlKeywordIterator | Begin () const |
Return the const beginning iterator. | |
PvlKeywordIterator | End () |
Return the ending iterator. | |
ConstPvlKeywordIterator | End () const |
Return the const ending iterator. | |
void | DeleteKeyword (const std::string &name) |
Remove a specified keyword. | |
void | DeleteKeyword (const int index) |
Remove the specified keyword. | |
bool | CleanDuplicateKeywords () |
Removes keywords from the container that have BOTH the same name and value. | |
void | operator-= (const std::string &name) |
When you use the -= operator with a (string) name, it will call the DeleteKeyword() method. | |
void | operator-= (const PvlKeyword &key) |
When you use the -= operator with a PvlKeyword object, it will call the DeleteKeyword() method. | |
std::string | Filename () const |
Returns the filename used to initialise the Pvl object. | |
bool | HasFormatTemplate () |
PvlContainer * | FormatTemplate () |
PvlFormat * | GetFormat () |
void | SetFormat (PvlFormat *format) |
int | Indent () |
void | SetIndent (int indent) |
int | Comments () const |
std::string | Comment (const int index) const |
void | AddComment (const std::string &comment) |
PvlKeyword & | GetNameKeyword () |
const PvlKeyword & | GetNameKeyword () const |
Protected Member Functions | |
void | SetFilename (const std::string &filename) |
Sets the filename to the specified string. | |
void | ValidateAllKeywords (PvlContainer &pPvlCont) |
Validate All the Keywords in a Container comparing with the Template. | |
void | ValidateRepeatOption (PvlKeyword &pPvlTmplKwrd, PvlContainer &pPvlCont) |
Validate the Repeat Option for a Keyword. | |
Protected Attributes | |
std::string | p_filename |
This contains the filename used to initialize the pvl object. | |
PvlKeyword | p_name |
This is the name keyword. | |
QList< PvlKeyword > | p_keywords |
This is the vector of PvlKeywords the container is holding. | |
PvlContainer * | p_formatTemplate |
Friends | |
std::istream & | operator>> (std::istream &is, Pvl &pvl) |
Reads keywords from the instream and appends them to the Pvl object. | |
std::istream & | operator>> (std::istream &is, PvlObject &result) |
This method reads a PvlObject from the input stream. | |
std::ostream & | operator<< (std::ostream &os, Isis::Pvl &pvl) |
This stream will not handle the end of line sequence. | |
std::ostream & | operator<< (std::ostream &os, Isis::PvlObject &object) |
Outputs the PvlObject data to a specified output stream. |
Loads plugins from a shared library.
This class is used to handle dynamic loading of module/classes. It is rarely used directly but instead is inherited for a particular purpose such as managing class specific map projections or camera models. The class is derived from a PVL which aides in the selection of the shared library and plugin routine to load. For example, assume the file my.plugin contained:
OBJECT=SINUSOIDAL LIBRARY=libisis3.so ROUTINE=SinusoidalPlugin END_OBJECT OBJECT=SIMPLECYLINDRICAL LIBRARY=libisis3.so ROUTINE=SimpleCylindricalPlugin END_OBJECT
The desired routine can be selected in code as follows:
Plugin p; p.Read("my.plugin"); string proj; cin >> proj; // Enter either SINUSOIDAL or SIMPLECYLINDRICAL p.Find(proj); void *ptr = p.GetPlugin();
Obtaining plugins can be difficult to understand. It is suggested you look at ProjectionFactory to get a better understanding of how they are used.
typedef QList<Isis::PvlGroup>::const_iterator Isis::PvlObject::ConstPvlGroupIterator [inherited] |
typedef QList<PvlKeyword>::const_iterator Isis::PvlContainer::ConstPvlKeywordIterator [inherited] |
The const keyword iterator.
typedef QList<PvlObject>::const_iterator Isis::PvlObject::ConstPvlObjectIterator [inherited] |
typedef QList<Isis::PvlGroup>::iterator Isis::PvlObject::PvlGroupIterator [inherited] |
The counter for groups.
typedef QList<PvlKeyword>::iterator Isis::PvlContainer::PvlKeywordIterator [inherited] |
The keyword iterator.
typedef QList<PvlObject>::iterator Isis::PvlObject::PvlObjectIterator [inherited] |
The counter for objects.
enum Isis::PvlObject::FindOptions [inherited] |
enum Isis::PvlContainer::InsertMode [inherited] |
Isis::Plugin::Plugin | ( | ) |
Constructs a Plugin object.
virtual Isis::Plugin::~Plugin | ( | ) | [inline, virtual] |
Destroys the Plugin object.
void Isis::PvlContainer::AddComment | ( | const std::string & | comment | ) | [inline, inherited] |
References Isis::PvlKeyword::AddComment(), and Isis::PvlContainer::p_name.
Referenced by Isis::operator<<(), Isis::operator>>(), Isis::Equalization::setResults(), and Isis::ControlNetFileV0002::Write().
void Isis::PvlObject::AddGroup | ( | const Isis::PvlGroup & | group | ) | [inline, inherited] |
Add a group to the object.
group | The PvlGroup object to add. |
Referenced by Isis::Camera::BasicMapping(), IsisAml::CommandLine(), Isis::Cube::create(), Isis::Preference::Load(), Isis::PvlObject::operator+=(), Isis::operator<<(), Isis::operator>>(), Isis::Process::PropagateLabels(), Isis::Cube::putGroup(), Isis::iException::PvlErrors(), Isis::AutoReg::RegistrationStatistics(), Isis::Stretch::Save(), Isis::UserInterface::SaveHistory(), Isis::InterestOperator::SetClipPolygon(), Isis::ProcessMapMosaic::SetOutputCube(), Isis::Process::SetOutputCube(), Isis::Equalization::setResults(), Isis::OverlapStatistics::toPvl(), Isis::ProcessImportPds::TranslatePdsProjection(), Isis::ControlNetFileV0002::Write(), Isis::CubeAttributeOutput::Write(), Isis::CubeAttributeInput::Write(), and Isis::CubeAttribute::Write().
PvlContainer::PvlKeywordIterator Isis::PvlContainer::AddKeyword | ( | const PvlKeyword & | keyword, | |
PvlKeywordIterator | pos | |||
) | [inherited] |
Insert a keyword at the specified iterator position.
This method provides the capability to insert a keyword at the specified iterator position. The process follows the description of the STL vector definition along with all the caveats (e.g., invalidation of iterators upon insert operations).
This method will not perform any checks for the existance of the keyword. This could lead to multiple instances of the same keyword in the same container. It is up to the caller to manage this issue.
key | Keyword to insert | |
pos | Iterator position where to insert the new keyword |
References Isis::PvlContainer::p_keywords.
void Isis::PvlContainer::AddKeyword | ( | const PvlKeyword & | keyword, | |
const InsertMode | mode = Append | |||
) | [inherited] |
Add a keyword to the container.
Add a keyword to the PvlContainer object.
keyword | The PvlKeyword object to append. | |
mode | Using the InsertMode value of Append. | |
key | The PvlKeyword object to add. | |
mode | The enum InsertMode has two possible values, Append or Replace. Use Append if you just want to add it to the end, Replace if you want to replace it. |
References Isis::PvlContainer::Append, Isis::PvlContainer::FindKeyword(), Isis::PvlContainer::HasKeyword(), Isis::PvlKeyword::Name(), and Isis::PvlContainer::p_keywords.
Referenced by Isis::PvlFormat::Add(), Isis::ProjectionFactory::CreateForCube(), Isis::PvlContainer::operator+=(), Isis::operator<<(), Isis::operator>>(), Isis::StripPolygonSeeder::PluginParameters(), Isis::LimitPolygonSeeder::PluginParameters(), Isis::GridPolygonSeeder::PluginParameters(), Isis::Stretch::Save(), Isis::ProcessMapMosaic::SetOutputCube(), Isis::Projection::SetUpperLeftCorner(), Isis::Spice::storeValue(), Isis::SubArea::UpdateLabel(), Isis::CubeTileHandler::updateLabels(), Isis::CubeBsqHandler::updateLabels(), and Isis::ControlNetFileV0002::Write().
void Isis::PvlObject::AddObject | ( | const PvlObject & | object | ) | [inline, inherited] |
Add a PvlObject.
object | The PvlObject to add. |
References Isis::PvlContainer::Filename().
Referenced by Isis::Cube::create(), Isis::PvlObject::operator+=(), Isis::operator<<(), Isis::operator>>(), Isis::Process::PropagateLabels(), Isis::Process::SetOutputCube(), Isis::Equalization::setResults(), Isis::ControlNetFileV0002::ToPvl(), Isis::ControlNetFileV0001::ToPvl(), and Isis::ControlNetFileV0002::Write().
void Isis::Pvl::Append | ( | const std::string & | file | ) | [inherited] |
Appends PVL information to a file and handles the end of line sequence.
file | Name of the file to append to. |
Isis::iException::Io |
References _FILEINFO_, Isis::Filename::Expanded(), Isis::Message::FileOpen(), Isis::PvlFormat::FormatEOL(), Isis::PvlContainer::GetFormat(), Isis::iException::Io, Isis::iException::Message(), Isis::PvlContainer::SetFormat(), and Isis::Pvl::Terminator().
ConstPvlKeywordIterator Isis::PvlContainer::Begin | ( | ) | const [inline, inherited] |
Return the const beginning iterator.
References Isis::PvlContainer::p_keywords.
PvlKeywordIterator Isis::PvlContainer::Begin | ( | ) | [inline, inherited] |
Return the beginning iterator.
References Isis::PvlContainer::p_keywords.
Referenced by Isis::PvlContainer::CleanDuplicateKeywords(), Isis::PvlContainer::DeleteKeyword(), Isis::PvlObject::FindKeyword(), Isis::PvlContainer::FindKeyword(), Isis::PvlObject::HasKeyword(), Isis::PvlContainer::HasKeyword(), Isis::PvlTranslationTable::InputGroup(), and Isis::PvlTranslationTable::Translate().
ConstPvlGroupIterator Isis::PvlObject::BeginGroup | ( | ) | const [inline, inherited] |
Returns the beginning group index.
PvlGroupIterator Isis::PvlObject::BeginGroup | ( | ) | [inline, inherited] |
Returns the beginning group index.
Referenced by Isis::PvlObject::DeleteGroup(), Isis::PvlObject::FindGroup(), and Isis::PvlObject::HasGroup().
ConstPvlObjectIterator Isis::PvlObject::BeginObject | ( | ) | const [inline, inherited] |
Returns the const index of the beginning object.
PvlObjectIterator Isis::PvlObject::BeginObject | ( | ) | [inline, inherited] |
Returns the index of the beginning object.
Referenced by Isis::PvlObject::DeleteObject(), Isis::PvlObject::FindObject(), and Isis::PvlObject::HasObject().
bool Isis::PvlContainer::CleanDuplicateKeywords | ( | ) | [inherited] |
Removes keywords from the container that have BOTH the same name and value.
References Isis::PvlContainer::Begin(), Isis::PvlContainer::End(), and Isis::PvlContainer::p_keywords.
void Isis::PvlObject::Clear | ( | ) | [inline, inherited] |
Remove everything from the current PvlObject.
Reimplemented from Isis::PvlContainer.
Referenced by IsisAml::CommandLine(), and Isis::Preference::Preferences().
std::string Isis::PvlContainer::Comment | ( | const int | index | ) | const [inline, inherited] |
References Isis::PvlKeyword::Comment(), and Isis::PvlContainer::p_name.
Referenced by Isis::operator<<().
int Isis::PvlContainer::Comments | ( | ) | const [inline, inherited] |
References Isis::PvlKeyword::Comments(), and Isis::PvlContainer::p_name.
Referenced by Isis::operator<<().
void Isis::PvlObject::DeleteGroup | ( | const int | index | ) | [inherited] |
Remove a group from the current PvlObject.
index | The index of the PvlGroup to remove. |
iException::Pvl |
References _FILEINFO_, Isis::PvlObject::BeginGroup(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_filename, Isis::iException::Pvl, and Isis::PvlContainer::Type().
void Isis::PvlObject::DeleteGroup | ( | const std::string & | name | ) | [inherited] |
Remove a group from the current PvlObject.
name | The name of the PvlGroup to remove. |
iException::Pvl |
References _FILEINFO_, Isis::PvlObject::BeginGroup(), Isis::PvlObject::EndGroup(), Isis::PvlObject::FindGroup(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_filename, Isis::iException::Pvl, and Isis::PvlContainer::Type().
Referenced by Isis::Cube::deleteGroup(), Isis::UserInterface::SaveHistory(), Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
void Isis::PvlContainer::DeleteKeyword | ( | const int | index | ) | [inherited] |
Remove the specified keyword.
index | The index of the keyword to remove. |
iException::Pvl | Keyword doesn't exist. |
References _FILEINFO_, Isis::PvlContainer::Begin(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_filename, Isis::PvlContainer::p_keywords, Isis::iException::Pvl, and Isis::PvlContainer::Type().
void Isis::PvlContainer::DeleteKeyword | ( | const std::string & | name | ) | [inherited] |
Remove a specified keyword.
name | The name of the keyword to remove. |
iException::Pvl | Keyword doesn't exist. |
References _FILEINFO_, Isis::PvlContainer::Begin(), Isis::PvlContainer::End(), Isis::PvlContainer::FindKeyword(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_filename, Isis::PvlContainer::p_keywords, Isis::iException::Pvl, and Isis::PvlContainer::Type().
Referenced by Isis::PvlFormat::Add(), IsisAml::CommandLine(), Isis::Preference::Load(), Isis::ObliqueCylindrical::ObliqueCylindrical(), Isis::PvlContainer::operator-=(), Isis::ProcessMapMosaic::SetOutputCube(), Isis::Projection::TargetRadii(), Isis::SubArea::UpdateLabel(), Isis::PvlContainer::ValidateAllKeywords(), and Isis::PvlContainer::ValidateRepeatOption().
void Isis::PvlObject::DeleteObject | ( | const int | index | ) | [inherited] |
Remove an object from the current PvlObject.
index | The index of the PvlObject to remove. |
iException::Pvl |
References _FILEINFO_, Isis::PvlObject::BeginObject(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_filename, Isis::iException::Pvl, and Isis::PvlContainer::Type().
void Isis::PvlObject::DeleteObject | ( | const std::string & | name | ) | [inherited] |
Remove an object from the current PvlObject.
name | The name of the PvlObject to remove. |
iException::Pvl |
References _FILEINFO_, Isis::PvlObject::BeginObject(), Isis::PvlObject::EndObject(), Isis::PvlObject::FindObject(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_filename, Isis::iException::Pvl, and Isis::PvlContainer::Type().
Referenced by Isis::Cube::deleteBlob(), Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
ConstPvlKeywordIterator Isis::PvlContainer::End | ( | ) | const [inline, inherited] |
Return the const ending iterator.
References Isis::PvlContainer::p_keywords.
PvlKeywordIterator Isis::PvlContainer::End | ( | ) | [inline, inherited] |
Return the ending iterator.
References Isis::PvlContainer::p_keywords.
Referenced by Isis::PvlContainer::CleanDuplicateKeywords(), Isis::PvlContainer::DeleteKeyword(), Isis::PvlObject::FindKeyword(), Isis::PvlContainer::FindKeyword(), Isis::PvlObject::HasKeyword(), Isis::PvlContainer::HasKeyword(), Isis::PvlTranslationTable::InputGroup(), and Isis::PvlTranslationTable::Translate().
ConstPvlGroupIterator Isis::PvlObject::EndGroup | ( | ) | const [inline, inherited] |
Returns the const ending group index.
PvlGroupIterator Isis::PvlObject::EndGroup | ( | ) | [inline, inherited] |
Returns the ending group index.
Referenced by Isis::PvlObject::DeleteGroup(), Isis::PvlObject::FindGroup(), and Isis::PvlObject::HasGroup().
ConstPvlObjectIterator Isis::PvlObject::EndObject | ( | ) | const [inline, inherited] |
Returns the const index of the ending object.
PvlObjectIterator Isis::PvlObject::EndObject | ( | ) | [inline, inherited] |
Returns the index of the ending object.
Referenced by Isis::PvlObject::DeleteObject(), Isis::PvlObject::FindObject(), and Isis::PvlObject::HasObject().
std::string Isis::PvlContainer::Filename | ( | ) | const [inline, inherited] |
Returns the filename used to initialise the Pvl object.
If the object was not initialized using a file, this string is empty.
References Isis::PvlContainer::p_filename.
Referenced by Isis::PvlObject::AddObject(), Isis::SerialNumber::Compose(), Isis::ProjectionFactory::Create(), Isis::ProjectionFactory::CreateForCube(), Isis::ProjectionFactory::CreateFromCube(), Isis::DawnVirCamera::DawnVirCamera(), Isis::HrscCamera::HrscCamera(), Isis::PvlTranslationTable::InputDefault(), Isis::PvlTranslationTable::InputGroup(), Isis::PvlTranslationManager::InputKeyword(), Isis::PvlTranslationTable::InputKeywordName(), Isis::PvlTranslationTable::IsAuto(), Isis::PvlTranslationTable::IsOptional(), Isis::PvlTranslationTable::OutputName(), Isis::PvlTranslationTable::OutputPosition(), Isis::AutoReg::Parse(), Isis::PvlEditDialog::PvlEditDialog(), Isis::PvlTranslationTable::Translate(), and Isis::UniversalGroundMap::UniversalGroundMap().
const Isis::PvlGroup & Isis::PvlObject::FindGroup | ( | const std::string & | name, | |
PvlObject::FindOptions | opts = None | |||
) | const [inherited] |
Finds a group within the current PvlObject.
name | The name of the group to look for. | |
opts | The FindOptions option (None or Traverse). |
iException::Pvl |
References _FILEINFO_, Isis::PvlObject::BeginGroup(), Isis::PvlObject::EndGroup(), Isis::iException::Message(), Isis::PvlObject::Object(), Isis::PvlContainer::p_filename, Isis::iException::Pvl, and Isis::PvlObject::Traverse.
Isis::PvlGroup & Isis::PvlObject::FindGroup | ( | const std::string & | name, | |
PvlObject::FindOptions | opts = None | |||
) | [inherited] |
Finds a group within the current PvlObject.
name | The name of the group to look for. | |
opts | The FindOptions option (None or Traverse). |
iException::Pvl |
References _FILEINFO_, Isis::PvlObject::BeginGroup(), Isis::PvlObject::EndGroup(), Isis::iException::Message(), Isis::PvlObject::Object(), Isis::PvlContainer::p_filename, Isis::iException::Pvl, and Isis::PvlObject::Traverse.
ConstPvlGroupIterator Isis::PvlObject::FindGroup | ( | const std::string & | name, | |
ConstPvlGroupIterator | beg, | |||
ConstPvlGroupIterator | end | |||
) | const [inline, inherited] |
Find a group with the specified name, within these indexes.
name | The name of the group to look for. | |
beg | The lower index | |
end | The higher index |
PvlGroupIterator Isis::PvlObject::FindGroup | ( | const std::string & | name, | |
PvlGroupIterator | beg, | |||
PvlGroupIterator | end | |||
) | [inline, inherited] |
Find a group with the specified name, within these indexes.
name | The name of the group to look for. | |
beg | The lower index | |
end | The higher index |
Referenced by Isis::ProcessMosaic::AddBandBinGroup(), Isis::ApolloMetricCamera::ApolloMetricCamera(), Isis::ProjectionFactory::Create(), Isis::Cube::create(), Isis::ProjectionFactory::CreateForCube(), Isis::ProjectionFactory::CreateFromCube(), Isis::CTXCamera::CTXCamera(), Isis::CubeIoHandler::CubeIoHandler(), Isis::DawnFcCamera::DawnFcCamera(), Isis::DawnVirCamera::DawnVirCamera(), Isis::PvlObject::DeleteGroup(), Isis::Equirectangular::Equirectangular(), KernelDb::FindAll(), Isis::CubeViewport::getBandFilterName(), Isis::ProcessMosaic::GetBandIndex(), Isis::Cube::getGroup(), GetPlugin(), Isis::GroundGrid::GroundGrid(), Isis::Camera::GroundRange(), Isis::PvlObject::HasGroup(), Isis::Spice::HasKernels(), Isis::HiresCamera::HiresCamera(), Isis::HiriseCamera::HiriseCamera(), Isis::HrscCamera::HrscCamera(), Isis::IdealCamera::IdealCamera(), Isis::VimsSkyMap::Init(), Isis::VimsGroundMap::Init(), Isis::PvlTranslationTable::InputDefault(), Isis::PvlTranslationTable::InputGroup(), Isis::PvlTranslationTable::InputKeywordName(), Isis::PvlTranslationTable::IsAuto(), Isis::PvlTranslationTable::IsOptional(), Isis::IssNACamera::IssNACamera(), Isis::IssWACamera::IssWACamera(), Isis::LambertConformal::LambertConformal(), Isis::Stretch::Load(), Isis::Preference::Load(), Isis::LoHighCamera::LoHighCamera(), Isis::LoMediumCamera::LoMediumCamera(), Isis::LroNarrowAngleCamera::LroNarrowAngleCamera(), Isis::LroWideAngleCamera::LroWideAngleCamera(), Isis::LunarAzimuthalEqualArea::LunarAzimuthalEqualArea(), Isis::LwirCamera::LwirCamera(), Isis::MarciCamera::MarciCamera(), Isis::Mariner10Camera::Mariner10Camera(), Isis::ProcessMosaic::MatchBandBinGroup(), KernelDb::Matches(), Isis::MdisCamera::MdisCamera(), Isis::Mercator::Mercator(), Isis::iException::Message(), Isis::MiniRF::MiniRF(), Isis::Process::MissionData(), Isis::MocNarrowAngleCamera::MocNarrowAngleCamera(), Isis::MocWideAngleCamera::MocWideAngleCamera(), Isis::NirCamera::NirCamera(), Isis::ObliqueCylindrical::ObliqueCylindrical(), Isis::Cube::open(), Isis::Orthographic::Orthographic(), Isis::PvlTranslationTable::OutputName(), Isis::PvlTranslationTable::OutputPosition(), Isis::ControlNetValidMeasure::Parse(), Isis::AutoReg::Parse(), Isis::PointPerspective::PointPerspective(), Isis::PolarStereographic::PolarStereographic(), Isis::MosaicSceneWidget::preloadFromPvl(), Isis::ProcessImportPds::ProcessImportPds(), Isis::Progress::Progress(), Isis::Projection::Projection(), Isis::Cube::putGroup(), Isis::PvlKeyword::Reform(), Isis::AutoReg::RegTemplate(), Isis::ReseauDistortionMap::ReseauDistortionMap(), Isis::UserInterface::SaveHistory(), Isis::Sensor::Sensor(), Isis::ProcessMosaic::SetInputCube(), Isis::ProcessMosaic::SetMosaicOrigin(), Isis::ProcessMapMosaic::SetOutputCube(), Isis::ProcessGroundPolygons::SetOutputCube(), Isis::SimpleCylindrical::SimpleCylindrical(), Isis::Sinusoidal::Sinusoidal(), Isis::Spice::Spice(), Isis::SsiCamera::SsiCamera(), Isis::Projection::TargetRadii(), Isis::Filename::Temporary(), Isis::Pipeline::TemporaryFolder(), Isis::ThemisIrCamera::ThemisIrCamera(), Isis::ThemisVisCamera::ThemisVisCamera(), Isis::PvlTranslationTable::Translate(), Isis::ProcessImportPds::TranslatePdsProjection(), Isis::TransverseMercator::TransverseMercator(), Isis::UvvisCamera::UvvisCamera(), Isis::PvlObject::ValidateObject(), Isis::Pvl::ValidatePvl(), Isis::VikingCamera::VikingCamera(), Isis::VimsCamera::VimsCamera(), and Isis::VoyagerCamera::VoyagerCamera().
PvlContainer::ConstPvlKeywordIterator Isis::PvlContainer::FindKeyword | ( | const std::string & | name, | |
PvlContainer::ConstPvlKeywordIterator | beg, | |||
PvlContainer::ConstPvlKeywordIterator | end | |||
) | const [inherited] |
Find the index of a keyword, using iterators.
name | The name of the keyword. | |
beg | The beginning iterator. | |
end | The ending iterator. |
PvlContainer::PvlKeywordIterator Isis::PvlContainer::FindKeyword | ( | const std::string & | name, | |
PvlContainer::PvlKeywordIterator | beg, | |||
PvlContainer::PvlKeywordIterator | end | |||
) | [inherited] |
Find the index of a keyword, using iterators.
name | The name of the keyword. | |
beg | The beginning iterator. | |
end | The ending iterator. |
const Isis::PvlKeyword & Isis::PvlContainer::FindKeyword | ( | const std::string & | name | ) | const [inherited] |
Find a keyword with a specified name.
name | The name of the keyword to look for. |
iException::Pvl | The keyword doesn't exist. |
References _FILEINFO_, Isis::PvlContainer::Begin(), Isis::PvlContainer::End(), Isis::PvlContainer::FindKeyword(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_filename, Isis::iException::Pvl, and Isis::PvlContainer::Type().
Isis::PvlKeyword & Isis::PvlContainer::FindKeyword | ( | const std::string & | name | ) | [inherited] |
Find a keyword with a specified name.
name | The name of the keyword to look for. |
iException::Pvl | The keyword doesn't exist. |
References _FILEINFO_, Isis::PvlContainer::Begin(), Isis::PvlContainer::End(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_filename, Isis::iException::Pvl, and Isis::PvlContainer::Type().
Referenced by Isis::PvlContainer::AddKeyword(), Isis::MosaicSceneWidget::addToPermanent(), Isis::ApolloMetricCamera::ApolloMetricCamera(), Isis::CubeIoHandler::CubeIoHandler(), Isis::PvlContainer::DeleteKeyword(), Isis::PvlContainer::FindKeyword(), Isis::CubeViewport::getBandFilterName(), Isis::PvlContainer::HasKeyword(), Isis::PvlTranslationTable::InputGroup(), Isis::PvlTranslationManager::InputKeyword(), Isis::Stretch::Load(), Isis::ProcessMosaic::MatchDEMShapeModel(), Isis::PvlContainer::operator[](), Isis::SpectralPlotTool::refreshPlot(), Isis::ReseauDistortionMap::ReseauDistortionMap(), Isis::MosaicSceneWidget::setProjection(), Isis::Projection::TargetRadii(), Isis::PvlTranslationTable::Translate(), Isis::PvlContainer::ValidateAllKeywords(), Isis::PvlObject::ValidateObject(), Isis::Pvl::ValidatePvl(), and Isis::PvlContainer::ValidateRepeatOption().
PvlKeyword & Isis::PvlObject::FindKeyword | ( | const std::string & | kname, | |
FindOptions | opts | |||
) | [inherited] |
Finds a keyword in the current PvlObject, or deeper inside other PvlObjects and PvlGroups within this one.
Note: This member has the same name as the PvlContainer and hides those implementations, but with the using statement the parents FindKeyword members ar made visible. Note: If more than one occurance of a Keyword appears below this Object no guarantee is made as to which one is returned.
kname | The name of the keyword to look for. | |
opts | The FindOptions option (None or Traverse). |
iException::Pvl |
References _FILEINFO_, Isis::PvlContainer::Begin(), Isis::PvlContainer::End(), g, Isis::PvlObject::Group(), Isis::iException::Message(), Isis::PvlObject::None, Isis::PvlObject::Object(), Isis::PvlContainer::p_filename, and Isis::iException::Pvl.
Referenced by Isis::PvlFormat::Accuracy(), Isis::CubeIoHandler::CubeIoHandler(), Isis::Cube::deleteBlob(), Isis::ProcessMosaic::GetTrackStatus(), Isis::LroWideAngleCamera::LroWideAngleCamera(), Isis::Spice::readStoredValue(), Isis::ProcessMosaic::SetMosaicOrigin(), Isis::SsiCamera::SsiCamera(), Isis::Spice::storeValue(), Isis::PvlFormat::Type(), Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
const PvlObject & Isis::PvlObject::FindObject | ( | const std::string & | name, | |
FindOptions | opts = None | |||
) | const [inherited] |
Find an object within the current PvlObject.
name | The object name to look for. | |
opts | The FindOptions option (None or Traverse). |
iException::Pvl |
References _FILEINFO_, Isis::PvlObject::BeginObject(), Isis::PvlObject::EndObject(), Isis::iException::Message(), Isis::PvlObject::Object(), Isis::PvlContainer::p_filename, Isis::iException::Pvl, and Isis::PvlObject::Traverse.
PvlObject & Isis::PvlObject::FindObject | ( | const std::string & | name, | |
PvlObject::FindOptions | opts = None | |||
) | [inherited] |
Find an object within the current PvlObject.
name | The object name to look for. | |
opts | The FindOptions option (None or Traverse). |
iException::Pvl |
References _FILEINFO_, Isis::PvlObject::BeginObject(), Isis::PvlObject::EndObject(), Isis::iException::Message(), Isis::PvlObject::Object(), Isis::PvlContainer::p_filename, Isis::iException::Pvl, and Isis::PvlObject::Traverse.
ConstPvlObjectIterator Isis::PvlObject::FindObject | ( | const std::string & | name, | |
ConstPvlObjectIterator | beg, | |||
ConstPvlObjectIterator | end | |||
) | const [inline, inherited] |
Find the index of object with a specified name, between two indexes.
name | The name of the object to find. | |
beg | The lower index. | |
end | The higher index. |
PvlObjectIterator Isis::PvlObject::FindObject | ( | const std::string & | name, | |
PvlObjectIterator | beg, | |||
PvlObjectIterator | end | |||
) | [inline, inherited] |
Find the index of object with a specified name, between two indexes.
name | The name of the object to find. | |
beg | The lower index. | |
end | The higher index. |
Referenced by Isis::ProcessMosaic::AddBandBinGroup(), Isis::ProcessMosaic::AddDefaultBandBinGroup(), Isis::AlbedoAtm::AlbedoAtm(), Isis::AtmosModel::AtmosModel(), Isis::AutoReg::AutoReg(), Isis::Camera::Camera(), Isis::CubeIoHandler::CubeIoHandler(), Isis::CubeTileHandler::CubeTileHandler(), Isis::Cube::deleteGroup(), Isis::PvlObject::DeleteObject(), KernelDb::FindAll(), Isis::MosaicSceneWidget::fromPvl(), Isis::CubeViewport::getBandFilterName(), Isis::Cube::getGroup(), Isis::Hapke::Hapke(), Isis::Cube::hasGroup(), Isis::PvlObject::HasObject(), Isis::Cube::isProjected(), Isis::ProcessMosaic::MatchDEMShapeModel(), KernelDb::Matches(), Isis::Cube::open(), Isis::AutoReg::Parse(), Isis::PhotoModel::PhotoModel(), Isis::Process::PropagateLabels(), Isis::Cube::putGroup(), Isis::ControlNetFileV0002::Read(), Isis::ControlNetFileV0001::Read(), Isis::MosaicController::readProject(), Isis::SpectralPlotTool::refreshPlot(), Isis::ProcessMosaic::SetOutputCube(), Isis::Process::SetOutputCube(), Isis::Shade::Shade(), Isis::ShadeAtm::ShadeAtm(), Isis::ProcessMosaic::StartProcess(), Isis::Topo::Topo(), Isis::TopoAtm::TopoAtm(), Isis::ControlNetFileV0002::ToPvl(), Isis::ControlNetFileV0001::ToPvl(), Isis::SubArea::UpdateLabel(), Isis::CubeTileHandler::updateLabels(), Isis::CubeBsqHandler::updateLabels(), Isis::SpectralPlotTool::updateTool(), Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
PvlContainer* Isis::PvlContainer::FormatTemplate | ( | ) | [inline, inherited] |
References Isis::PvlContainer::p_formatTemplate.
Referenced by Isis::operator<<().
PvlFormat* Isis::PvlContainer::GetFormat | ( | ) | [inline, inherited] |
References Isis::PvlKeyword::GetFormat(), and Isis::PvlContainer::p_name.
Referenced by Isis::Pvl::Append(), Isis::operator<<(), and Isis::Pvl::Write().
const PvlKeyword& Isis::PvlContainer::GetNameKeyword | ( | ) | const [inline, inherited] |
References Isis::PvlContainer::p_name.
PvlKeyword& Isis::PvlContainer::GetNameKeyword | ( | ) | [inline, inherited] |
References Isis::PvlContainer::p_name.
Referenced by Isis::operator<<().
void * Isis::Plugin::GetPlugin | ( | const std::string & | group | ) |
This method returns a void pointer to a C function (i.e., the plugin) It does this by looking in itself (Pvl) for the keyword LIBRARY and the keyword ROUTINE.
When you write this function make sure to place extern "C" infront of it to eliminate C++ symbol mangling.
group | The group name. |
References _FILEINFO_, Isis::Filename::Expanded(), Isis::PvlObject::FindGroup(), g, Isis::iException::Message(), and Isis::iException::System.
Referenced by Isis::ProjectionFactory::Create().
const Isis::PvlGroup & Isis::PvlObject::Group | ( | const int | index | ) | const [inherited] |
Return the group at the specified index.
index | The index of the group. |
iException::Pvl |
References _FILEINFO_, Isis::Message::ArraySubscriptNotInRange(), Isis::iException::Message(), and Isis::iException::Programmer.
Isis::PvlGroup & Isis::PvlObject::Group | ( | const int | index | ) | [inherited] |
Return the group at the specified index.
index | The index of the group. |
iException::Pvl |
References _FILEINFO_, Isis::Message::ArraySubscriptNotInRange(), Isis::iException::Message(), and Isis::iException::Programmer.
Referenced by Isis::PvlTranslationTable::AddTable(), Isis::PvlTranslationManager::Auto(), KernelDb::FindAll(), Isis::PvlObject::FindKeyword(), Isis::PvlObject::HasKeyword(), Isis::Preference::Load(), Isis::operator<<(), Isis::Process::PropagateLabels(), Isis::Process::SetOutputCube(), Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
int Isis::PvlObject::Groups | ( | ) | const [inline, inherited] |
Returns the number of groups contained.
Referenced by Isis::PvlTranslationManager::Auto(), KernelDb::FindAll(), Isis::Preference::Load(), Isis::operator<<(), Isis::Process::PropagateLabels(), Isis::UserInterface::SaveHistory(), Isis::Process::SetOutputCube(), Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
bool Isis::PvlContainer::HasFormatTemplate | ( | ) | [inline, inherited] |
References Isis::PvlContainer::p_formatTemplate.
Referenced by Isis::operator<<().
bool Isis::PvlObject::HasGroup | ( | const std::string & | name | ) | const [inline, inherited] |
Returns a boolean value based on whether the object has the specified group or not.
name | The name of the group to look for. |
References Isis::PvlObject::BeginGroup(), Isis::PvlObject::EndGroup(), and Isis::PvlObject::FindGroup().
Referenced by Isis::ControlNetValidMeasure::ControlNetValidMeasure(), Isis::Cube::deleteGroup(), Isis::CubeViewport::getBandFilterName(), Isis::Cube::hasGroup(), Isis::PvlTranslationTable::InputDefault(), Isis::PvlTranslationTable::InputGroup(), Isis::PvlTranslationTable::InputKeywordName(), Isis::PvlTranslationTable::IsAuto(), Isis::PvlTranslationTable::IsOptional(), Isis::Preference::Load(), Isis::operator<<(), Isis::PvlTranslationTable::OutputName(), Isis::PvlTranslationTable::OutputPosition(), Isis::AutoReg::Parse(), Isis::Cube::putGroup(), Isis::AutoReg::RegTemplate(), Isis::Filename::Temporary(), Isis::PvlTranslationTable::Translate(), Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
bool Isis::PvlContainer::HasKeyword | ( | const std::string & | name | ) | const [inherited] |
Check to see if a keyword exists.
name | The name of the keyword to check for. |
References Isis::PvlContainer::Begin(), Isis::PvlContainer::End(), and Isis::PvlContainer::FindKeyword().
Referenced by Isis::PvlContainer::AddKeyword(), Isis::PvlTranslationTable::AddTable(), Isis::AlbedoAtm::AlbedoAtm(), Isis::AtmosModel::AtmosModel(), Isis::Camera::Camera(), IsisAml::CommandLine(), Isis::ControlNetFilter::CubeConvexHullFilter(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::ControlNetFilter::CubeNameExpressionFilter(), Isis::ControlNetFilter::CubeNumPointsFilter(), Isis::Equirectangular::Equirectangular(), KernelDb::FindAll(), Isis::CubeViewport::getBandFilterName(), Isis::GroundGrid::GroundGrid(), Isis::Camera::GroundRange(), Isis::Hapke::Hapke(), Isis::Spice::HasKernels(), HiLab::HiLab(), Isis::IdealCamera::IdealCamera(), Isis::PvlTranslationTable::InputDefault(), Isis::PvlTranslationManager::InputHasKeyword(), Isis::PvlTranslationManager::InputKeyword(), Isis::PvlTranslationTable::InputKeywordName(), Isis::PvlTranslationTable::IsAuto(), Isis::PvlTranslationTable::IsOptional(), Isis::LambertConformal::LambertConformal(), Isis::Preference::Load(), Isis::LoMediumCamera::LoMediumCamera(), Isis::Projection::Mapping(), Isis::ProcessMosaic::MatchBandBinGroup(), Isis::ProcessMosaic::MatchDEMShapeModel(), KernelDb::Matches(), Isis::Mercator::Mercator(), Isis::iException::Message(), Isis::ObliqueCylindrical::ObliqueCylindrical(), Isis::Orthographic::Orthographic(), Isis::PvlTranslationTable::OutputName(), Isis::PvlTranslationTable::OutputPosition(), Isis::AutoReg::Parse(), Isis::PhotoModel::PhotoModel(), Isis::ControlNetFilter::PointDistanceFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointLatLonFilter(), Isis::ControlNetFilter::PointMeasurePropertiesFilter(), Isis::ControlNetFilter::PointMeasuresFilter(), Isis::ControlNetFilter::PointNumMeasuresEditLockFilter(), Isis::PointPerspective::PointPerspective(), Isis::ControlNetFilter::PointPixelShiftFilter(), Isis::ControlNetFilter::PointPropertiesFilter(), Isis::ControlNetFilter::PointResMagnitudeFilter(), Isis::PolarStereographic::PolarStereographic(), Isis::Projection::Projection(), Isis::SpectralPlotTool::refreshPlot(), Isis::AutoReg::RegTemplate(), Isis::Sensor::Sensor(), Isis::ProcessMapMosaic::SetOutputCube(), Isis::Shade::Shade(), Isis::ShadeAtm::ShadeAtm(), Isis::SimpleCylindrical::SimpleCylindrical(), Isis::Sinusoidal::Sinusoidal(), Isis::Projection::TargetRadii(), Isis::Filename::Temporary(), Isis::ThemisIrCamera::ThemisIrCamera(), Isis::Topo::Topo(), Isis::TopoAtm::TopoAtm(), Isis::ControlNetFileV0002::ToPvl(), Isis::PvlTranslationTable::Translate(), Isis::PvlTranslationManager::Translate(), Isis::TransverseMercator::TransverseMercator(), Isis::SubArea::UpdateLabel(), Isis::SpectralPlotTool::updateTool(), Isis::PvlContainer::ValidateAllKeywords(), Isis::PvlObject::ValidateObject(), Isis::Pvl::ValidatePvl(), Isis::ControlNetValidMeasure::ValidatePvlDN(), Isis::ControlNetValidMeasure::ValidatePvlEmissionAngle(), Isis::ControlNetValidMeasure::ValidatePvlFromEdge(), Isis::ControlNetValidMeasure::ValidatePvlIncidenceAngle(), Isis::ControlNetValidMeasure::ValidatePvlResidualTolerances(), Isis::ControlNetValidMeasure::ValidatePvlResolution(), Isis::ControlNetValidMeasure::ValidatePvlShiftTolerances(), and Isis::PvlContainer::ValidateRepeatOption().
bool Isis::PvlObject::HasKeyword | ( | const std::string & | kname, | |
FindOptions | opts | |||
) | const [inherited] |
See if a keyword is in the current PvlObject, or deeper inside other PvlObjects and PvlGroups within this one.
Note: This member has the same name as the PvlContainer and hides those implementations, but with the using statement the parents FindKeyword members ar made visible.
kname | The name of the keyword to look for. | |
opts | The FindOptions option (None or Traverse). |
References Isis::PvlContainer::Begin(), Isis::PvlContainer::End(), g, Isis::PvlObject::Group(), Isis::PvlObject::None, and Isis::PvlObject::Object().
Referenced by Isis::PvlFormat::Accuracy(), Isis::PvlFormat::Add(), Isis::CubeTileHandler::CubeTileHandler(), Isis::MosaicAreaTool::fromPvl(), Isis::ProcessMosaic::GetTrackStatus(), Isis::Cube::hasTable(), Isis::Cube::open(), Isis::operator<<(), Isis::Spice::readStoredValue(), Isis::ProcessMosaic::SetMosaicOrigin(), Isis::Spice::storeValue(), Isis::PvlFormat::Type(), Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
bool Isis::PvlObject::HasObject | ( | const std::string & | name | ) | const [inline, inherited] |
Returns a boolean value based on whether the object exists in the current PvlObject or not.
name | The name of the object to search for. |
References Isis::PvlObject::BeginObject(), Isis::PvlObject::EndObject(), and Isis::PvlObject::FindObject().
Referenced by Isis::ProjectionFactory::CreateForCube(), KernelDb::FindAll(), Isis::MosaicSceneWidget::fromPvl(), Isis::ProcessMosaic::GetTrackStatus(), Isis::operator<<(), Isis::Photometry::Photometry(), Isis::Process::PropagateLabels(), Isis::MosaicController::readProject(), Isis::ProcessMosaic::SetMosaicOrigin(), Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
int Isis::PvlContainer::Indent | ( | ) | [inline, inherited] |
References Isis::PvlKeyword::Indent(), and Isis::PvlContainer::p_name.
Referenced by Isis::operator<<().
bool Isis::PvlContainer::IsNamed | ( | const std::string & | match | ) | const [inline, inherited] |
Returns whether the given string is equal to the container name or not.
match | The string to compare to the name. |
References Isis::PvlContainer::p_name, and Isis::PvlKeyword::StringEqual().
Referenced by KernelDb::FindAll(), Isis::Cube::hasTable(), Isis::IsBlob(), Isis::Process::SetOutputCube(), and Isis::Process::WriteHistory().
int Isis::PvlContainer::Keywords | ( | ) | const [inline, inherited] |
Returns the number of keywords contained in the PvlContainer.
References Isis::PvlContainer::p_keywords.
Referenced by Isis::PvlFormat::Add(), Isis::ProcessMosaic::AddBandBinGroup(), Isis::PvlTranslationTable::AddTable(), KernelDb::FindAll(), Isis::MosaicSceneWidget::fromPvl(), Isis::Preference::Load(), Isis::ProcessMosaic::MatchBandBinGroup(), KernelDb::Matches(), Isis::Cube::open(), Isis::operator<<(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::PvlContainer::ValidateAllKeywords(), Isis::PvlGroup::ValidateGroup(), Isis::PvlObject::ValidateObject(), Isis::Pvl::ValidatePvl(), and Isis::PvlContainer::ValidateRepeatOption().
std::string Isis::PvlContainer::Name | ( | ) | const [inline, inherited] |
Returns the container name.
References Isis::PvlContainer::p_name.
Referenced by Isis::PvlTranslationTable::AddTable(), Isis::PvlTranslationManager::Auto(), Isis::Cube::deleteBlob(), Isis::PvlObject::DeleteGroup(), Isis::PvlContainer::DeleteKeyword(), Isis::PvlObject::DeleteObject(), Isis::PvlContainer::FindKeyword(), Isis::Preference::Load(), Isis::ProcessMosaic::MatchBandBinGroup(), Isis::operator<<(), Isis::PvlObject::operator==(), Isis::PvlGroup::operator==(), Isis::operator>>(), Isis::Cube::putGroup(), Isis::Process::SetOutputCube(), Isis::PvlGroup::ValidateGroup(), Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
const PvlObject & Isis::PvlObject::Object | ( | const int | index | ) | const [inherited] |
Return the object at the specified index.
index | The index of the object. |
iException::Programmer |
References _FILEINFO_, Isis::Message::ArraySubscriptNotInRange(), Isis::iException::Message(), and Isis::iException::Programmer.
PvlObject & Isis::PvlObject::Object | ( | const int | index | ) | [inherited] |
Return the object at the specified index.
index | The index of the object. |
iException::Programmer |
References _FILEINFO_, Isis::Message::ArraySubscriptNotInRange(), Isis::iException::Message(), and Isis::iException::Programmer.
Referenced by Isis::Cube::deleteBlob(), Isis::PvlObject::FindGroup(), Isis::PvlObject::FindKeyword(), Isis::PvlObject::FindObject(), Isis::ProcessMosaic::GetTrackStatus(), Isis::PvlObject::HasKeyword(), Isis::Cube::hasTable(), Isis::operator<<(), Isis::ProcessMosaic::SetMosaicOrigin(), Isis::Process::SetOutputCube(), Isis::PvlObject::ValidateObject(), Isis::Pvl::ValidatePvl(), and Isis::Process::WriteHistory().
int Isis::PvlObject::Objects | ( | ) | const [inline, inherited] |
Returns the number of objects.
Referenced by Isis::Cube::deleteBlob(), Isis::ProcessMosaic::GetTrackStatus(), Isis::Cube::hasTable(), Isis::Cube::open(), Isis::operator<<(), Isis::ProcessMosaic::SetMosaicOrigin(), Isis::Process::SetOutputCube(), Isis::PvlObject::ValidateObject(), Isis::Pvl::ValidatePvl(), and Isis::Process::WriteHistory().
void Isis::PvlContainer::operator+= | ( | const PvlKeyword & | keyword | ) | [inline, inherited] |
When you use the += operator with a PvlKeyword, it will call the AddKeyword() method.
keyword | The PvlKeyword to be added. |
References Isis::PvlContainer::AddKeyword().
void Isis::PvlObject::operator+= | ( | const Isis::PvlObject & | obj | ) | [inline, inherited] |
References Isis::PvlObject::AddObject().
void Isis::PvlObject::operator+= | ( | const Isis::PvlGroup & | group | ) | [inline, inherited] |
References Isis::PvlObject::AddGroup().
void Isis::PvlContainer::operator-= | ( | const PvlKeyword & | key | ) | [inline, inherited] |
When you use the -= operator with a PvlKeyword object, it will call the DeleteKeyword() method.
key | The PvlKeyword object to remove. |
References Isis::PvlContainer::DeleteKeyword(), and Isis::PvlKeyword::Name().
void Isis::PvlContainer::operator-= | ( | const std::string & | name | ) | [inline, inherited] |
When you use the -= operator with a (string) name, it will call the DeleteKeyword() method.
name | The name of the keyword to remove. |
References Isis::PvlContainer::DeleteKeyword().
bool Isis::PvlObject::operator== | ( | const PvlObject & | object | ) | const [inline, inherited] |
Compares two PvlObjects.
Returns a boolean value based on the StringEqual() method.
object | The PvlObject to compare. |
References Isis::PvlContainer::Name(), and Isis::PvlKeyword::StringEqual().
PvlKeyword Isis::PvlContainer::operator[] | ( | const char * | name | ) | const [inline, inherited] |
When you use the [] operator with a (char) name, it will call the FindKeyword() method.
name | The name of the keyword to find. |
References Isis::PvlContainer::operator[]().
const Isis::PvlKeyword & Isis::PvlContainer::operator[] | ( | const int | index | ) | const [inherited] |
Return the PvlKeyword object at the specified index.
index | The index to use. |
iException::Message | The index is out of bounds. |
References _FILEINFO_, Isis::Message::ArraySubscriptNotInRange(), Isis::iException::Message(), Isis::PvlContainer::p_keywords, and Isis::iException::Programmer.
const PvlKeyword& Isis::PvlContainer::operator[] | ( | const std::string & | name | ) | const [inline, inherited] |
When you use the [] operator with a (string) name, it will call the FindKeyword() method.
name | The name of the keyword to find. |
References Isis::PvlContainer::FindKeyword().
PvlKeyword& Isis::PvlContainer::operator[] | ( | const char * | name | ) | [inline, inherited] |
When you use the [] operator with a (char) name, it will call the FindKeyword() method.
name | The name of the keyword to find. |
References Isis::PvlContainer::operator[]().
Isis::PvlKeyword & Isis::PvlContainer::operator[] | ( | const int | index | ) | [inherited] |
Return the PvlKeyword object at the specified index.
index | The index to use. |
iException::Message | The index is out of bounds. |
References _FILEINFO_, Isis::Message::ArraySubscriptNotInRange(), Isis::iException::Message(), Isis::PvlContainer::p_keywords, and Isis::iException::Programmer.
PvlKeyword& Isis::PvlContainer::operator[] | ( | const std::string & | name | ) | [inline, inherited] |
When you use the [] operator with a (string) name, it will call the FindKeyword() method.
name | The name of the keyword to find. |
References Isis::PvlContainer::FindKeyword().
Referenced by Isis::PvlContainer::operator[]().
void Isis::Pvl::Read | ( | const std::string & | file | ) | [inherited] |
Loads PVL information from a stream.
file | A file containing PVL information |
Isis::iException::Io |
References _FILEINFO_, Isis::Filename::Expanded(), Isis::Message::FileOpen(), Isis::iException::Io, Isis::iException::Message(), and Isis::PvlContainer::p_filename.
Referenced by Isis::PvlTranslationTable::AddTable(), Isis::ProjectionFactory::Create(), Isis::Preference::Load(), KernelDb::LoadSystemDb(), Isis::Pvl::Pvl(), Isis::UserInterface::SaveHistory(), Isis::ProcessMapMosaic::SetOutputCube(), and Isis::ProcessImportPds::SetPdsFile().
void Isis::PvlContainer::SetFilename | ( | const std::string & | filename | ) | [inline, protected, inherited] |
Sets the filename to the specified string.
filename | The new filename to use. |
References Isis::PvlContainer::p_filename.
void Isis::PvlContainer::SetFormat | ( | PvlFormat * | format | ) | [inline, inherited] |
References Isis::PvlContainer::p_name, and Isis::PvlKeyword::SetFormat().
Referenced by Isis::Pvl::Append(), Isis::operator<<(), and Isis::Pvl::Write().
void Isis::PvlContainer::SetFormatTemplate | ( | PvlContainer & | ref | ) | [inline, inherited] |
References Isis::PvlContainer::p_formatTemplate.
Referenced by Isis::operator<<().
void Isis::Pvl::SetFormatTemplate | ( | const std::string & | filename | ) | [inherited] |
References Isis::PvlContainer::p_formatTemplate, and Isis::Pvl::Pvl().
void Isis::Pvl::SetFormatTemplate | ( | Isis::Pvl & | temp | ) | [inherited] |
References Isis::PvlContainer::p_formatTemplate.
void Isis::PvlContainer::SetIndent | ( | int | indent | ) | [inline, inherited] |
References Isis::PvlContainer::p_name, and Isis::PvlKeyword::SetIndent().
Referenced by Isis::operator<<().
void Isis::PvlContainer::SetName | ( | const std::string & | name | ) | [inline, inherited] |
Set the name of the container.
References Isis::PvlContainer::p_name, and Isis::PvlKeyword::SetValue().
Referenced by Isis::operator>>(), Isis::PvlContainer::PvlContainer(), and Isis::MosaicSceneWidget::toPvl().
void Isis::Pvl::SetTerminator | ( | const std::string & | term | ) | [inline, inherited] |
Sets the terminator used to signify the end of the PVL informationDefaults to "END".
term | The user-defined terminator |
Referenced by Isis::OriginalLabel::OriginalLabel(), and Isis::Equalization::setResults().
std::string Isis::Pvl::Terminator | ( | ) | const [inline, inherited] |
Returns the terminator used to signify the end of the PVL informationDefaults to "END".
Referenced by Isis::Pvl::Append(), Isis::operator<<(), and Isis::Pvl::Write().
std::string Isis::PvlContainer::Type | ( | ) | const [inline, inherited] |
Returns the container type.
References Isis::PvlKeyword::Name(), and Isis::PvlContainer::p_name.
Referenced by Isis::PvlObject::DeleteGroup(), Isis::PvlContainer::DeleteKeyword(), Isis::PvlObject::DeleteObject(), and Isis::PvlContainer::FindKeyword().
void Isis::PvlContainer::ValidateAllKeywords | ( | PvlContainer & | pPvlCont | ) | [protected, inherited] |
Validate All the Keywords in a Container comparing with the Template.
Validate all the PvlKeywords in this container.
pPvlCont | - Container to be Validated |
References _FILEINFO_, Isis::PvlContainer::DeleteKeyword(), Isis::PvlContainer::FindKeyword(), Isis::PvlContainer::HasKeyword(), Isis::PvlContainer::Keywords(), Isis::iException::Message(), Isis::PvlKeyword::Name(), Isis::iException::User, Isis::PvlKeyword::ValidateKeyword(), and Isis::PvlContainer::ValidateRepeatOption().
Referenced by Isis::PvlGroup::ValidateGroup(), Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
void Isis::PvlObject::ValidateObject | ( | PvlObject & | pPvlObj | ) | [inherited] |
Validate Object.
Validate a PvlObject, comparing against corresponding Template PvlObject.
If the Objects are nested, it will recursively validate the PvlObject.
Template PvlObject has the format: Object = (objectName, optional/required)
pvlObj- | PvlObject to be validated |
References _FILEINFO_, Isis::PvlObject::DeleteGroup(), Isis::PvlObject::DeleteObject(), Isis::PvlObject::FindGroup(), Isis::PvlContainer::FindKeyword(), Isis::PvlObject::FindKeyword(), Isis::PvlObject::FindObject(), Isis::PvlObject::Group(), Isis::PvlObject::Groups(), Isis::PvlObject::HasGroup(), Isis::PvlContainer::HasKeyword(), Isis::PvlObject::HasKeyword(), Isis::PvlObject::HasObject(), Isis::PvlContainer::Keywords(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlObject::Object(), Isis::PvlObject::Objects(), Isis::iException::User, Isis::PvlContainer::ValidateAllKeywords(), Isis::PvlGroup::ValidateGroup(), and Isis::PvlObject::ValidateObject().
Referenced by Isis::PvlObject::ValidateObject(), and Isis::Pvl::ValidatePvl().
Validate a Pvl with the Template Pvl.
Validate a Pvl, comparing against corresponding Template Pvl It validates all the Objects, Groups and Keywords.
References _FILEINFO_, Isis::PvlObject::DeleteGroup(), Isis::PvlObject::DeleteObject(), Isis::PvlObject::FindGroup(), Isis::PvlContainer::FindKeyword(), Isis::PvlObject::FindKeyword(), Isis::PvlObject::FindObject(), Isis::PvlObject::Group(), Isis::PvlObject::Groups(), Isis::PvlObject::HasGroup(), Isis::PvlContainer::HasKeyword(), Isis::PvlObject::HasKeyword(), Isis::PvlObject::HasObject(), Isis::PvlContainer::Keywords(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlObject::Object(), Isis::PvlObject::Objects(), Isis::Pvl::Pvl(), Isis::iException::User, Isis::PvlContainer::ValidateAllKeywords(), Isis::PvlGroup::ValidateGroup(), and Isis::PvlObject::ValidateObject().
void Isis::PvlContainer::ValidateRepeatOption | ( | PvlKeyword & | pPvlTmplKwrd, | |
PvlContainer & | pPvlCont | |||
) | [protected, inherited] |
Validate the Repeat Option for a Keyword.
Validate Repeat Option in the Template Group.
This option indicates that a particular keyname can be repeated several times
pPvlTmplKwrd | - Template Keyword wit | |
pPvlCont | - Container with all the Keywords |
References Isis::PvlContainer::DeleteKeyword(), Isis::PvlContainer::FindKeyword(), Isis::PvlContainer::HasKeyword(), Isis::PvlContainer::Keywords(), Isis::PvlKeyword::Name(), and Isis::PvlKeyword::ValidateKeyword().
Referenced by Isis::PvlContainer::ValidateAllKeywords().
void Isis::Pvl::Write | ( | const std::string & | file | ) | [inherited] |
Opens and writes PVL information to a file and handles the end of line sequence.
file | Name of the file to create. The method will overwrite any existing file. |
Isis::iException::Io |
References _FILEINFO_, Isis::Filename::Expanded(), Isis::Message::FileCreate(), Isis::PvlFormat::FormatEOL(), Isis::PvlContainer::GetFormat(), Isis::iException::Io, Isis::iException::Message(), Isis::PvlContainer::SetFormat(), and Isis::Pvl::Terminator().
Referenced by Isis::Stretch::Save(), Isis::UserInterface::SaveHistory(), Isis::MosaicController::saveProject(), and Isis::ControlNetVersioner::Write().
std::ostream& operator<< | ( | std::ostream & | os, | |
Isis::PvlObject & | object | |||
) | [friend, inherited] |
std::ostream& operator<< | ( | std::ostream & | os, | |
Isis::Pvl & | pvl | |||
) | [friend, inherited] |
This stream will not handle the end of line sequence.
os | ||
pvl |
std::istream& operator>> | ( | std::istream & | is, | |
PvlObject & | result | |||
) | [friend, inherited] |
This method reads a PvlObject from the input stream.
std::istream& operator>> | ( | std::istream & | is, | |
Pvl & | pvl | |||
) | [friend, inherited] |
Reads keywords from the instream and appends them to the Pvl object.
is | A specified instream to read from. | |
pvl | The Pvl object to append to. |
iException | Invalid PVL format specified. |
std::string Isis::PvlContainer::p_filename [protected, inherited] |
This contains the filename used to initialize the pvl object.
If the object was not initialized using a filename the string is empty.
Referenced by Isis::PvlObject::DeleteGroup(), Isis::PvlContainer::DeleteKeyword(), Isis::PvlObject::DeleteObject(), Isis::PvlContainer::Filename(), Isis::PvlObject::FindGroup(), Isis::PvlObject::FindKeyword(), Isis::PvlContainer::FindKeyword(), Isis::PvlObject::FindObject(), Isis::PvlContainer::Init(), Isis::PvlContainer::operator=(), Isis::Pvl::Read(), and Isis::PvlContainer::SetFilename().
PvlContainer* Isis::PvlContainer::p_formatTemplate [protected, inherited] |
QList<PvlKeyword> Isis::PvlContainer::p_keywords [protected, inherited] |
This is the vector of PvlKeywords the container is holding.
Referenced by Isis::PvlContainer::AddKeyword(), Isis::PvlContainer::Begin(), Isis::PvlContainer::CleanDuplicateKeywords(), Isis::PvlContainer::Clear(), Isis::PvlContainer::DeleteKeyword(), Isis::PvlContainer::End(), Isis::PvlContainer::Keywords(), Isis::PvlContainer::operator=(), and Isis::PvlContainer::operator[]().
PvlKeyword Isis::PvlContainer::p_name [protected, inherited] |
This is the name keyword.
Referenced by Isis::PvlContainer::AddComment(), Isis::PvlContainer::Comment(), Isis::PvlContainer::Comments(), Isis::PvlContainer::GetFormat(), Isis::PvlContainer::GetNameKeyword(), Isis::PvlContainer::Indent(), Isis::PvlContainer::IsNamed(), Isis::PvlContainer::Name(), Isis::PvlContainer::operator=(), Isis::PvlContainer::PvlContainer(), Isis::PvlContainer::SetFormat(), Isis::PvlContainer::SetIndent(), Isis::PvlContainer::SetName(), and Isis::PvlContainer::Type().