USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::PvlGroup Class Reference
[Parsing]

#include <PvlGroup.h>

Inheritance diagram for Isis::PvlGroup:

Inheritance graph
[legend]
Collaboration diagram for Isis::PvlGroup:

Collaboration graph
[legend]
List of all members.

Detailed Description

Contains multiple PvlContainers.

Contains multiple PvlContainers so that keyword-value pairs can be organized in specific groups. For example, a PvlGroup would be used to group all data from a particular mission together. A PvlGroup object will also organize (indent) objects on output.

Author:
2002-10-11 Jeff Anderson

For internal use only.

History:
2005-04-04 Leah Dahmer wrote class documentation.
History:
2006-04-21 Jacob Danton Added format templates abilities.
History:
2006-09-11 Stuart Sides Added formatting ability
History:
2008-07-02 Steven Lambright Added const functionality and fixed +=
History:
2008-07-02 Steven Lambright Updated to compensate for PvlKeyword no longer being a parent
History:
2008-09-30 Christopher Austin Replaced all std::endl in the << operator with PvlFormat.FormatEOL()
Todo:
2005-04-04 Needs coded example.

Definition at line 52 of file PvlGroup.h.

Public Types

typedef std::vector< PvlKeyword
>::iterator 
PvlKeywordIterator
 The keyword iterator.
typedef std::vector< PvlKeyword
>::const_iterator 
ConstPvlKeywordIterator
 The const keyword iterator.
 Append
 Replace
enum  InsertMode { Append, Replace }
 Contains both modes: Append or Replace. More...

Public Member Functions

 PvlGroup ()
 Creates a blank PvlGroup object.
 PvlGroup (const std::string &name)
 Creates a PvlGroup object with a name.
 PvlGroup (std::vector< Isis::PvlToken > &token, std::vector< Isis::PvlToken >::iterator &pos)
 Creates a PvlGroup object using a vector of tokens and an iterator.
bool operator== (const PvlGroup &group) const
 Whenever the '==' operator is used on a PvlGroup object, it will call the StringEqual() method.
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)
 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 Clear ()
 Clears PvlKeywords.
void AddKeyword (const PvlKeyword &keyword, const InsertMode mode=Append)
 Add a keyword to the PvlContainer object.
PvlKeywordIterator AddKeyword (const PvlKeyword &keyword, PvlKeywordIterator pos)
 Insert a keyword at the specified iterator position.
void operator+= (const PvlKeyword &keyword)
 When you use the += operator with a PvlKeyword, it will call the AddKeyword() method.
PvlKeywordFindKeyword (const std::string &name)
 Find a keyword with a specified name.
const PvlKeywordFindKeyword (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.
PvlKeywordoperator[] (const std::string &name)
 When you use the [] operator with a (string) name, it will call the FindKeyword() method.
PvlKeywordoperator[] (const int index)
 Return the PvlKeyword object at the specified index.
PvlKeywordoperator[] (const char *name)
 When you use the [] operator with a (char) name, it will call the FindKeyword() method.
const PvlKeywordoperator[] (const std::string &name) const
 When you use the [] operator with a (string) name, it will call the FindKeyword() method.
const PvlKeywordoperator[] (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.
bool HasKeyword (const std::string &name) const
 Check to see if a keyword exists.
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.
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.
void SetFormatTemplate (PvlContainer &ref)
bool HasFormatTemplate ()
PvlContainerFormatTemplate ()
PvlFormatGetFormat ()
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)
PvlKeywordGetNameKeyword ()
const PvlKeywordGetNameKeyword () const

Protected Member Functions

void Init ()
 Sets the filename to blank.
void SetFilename (const std::string &filename)
 Sets the filename to the specified string.

Protected Attributes

std::string p_filename
 This contains the filename used to initialize the pvl object.
PvlKeyword p_name
 This is the name keyword.
std::vector< PvlKeywordp_keywords
 This is the vector of PvlKeywords the container is holding.
PvlContainerp_formatTemplate


Member Typedef Documentation

typedef std::vector<PvlKeyword>::const_iterator Isis::PvlContainer::ConstPvlKeywordIterator [inherited]

The const keyword iterator.

Definition at line 150 of file PvlContainer.h.

typedef std::vector<PvlKeyword>::iterator Isis::PvlContainer::PvlKeywordIterator [inherited]

The keyword iterator.

Definition at line 147 of file PvlContainer.h.


Member Enumeration Documentation

enum Isis::PvlContainer::InsertMode [inherited]

Contains both modes: Append or Replace.

Definition at line 91 of file PvlContainer.h.


Constructor & Destructor Documentation

Isis::PvlGroup::PvlGroup (  ) 

Creates a blank PvlGroup object.

Definition at line 28 of file PvlGroup.cpp.

Isis::PvlGroup::PvlGroup ( const std::string &  name  ) 

Creates a PvlGroup object with a name.

Parameters:
name The group name.

Definition at line 34 of file PvlGroup.cpp.

Isis::PvlGroup::PvlGroup ( std::vector< Isis::PvlToken > &  tokens,
std::vector< Isis::PvlToken >::iterator &  pos 
)

Creates a PvlGroup object using a vector of tokens and an iterator.

Parameters:
tokens The vector of PvlTokens to use.
pos The iterator to use.
Exceptions:
iException::Message 

Definition at line 45 of file PvlGroup.cpp.

References _FILEINFO_, Isis::PvlKeyword::AddComments(), Isis::PvlContainer::AddKeyword(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_name, Isis::PvlContainer::SetName(), and Isis::PvlKeyword::StringEqual().


Member Function Documentation

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.

Parameters:
key Keyword to insert
pos Iterator position where to insert the new keyword
Returns:
PvlContainer::PvlKeywordIterator Returns the position of the inserted keyword per the STL vector documentation.

Definition at line 217 of file PvlContainer.cpp.

References Isis::PvlContainer::p_keywords.

void Isis::PvlContainer::AddKeyword ( const PvlKeyword keyword,
const InsertMode  mode = Append 
) [inherited]

Add a keyword to the PvlContainer object.

Parameters:
keyword The PvlKeyword object to append.
mode Using the InsertMode value of Append.

Definition at line 188 of file PvlContainer.cpp.

References Isis::PvlContainer::FindKeyword(), Isis::PvlContainer::HasKeyword(), Isis::PvlKeyword::Name(), and Isis::PvlContainer::p_keywords.

Referenced by Isis::PvlFormat::Add(), Isis::NaifStatus::CheckErrors(), Isis::CameraFactory::Create(), Isis::ProjectionFactory::CreateForCube(), Isis::GetEnviromentInfo(), Isis::CameraPointInfo::GetPointInfo(), Isis::GetUnameInfo(), Isis::PvlContainer::operator+=(), Isis::operator<<(), Isis::operator>>(), Isis::StripPolygonSeeder::PluginParameters(), Isis::PolygonSeeder::PluginParameters(), Isis::LimitPolygonSeeder::PluginParameters(), Isis::GridPolygonSeeder::PluginParameters(), PvlGroup(), Isis::PvlObject::PvlObject(), and Isis::Stretch::Save().

ConstPvlKeywordIterator Isis::PvlContainer::Begin (  )  const [inline, inherited]

Return the const beginning iterator.

Returns:
The const beginning iterator.

Definition at line 174 of file PvlContainer.h.

References Isis::PvlContainer::p_keywords.

PvlKeywordIterator Isis::PvlContainer::Begin (  )  [inline, inherited]

Return the beginning iterator.

Returns:
The beginning iterator.

Definition at line 168 of file PvlContainer.h.

References Isis::PvlContainer::p_keywords.

Referenced by Isis::PvlContainer::DeleteKeyword(), Isis::PvlObject::FindKeyword(), Isis::PvlContainer::FindKeyword(), Isis::PvlObject::HasKeyword(), Isis::PvlContainer::HasKeyword(), Isis::PvlTranslationTable::InputGroup(), Isis::DbProfile::loadkeys(), and Isis::PvlTranslationTable::Translate().

void Isis::PvlContainer::Clear (  )  [inline, inherited]

Clears PvlKeywords.

Reimplemented in Isis::PvlObject.

Definition at line 89 of file PvlContainer.h.

References Isis::PvlContainer::p_keywords.

Referenced by Isis::PvlObject::Clear(), and Isis::Cube::Cube().

void Isis::PvlContainer::DeleteKeyword ( const int  index  )  [inherited]

Remove the specified keyword.

Parameters:
index The index of the keyword to remove.
Exceptions:
iException::Pvl Keyword doesn't exist.

Definition at line 125 of file PvlContainer.cpp.

References _FILEINFO_, Isis::PvlContainer::Begin(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_filename, Isis::PvlContainer::p_keywords, and Isis::PvlContainer::Type().

void Isis::PvlContainer::DeleteKeyword ( const std::string &  name  )  [inherited]

Remove a specified keyword.

Parameters:
name The name of the keyword to remove.
Exceptions:
iException::Pvl Keyword doesn't exist.

Definition at line 107 of file PvlContainer.cpp.

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, and Isis::PvlContainer::Type().

Referenced by IsisAml::CommandLine(), Isis::Blob::Find(), Isis::Preference::Load(), Isis::ObliqueCylindrical::ObliqueCylindrical(), Isis::PvlContainer::operator-=(), Isis::ProcessMapMosaic::SetOutputCube(), Isis::Projection::TargetRadii(), Isis::Blob::Write(), and Isis::Table::WriteInit().

ConstPvlKeywordIterator Isis::PvlContainer::End (  )  const [inline, inherited]

Return the const ending iterator.

Returns:
The const ending iterator.

Definition at line 186 of file PvlContainer.h.

References Isis::PvlContainer::p_keywords.

PvlKeywordIterator Isis::PvlContainer::End (  )  [inline, inherited]

Return the ending iterator.

Returns:
The ending iterator.

Definition at line 180 of file PvlContainer.h.

References Isis::PvlContainer::p_keywords.

Referenced by Isis::PvlContainer::DeleteKeyword(), Isis::PvlObject::FindKeyword(), Isis::PvlContainer::FindKeyword(), Isis::PvlObject::HasKeyword(), Isis::PvlContainer::HasKeyword(), Isis::PvlTranslationTable::InputGroup(), Isis::DbProfile::loadkeys(), and Isis::PvlTranslationTable::Translate().

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.

Returns:
The filename.

Definition at line 208 of file PvlContainer.h.

References Isis::PvlContainer::p_filename.

Referenced by Isis::PvlObject::AddObject(), Isis::SerialNumber::Compose(), Isis::ObservationNumber::Compose(), Isis::ProjectionFactory::CreateForCube(), Isis::ProjectionFactory::CreateFromCube(), Isis::Mex::HrscCamera::HrscCamera(), Isis::UniversalGroundMap::Init(), Isis::PvlTranslationTable::InputDefault(), Isis::PvlTranslationTable::InputGroup(), Isis::PvlTranslationTable::InputKeyword(), Isis::PvlTranslationManager::InputSize(), Isis::PvlTranslationManager::InputUnits(), Isis::PvlTranslationManager::InputValue(), Isis::PvlTranslationTable::IsAuto(), Isis::PvlTranslationTable::IsOptional(), Isis::PvlTranslationTable::OutputName(), Isis::PvlTranslationTable::OutputPosition(), Isis::StripPolygonSeeder::Parse(), Isis::PolygonSeeder::Parse(), Isis::LimitPolygonSeeder::Parse(), Isis::InterestOperator::Parse(), Isis::GridPolygonSeeder::Parse(), Isis::AutoReg::Parse(), Isis::PvlEditDialog::PvlEditDialog(), Isis::Spice::Spice(), and Isis::PvlTranslationTable::Translate().

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.

Parameters:
name The name of the keyword.
beg The beginning iterator.
end The ending iterator.
Returns:
The keyword index.

Definition at line 350 of file PvlContainer.cpp.

PvlContainer::PvlKeywordIterator Isis::PvlContainer::FindKeyword ( const std::string &  name,
PvlContainer::PvlKeywordIterator  beg,
PvlContainer::PvlKeywordIterator  end 
) [inherited]

Find the index of a keyword, using iterators.

Parameters:
name The name of the keyword.
beg The beginning iterator.
end The ending iterator.
Returns:
The keyword index.

Definition at line 335 of file PvlContainer.cpp.

const Isis::PvlKeyword & Isis::PvlContainer::FindKeyword ( const std::string &  name  )  const [inherited]

Find a keyword with a specified name.

Parameters:
name The name of the keyword to look for.
Returns:
The PvlKeyword object.
Exceptions:
iException::Pvl The keyword doesn't exist.

Definition at line 90 of file PvlContainer.cpp.

References _FILEINFO_, Isis::PvlContainer::Begin(), Isis::PvlContainer::End(), Isis::PvlContainer::FindKeyword(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_filename, and Isis::PvlContainer::Type().

Isis::PvlKeyword & Isis::PvlContainer::FindKeyword ( const std::string &  name  )  [inherited]

Find a keyword with a specified name.

Parameters:
name The name of the keyword to look for.
Returns:
The PvlKeyword object.
Exceptions:
iException::Pvl The keyword doesn't exist.

Definition at line 72 of file PvlContainer.cpp.

References _FILEINFO_, Isis::PvlContainer::Begin(), Isis::PvlContainer::End(), Isis::iException::Message(), Isis::PvlContainer::Name(), Isis::PvlContainer::p_filename, and Isis::PvlContainer::Type().

Referenced by Isis::PvlContainer::AddKeyword(), Isis::PvlContainer::DeleteKeyword(), Isis::PvlObject::FindKeyword(), Isis::PvlContainer::FindKeyword(), Isis::PvlObject::HasKeyword(), Isis::PvlContainer::HasKeyword(), Isis::PvlTranslationTable::InputGroup(), Isis::Stretch::Load(), Isis::PvlContainer::operator[](), Qisis::MosaicWidget::readProject(), Isis::ReseauDistortionMap::ReseauDistortionMap(), Qisis::MosaicItem::setUpItem(), Isis::ProcessExportPds::StandardAllMapping(), Isis::Projection::TargetRadii(), and Isis::PvlTranslationTable::Translate().

bool Isis::PvlContainer::HasKeyword ( const std::string &  name  )  const [inherited]

Check to see if a keyword exists.

Parameters:
name The name of the keyword to check for.
Returns:
True if the keyword exists, false if it doesn't.

Definition at line 145 of file PvlContainer.cpp.

References Isis::PvlContainer::Begin(), Isis::PvlContainer::End(), and Isis::PvlContainer::FindKeyword().

Referenced by Isis::PvlContainer::AddKeyword(), Isis::Albedo::Albedo(), Isis::AlbedoAtm::AlbedoAtm(), Isis::Anisotropic2::Anisotropic2(), Isis::AtmosModel::AtmosModel(), Isis::Camera::Camera(), Isis::CameraFactory::CameraVersion(), IsisAml::CommandLine(), Isis::CameraFactory::Create(), Isis::Equirectangular::Equirectangular(), Isis::Filename::Expand(), KernelDb::FindAll(), Isis::Camera::GroundRange(), Isis::HapkeAtm1::HapkeAtm1(), Isis::HapkeAtm2::HapkeAtm2(), Isis::HapkeHen::HapkeHen(), Isis::HapkePhotoModel::HapkePhotoModel(), Isis::Spice::HasKernels(), HiLab::HiLab(), Isis::IdealCamera::IdealCamera(), Isis::PvlTranslationTable::InputDefault(), Isis::PvlTranslationTable::InputGroup(), Isis::PvlTranslationManager::InputHasKeyword(), Isis::PvlTranslationTable::InputKeyword(), Isis::PvlTranslationManager::InputSize(), Isis::PvlTranslationManager::InputUnits(), Isis::PvlTranslationManager::InputValue(), Isis::PvlTranslationTable::IsAuto(), Isis::PvlTranslationTable::IsOptional(), Isis::Isotropic1::Isotropic1(), Isis::Isotropic2::Isotropic2(), Isis::LambertConformal::LambertConformal(), Isis::Preference::Load(), Isis::Lo::LoMediumCamera::LoMediumCamera(), Isis::LunarLambert::LunarLambert(), Isis::Projection::Mapping(), Isis::Mercator::Mercator(), Isis::iException::Message(), Isis::Minnaert::Minnaert(), Isis::Mixed::Mixed(), Isis::MoonAlbedo::MoonAlbedo(), Isis::ObliqueCylindrical::ObliqueCylindrical(), Isis::operator<<(), Isis::Orthographic::Orthographic(), Isis::PvlTranslationTable::OutputName(), Isis::PvlTranslationTable::OutputPosition(), Isis::StripPolygonSeeder::Parse(), Isis::PolygonSeeder::Parse(), Isis::LimitPolygonSeeder::Parse(), Isis::InterestOperator::Parse(), Isis::GridPolygonSeeder::Parse(), Isis::AutoReg::Parse(), Isis::PhotoModel::PhotoModel(), Isis::PointPerspective::PointPerspective(), Isis::PolarStereographic::PolarStereographic(), Isis::Projection::Projection(), Isis::Mgs::MocLabels::ReadLabels(), Isis::AutoReg::RegTemplate(), Isis::Sensor::Sensor(), Isis::ProcessMapMosaic::SetOutputCube(), Qisis::MosaicItem::setUpItem(), Isis::Shade::Shade(), Isis::ShadeAtm::ShadeAtm(), Isis::SimpleCylindrical::SimpleCylindrical(), Isis::Sinusoidal::Sinusoidal(), Isis::Spice::Spice(), Isis::Projection::TargetRadii(), Isis::Odyssey::ThemisIrCamera::ThemisIrCamera(), Isis::Topo::Topo(), Isis::TopoAtm::TopoAtm(), Isis::PvlTranslationTable::Translate(), Isis::PvlTranslationManager::Translate(), Isis::ProcessImportPds::TranslateIsis2Instrument(), and Isis::TransverseMercator::TransverseMercator().

void Isis::PvlContainer::Init (  )  [protected, inherited]

Sets the filename to blank.

Reimplemented in Isis::Pvl.

Definition at line 60 of file PvlContainer.cpp.

References Isis::PvlContainer::p_filename, and Isis::PvlContainer::p_formatTemplate.

Referenced by Isis::PvlContainer::PvlContainer().

bool Isis::PvlContainer::IsNamed ( const std::string &  match  )  [inline, inherited]

Returns whether the given string is equal to the container name or not.

Parameters:
match The string to compare to the name.
Returns:
True if the name and string are the same, false if they are not.

Definition at line 74 of file PvlContainer.h.

References Isis::PvlContainer::p_name, and Isis::PvlKeyword::StringEqual().

Referenced by Isis::IsBlob(), Isis::ControlPoint::Load(), Isis::ControlNet::ReadControl(), Isis::Table::ReadInit(), Isis::Process::SetOutputCube(), and Isis::Gui::UpdateHistory().

int Isis::PvlContainer::Keywords (  )  const [inline, inherited]

Returns the number of keywords contained in the PvlContainer.

Returns:
The number of keywords.

Definition at line 86 of file PvlContainer.h.

References Isis::PvlContainer::p_keywords.

Referenced by Isis::PvlFormat::Add(), Isis::ObservationNumber::FindObservationTranslation(), Isis::SerialNumber::FindSerialTranslation(), KernelDb::GetFile(), Isis::operator<<(), Isis::Gui::UpdateHistory(), and Qisis::PlotTool::updateTool().

std::string Isis::PvlContainer::Name (  )  const [inline, inherited]

Returns the container name.

Returns:
The container name.

Definition at line 67 of file PvlContainer.h.

References Isis::PvlContainer::p_name.

Referenced by Isis::PvlFormat::Add(), Isis::PvlObject::DeleteGroup(), Isis::PvlContainer::DeleteKeyword(), Isis::PvlObject::DeleteObject(), Isis::UserInterface::EvaluateOption(), Isis::PvlContainer::FindKeyword(), KernelDb::GetFile(), Isis::PvlTranslationTable::InputGroup(), Isis::operator<<(), Isis::PvlObject::operator==(), operator==(), Isis::Cube::PutGroup(), PvlGroup(), Isis::PvlObject::PvlObject(), Isis::Process::SetOutputCube(), and Isis::Blob::Write().

void Isis::PvlContainer::operator+= ( const PvlKeyword keyword  )  [inline, inherited]

When you use the += operator with a PvlKeyword, it will call the AddKeyword() method.

Parameters:
keyword The PvlKeyword to be added.

Definition at line 106 of file PvlContainer.h.

References Isis::PvlContainer::AddKeyword().

void Isis::PvlContainer::operator-= ( const PvlKeyword key  )  [inline, inherited]

When you use the -= operator with a PvlKeyword object, it will call the DeleteKeyword() method.

Parameters:
key The PvlKeyword object to remove.

Definition at line 202 of file PvlContainer.h.

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.

Parameters:
name The name of the keyword to remove.

Definition at line 196 of file PvlContainer.h.

References Isis::PvlContainer::DeleteKeyword().

bool Isis::PvlGroup::operator== ( const PvlGroup group  )  const [inline]

Whenever the '==' operator is used on a PvlGroup object, it will call the StringEqual() method.

This returns a boolean value.

Parameters:
group The PvlGroup object to compare.
Returns:
True if the other PvlGroup has the same name as this one, false if not.

Definition at line 66 of file PvlGroup.h.

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.

Parameters:
name The name of the keyword to find.

Definition at line 141 of file PvlContainer.h.

References Isis::PvlContainer::operator[]().

const Isis::PvlKeyword & Isis::PvlContainer::operator[] ( const int  index  )  const [inherited]

Return the PvlKeyword object at the specified index.

Parameters:
index The index to use.
Returns:
The PvlKeyword at the specified index.
Exceptions:
iException::Message The index is out of bounds.

Definition at line 173 of file PvlContainer.cpp.

References _FILEINFO_, Isis::Message::ArraySubscriptNotInRange(), Isis::iException::Message(), and Isis::PvlContainer::p_keywords.

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.

Parameters:
name The name of the keyword to find.

Definition at line 133 of file PvlContainer.h.

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.

Parameters:
name The name of the keyword to find.

Definition at line 122 of file PvlContainer.h.

References Isis::PvlContainer::operator[]().

Isis::PvlKeyword & Isis::PvlContainer::operator[] ( const int  index  )  [inherited]

Return the PvlKeyword object at the specified index.

Parameters:
index The index to use.
Returns:
The PvlKeyword at the specified index.
Exceptions:
iException::Message The index is out of bounds.

Definition at line 158 of file PvlContainer.cpp.

References _FILEINFO_, Isis::Message::ArraySubscriptNotInRange(), Isis::iException::Message(), and Isis::PvlContainer::p_keywords.

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.

Parameters:
name The name of the keyword to find.

Definition at line 114 of file PvlContainer.h.

References Isis::PvlContainer::FindKeyword().

Referenced by Isis::PvlContainer::operator[]().

void Isis::PvlContainer::SetFilename ( const std::string &  filename  )  [inline, protected, inherited]

Sets the filename to the specified string.

Parameters:
filename The new filename to use.

Definition at line 249 of file PvlContainer.h.

References Isis::PvlContainer::p_filename.

void Isis::PvlContainer::SetName ( const std::string &  name  )  [inline, inherited]

Set the name of the container.

Definition at line 62 of file PvlContainer.h.

References Isis::PvlContainer::p_name, and Isis::PvlKeyword::SetValue().

Referenced by Isis::Blob::Blob(), Isis::PvlContainer::PvlContainer(), PvlGroup(), and Isis::PvlObject::PvlObject().

std::string Isis::PvlContainer::Type (  )  const [inline, inherited]

Returns the container type.

Returns:
The container type.

Definition at line 81 of file PvlContainer.h.

References Isis::PvlKeyword::Name(), and Isis::PvlContainer::p_name.

Referenced by Isis::PvlObject::DeleteGroup(), Isis::PvlContainer::DeleteKeyword(), Isis::PvlObject::DeleteObject(), Isis::PvlContainer::FindKeyword(), and Isis::operator<<().


Member Data Documentation

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.

Definition at line 231 of file PvlContainer.h.

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::Pvl::Init(), Isis::Pvl::Read(), and Isis::PvlContainer::SetFilename().

std::vector<PvlKeyword> Isis::PvlContainer::p_keywords [protected, inherited]

This is the vector of PvlKeywords the container is holding.

Definition at line 238 of file PvlContainer.h.

Referenced by Isis::PvlContainer::AddKeyword(), Isis::PvlContainer::Begin(), Isis::PvlContainer::Clear(), Isis::PvlContainer::DeleteKeyword(), Isis::PvlContainer::End(), Isis::PvlContainer::Keywords(), and Isis::PvlContainer::operator[]().

PvlKeyword Isis::PvlContainer::p_name [protected, inherited]

This is the name keyword.

Definition at line 237 of file PvlContainer.h.

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::PvlContainer(), PvlGroup(), Isis::PvlObject::PvlObject(), Isis::PvlContainer::SetFormat(), Isis::PvlContainer::SetIndent(), Isis::PvlContainer::SetName(), and Isis::PvlContainer::Type().


The documentation for this class was generated from the following files: