|
Isis 3.0 Object Programmers' Reference |
Home |
#include <CubeAttribute.h>
Inheritance diagram for Isis::CubeAttribute:


This class provides common functionality for the CubeAttributeInput and CubeAttributeOutput classes. These classes are used to parse and manipulate attribute information attached to the end of a cube filename.
For internal use only.
Definition at line 171 of file CubeAttribute.h.
Public Member Functions | |
| CubeAttribute () | |
| Constructs an empty CubeAttribute. | |
| CubeAttribute (const Isis::iString &att) | |
| Constructs a CubeAttribute using the argument. | |
| virtual | ~CubeAttribute () |
| Destroys the object. | |
| virtual void | Write (std::ostream &ostr) const |
| Write the attributes to a stream. | |
| virtual void | Write (std::string &str) const |
| Write the attributes to a string. | |
| virtual void | Write (Isis::Pvl &pvl) const |
| Write the attributes to an Isis::Pvl. | |
Protected Attributes | |
| Isis::iString | p_attribute |
| Contains the unparsed attributes with the filename stripped. | |
| Isis::CubeAttribute::CubeAttribute | ( | ) |
Constructs an empty CubeAttribute.
Definition at line 34 of file CubeAttribute.cpp.
References p_attribute.
| Isis::CubeAttribute::CubeAttribute | ( | const Isis::iString & | att | ) |
Constructs a CubeAttribute using the argument.
Constructs a CubeAttribute and initializes it with the contents of the string parameter. Minimal error checking is done to see if the string looks like an attribute.
| att | A string containing the file attributes. All characters before the first "+" are assumed to be the filename and are ignored. |
Definition at line 39 of file CubeAttribute.cpp.
References _FILEINFO_, Isis::iException::Message(), p_attribute, and pos.
| Isis::CubeAttribute::~CubeAttribute | ( | ) | [virtual] |
| void Isis::CubeAttribute::Write | ( | Isis::Pvl & | pvl | ) | const [virtual] |
Write the attributes to an Isis::Pvl.
| pvl | The pvl to write the attributes to |
Reimplemented in Isis::CubeAttributeInput, and Isis::CubeAttributeOutput.
Definition at line 74 of file CubeAttribute.cpp.
References p_attribute, and pvl().
| void Isis::CubeAttribute::Write | ( | std::string & | str | ) | const [virtual] |
Write the attributes to a string.
| str | The string to write the attributes to |
Reimplemented in Isis::CubeAttributeInput, and Isis::CubeAttributeOutput.
Definition at line 69 of file CubeAttribute.cpp.
References p_attribute.
| void Isis::CubeAttribute::Write | ( | std::ostream & | ostr | ) | const [virtual] |
Write the attributes to a stream.
| ostr | The stream to write the attributes to |
Reimplemented in Isis::CubeAttributeInput, and Isis::CubeAttributeOutput.
Definition at line 64 of file CubeAttribute.cpp.
References p_attribute.
Isis::iString Isis::CubeAttribute::p_attribute [protected] |
Contains the unparsed attributes with the filename stripped.
Definition at line 220 of file CubeAttribute.h.
Referenced by CubeAttribute(), Isis::CubeAttributeInput::CubeAttributeInput(), Isis::CubeAttributeOutput::CubeAttributeOutput(), and Write().