IsisDlm
Version 0.2
|
#include <iFile.h>
Public Types | |
typedef unsigned long | Iid |
Definition of ID type. | |
Public Member Functions | |
std::string | name () const |
Iid | getId () const |
bool | readOnly () const |
Isis::Cube * | Cube () const |
Isis::Pvl * | Pvl () const |
void | Flush () |
Protected Member Functions | |
iFile () | |
iFile (const std::string &filename, Isis::Cube *cube, bool readonly=true) | |
iFile (const std::string &filename, Isis::Pvl *pvl, bool readonly=true) | |
virtual | ~iFile () |
Private Member Functions | |
iFile (const iFile &f) | |
iFile | operator= (const iFile &f) |
Iid | new_id () |
Private Attributes | |
Iid | _iid |
Unique identifier. | |
bool | _readonly |
Input/Output status. | |
Isis::Cube * | _cube |
ISIS cube file definition/pointer. | |
Isis::Pvl * | _pvl |
PVL label/file pointer. | |
std::string | _filename |
Name of file. | |
Static Private Attributes | |
static Iid | _iid_counter = 0 |
Maintains unique id. | |
Friends | |
class | FileRepository |
Specification of internal ISIS elements for tracking purposes This specification tracks an ISIS cube, its label, its identifier and a good bit of information regarding its status.
This structure supports just a PVL label that is independant of an ISIS cube file. This allows use cases for creating and maintaining only PVL files.
Version:
typedef unsigned long ISISDLM::iFile::Iid |
Definition of ID type.
ISISDLM::iFile::iFile | ( | ) | [protected] |
ISISDLM::iFile::iFile | ( | const std::string & | filename, |
Isis::Cube * | cube, | ||
bool | readonly = true |
||
) | [protected] |
ISISDLM::iFile::iFile | ( | const std::string & | filename, |
Isis::Pvl * | pvl, | ||
bool | readonly = true |
||
) | [protected] |
ISISDLM::iFile::~iFile | ( | ) | [protected, virtual] |
ISISDLM::iFile::iFile | ( | const iFile & | f | ) | [private] |
Isis::Cube* ISISDLM::iFile::Cube | ( | ) | const [inline] |
References _cube.
Referenced by ISISDLM::isis_create(), ISISDLM::isis_query(), ISISDLM::isis_read_brick(), ISISDLM::isis_read_image(), ISISDLM::isis_write_image(), and ISISDLM::show_file_data().
void ISISDLM::iFile::Flush | ( | ) |
Iid ISISDLM::iFile::getId | ( | ) | const [inline] |
References _iid.
Referenced by ISISDLM::FileRepository::addCube(), ISISDLM::FileRepository::addPvl(), and ISISDLM::show_file_data().
std::string ISISDLM::iFile::name | ( | ) | const [inline] |
References _filename.
Referenced by ISISDLM::isis_query(), ISISDLM::isis_read_blob(), ISISDLM::isis_read_brick(), ISISDLM::isis_read_image(), ISISDLM::isis_write_image(), and ISISDLM::show_file_data().
Iid ISISDLM::iFile::new_id | ( | ) | [inline, private] |
References _iid_counter.
Isis::Pvl * ISISDLM::iFile::Pvl | ( | ) | const |
Referenced by ISISDLM::isis_get_key(), and ISISDLM::isis_query_key().
bool ISISDLM::iFile::readOnly | ( | ) | const [inline] |
References _readonly.
friend class FileRepository [friend] |
Isis::Cube* ISISDLM::iFile::_cube [private] |
std::string ISISDLM::iFile::_filename [private] |
Iid ISISDLM::iFile::_iid [private] |
Unique identifier.
Referenced by getId().
iFile::Iid ISISDLM::iFile::_iid_counter = 0 [static, private] |
Isis::Pvl* ISISDLM::iFile::_pvl [private] |
bool ISISDLM::iFile::_readonly [private] |
Input/Output status.
Referenced by Flush(), and readOnly().