#include <FileDescriptor.h>

Public Member Functions | |
| virtual void | setFilename (const std::string &filename)=0 |
| virtual void | setFilename (const Filename &filename)=0 |
| virtual const Filename & | getFilename () const =0 |
| virtual void | setDatasetLocation (const std::string &datasetLocation)=0 |
| virtual const std::string & | getDatasetLocation () const =0 |
| virtual void | setEndian (EndianType endian)=0 |
| virtual EndianType | getEndian () const =0 |
| virtual FileDescriptor * | copy () const =0 |
| virtual bool | clone (const FileDescriptor *pFileDescriptor)=0 |
| virtual void | addToMessageLog (Message *pMessage) const =0 |
Static Public Member Functions | |
| static const std::string & | signalFilenameChanged () |
| static const std::string & | signalDatasetLocationChanged () |
| static const std::string & | signalEndianChanged () |
Protected Member Functions | |
| virtual | ~FileDescriptor () |
A file descriptor contains data that describes how a data element is stored on-disk, including the filename. There are two primary uses for a file descriptor:
If a DataElement is created by an algorithm and was not imported from a file, the element's data descriptor will have a NULL file descriptor.
This subclass of Subject will notify upon the following conditions:
Definition at line 49 of file FileDescriptor.h.
| virtual FileDescriptor::~FileDescriptor | ( | ) | [protected, virtual] |
This should be destroyed by calling ObjectFactory::destroyObject.
Definition at line 216 of file FileDescriptor.h.
| static const std::string& FileDescriptor::signalFilenameChanged | ( | ) | [static] |
Emitted when the filename changes with boost::any<Filename*> containing a pointer to the new filename.
Definition at line 59 of file FileDescriptor.h.
| static const std::string& FileDescriptor::signalDatasetLocationChanged | ( | ) | [static] |
Emitted when the data set location changes with boost::any<std::string> containing the new data set location.
Definition at line 67 of file FileDescriptor.h.
| static const std::string& FileDescriptor::signalEndianChanged | ( | ) | [static] |
Emitted when the endian changes with boost::any<EndianType> containing the new endian value.
Definition at line 76 of file FileDescriptor.h.
| virtual void FileDescriptor::setFilename | ( | const std::string & | filename | ) | [pure virtual] |
Sets the location on disk for the file data.
| filename | The location on disk of the file data. |
| virtual void FileDescriptor::setFilename | ( | const Filename & | filename | ) | [pure virtual] |
Sets the location on disk for the file data.
| filename | The Filename object containing the location on disk of the file data. |
| virtual const Filename& FileDescriptor::getFilename | ( | ) | const [pure virtual] |
Returns the location on disk for the file data.
| virtual void FileDescriptor::setDatasetLocation | ( | const std::string & | datasetLocation | ) | [pure virtual] |
Sets the location of the data set within the file.
The data set location is a string representation of where the data set resides within the file returned by getFilename(). This is useful when a single file contains multiple data sets. The default value is an empty string.
| datasetLocation | The string representation of where the data set resides within the file on disk. |
| virtual const std::string& FileDescriptor::getDatasetLocation | ( | ) | const [pure virtual] |
Returns the location of the data set within the file.
| virtual void FileDescriptor::setEndian | ( | EndianType | endian | ) | [pure virtual] |
Sets the endian format of the data on disk.
This method sets the endian format of how the data is stored on disk. An importer uses this value to determine whether to swap bytes when importing the data.
| endian | The endian format of the data on disk. |
| virtual EndianType FileDescriptor::getEndian | ( | ) | const [pure virtual] |
Returns the endian format of the data on disk.
| virtual FileDescriptor* FileDescriptor::copy | ( | ) | const [pure virtual] |
Creates a new file descriptor based on this file descriptor.
This method creates a new file descriptor and sets the values of the created descriptor to this object's values.
| virtual bool FileDescriptor::clone | ( | const FileDescriptor * | pFileDescriptor | ) | [pure virtual] |
Sets all values in this file descriptor to those of another file descriptor.
| pFileDescriptor | The file descriptor from which to set all data values in this file descriptor. No signal/slot attachments currently defined in pFileDescriptor are set into this descriptor. This method does nothing and returns false if NULL is passed in. |
true if all values in this file descriptor were successfully set to the values in the given file descriptor; otherwise returns false.| virtual void FileDescriptor::addToMessageLog | ( | Message * | pMessage | ) | const [pure virtual] |
Adds the current values in this file descriptor to a given message.
This convenience method adds the values in this file descriptor as properties to the given message in a message log.
| pMessage | The message in the message log for which to add this file descriptor's values. |