PrimoBurner(tm) for C++
4.6
CD, DVD and Blu-ray Software Development Kit
|
Defines one file or directory in a data image. More...
#include <PrimoBurnerAPI.h>
Inherits Reference.
Public Member Functions | |
virtual DataFileCallback * | callback () const =0 |
Gets the callback set previously by setCallback. More... | |
virtual DataFileList * | children () const =0 |
Gets the list of child DataFile objects associated with this file. More... | |
virtual DataFile * | clone (bool_t includeChildren)=0 |
Creates a copy of the DataFile object. More... | |
virtual filetime_t | creationTime () const =0 |
Gets the file creation time. More... | |
virtual DataSource::Enum | dataSource () const =0 |
Gets the file data source. More... | |
virtual bool_t | directory () const =0 |
Indicates if this file is a directory. More... | |
virtual uint32_t | discAddress () const =0 |
Gets the file relative logical block address. More... | |
virtual int32_t | excludeMask ()=0 |
Gets the file systems from which this file / directory should be excluded. More... | |
virtual DataFile * | find (const char_t *relativePath, bool_t caseSensitive=0) const =0 |
Finds a file in a file tree. More... | |
virtual int32_t | hiddenMask () const =0 |
Gets the file systems in which this file / directory should be marked as hidden. More... | |
virtual const char_t * | longFilename () const =0 |
Gets the long filename. More... | |
virtual bool_t | merge (DataFile *source)=0 |
Merges two file trees. More... | |
virtual DataFile * | parent () const =0 |
Gets the file parent. More... | |
virtual const char_t * | path () const =0 |
Gets the path which is set with the setPath method. More... | |
virtual void | setCallback (DataFileCallback *callback)=0 |
Sets the callback that receives notifications for this DataFile. More... | |
virtual void | setCreationTime (filetime_t filetime)=0 |
Sets the file creation time. More... | |
virtual void | setDataSource (DataSource::Enum source)=0 |
Sets the file data source. More... | |
virtual void | setDirectory (bool_t directory)=0 |
Sets whether DataFile is a directory. More... | |
virtual void | setDiscAddress (uint32_t address)=0 |
Sets the file logical block address. More... | |
virtual void | setExcludeMask (int32_t imageTypeFlags)=0 |
Sets the file systems from which this file / directory should be excluded. More... | |
virtual void | setHiddenMask (int32_t imageTypeFlags)=0 |
Sets in which file systems this file / directory should be marked as hidden. More... | |
virtual void | setLongFilename (const char_t *filename)=0 |
Sets the long filename. More... | |
virtual void | setPath (const char_t *filepath)=0 |
Sets the full path to the file from which this object should read its data. More... | |
virtual void | setShortFilename (const char_t *filename)=0 |
Sets the short filename. More... | |
virtual void | setSize (int64_t filesize)=0 |
Sets the file size in bytes. More... | |
virtual void | setStream (primo::Stream *stream)=0 |
Sets the source stream that should be used to access the file data during the data image creation. More... | |
virtual void | setUserData (void *userData)=0 |
Attaches user defined data to this object. More... | |
virtual const char_t * | shortFilename () const =0 |
Gets the short filename. More... | |
virtual int64_t | size () const =0 |
Gets the file size in bytes. More... | |
virtual primo::Stream * | stream () const =0 |
Gets the source stream that should be used to access the file data during the data image creation. More... | |
virtual UdfFileProps * | udfProps () const =0 |
Gets an interface for setting and reading UDF file properties. More... | |
virtual void * | userData () const =0 |
Gets the user defined data attached to this object. More... | |
Public Member Functions inherited from Reference | |
virtual int32_t | release () const =0 |
Releases the instance. More... | |
virtual int32_t | retain () const =0 |
Retains the instance. More... | |
virtual int32_t | retainCount () const =0 |
Returns the current reference count. More... | |
Defines one file or directory in a data image.
Use this class to create the logical tree of the data image that should be created / burned.
|
pure virtual |
Gets the callback set previously by setCallback.
|
pure virtual |
Gets the list of child DataFile objects associated with this file.
|
pure virtual |
Creates a copy of the DataFile object.
The new object will be a root item (i.e. not part of a tree regardless of whether the original object was in a tree or not).
includeChildren | Indicates that the children should be included. If set to FALSE children are not included. |
|
pure virtual |
Gets the file creation time.
The time is returned as coordinated universal time (UTC).
|
pure virtual |
Gets the file data source.
|
pure virtual |
Indicates if this file is a directory.
|
pure virtual |
Gets the file relative logical block address.
When data source is set to DataSource::Disc this method returns the address at which the file starts on the disc. For ISO images this method returns the offset at which the file data starts in the image file.
This method can be used together with DataFile::size and Device::readData to read files from a disc or ISO image.
|
pure virtual |
Gets the file systems from which this file / directory should be excluded.
|
pure virtual |
Finds a file in a file tree.
relativePath | [in] Relative path of the item. The path must start with "/". This method accepts only a forward slash ("/") for directory delimiter. |
caseSensitive | Indicates whether the search should be case sensitive. |
|
pure virtual |
Gets the file systems in which this file / directory should be marked as hidden.
|
pure virtual |
Gets the long filename.
The long filename determines how the file will appear in the file tree.
|
pure virtual |
Merges two file trees.
The merge method adds and replaces file nodes and adds directory nodes from the source tree to the destination tree. The merge method does not replace directory nodes in the destination tree.
In order for the merge to work both objects should represent directories (see setDirectory) and both objects should have one and the same long filename (see setLongFilename, longFilename).
During the merging the LongFilename property of each node is used to determine whether objects are the same file or not. The name comparison is not case sensitive.
source | [in] Instance of DataFile, that should be merged into the object on which the merge method is being called. |
|
pure virtual |
Gets the file parent.
|
pure virtual |
Gets the path which is set with the setPath method.
|
pure virtual |
Sets the callback that receives notifications for this DataFile.
callback | [in] A pointer to object that implements the DataFileCallback interface. |
|
pure virtual |
Sets the file creation time.
The value should be set as coordinated universal time (UTC).
filetime | On Windows this is a Win32 FILETIME structure representing the number of 100-nanosecond intervals since January 1, 1601 (UTC). On Mac OS X and Linux this is a POSIX time_t structure representing the number of seconds elapsed since 00:00:00 on January 1, 1970 (UTC). |
|
pure virtual |
Sets the file data source.
The default value is DataSource::File.
source | Specifies the data source. |
|
pure virtual |
|
pure virtual |
Sets the file logical block address.
address | Logical block address. |
|
pure virtual |
Sets the file systems from which this file / directory should be excluded.
This allows hybrid layouts to be built, in which some files are present in one file system and not present in another file system.
imageTypeFlags | A combination of the constants defined in the ImageTypeFlags enumeration. |
|
pure virtual |
Sets in which file systems this file / directory should be marked as hidden.
imageTypeFlags | A combination of the constants defined in the ImageTypeFlags enumeration. |
|
pure virtual |
Sets the long filename.
The long filename determines how the file will appear in the file tree.
filename | This name should not include any path information in it, just the name of the file and it's extension. |
|
pure virtual |
Sets the full path to the file from which this object should read its data.
filepath | A null-terminated string or NULL if no path is set. |
|
pure virtual |
Sets the short filename.
filename | [in] A null-terminated string containing the short filename. |
|
pure virtual |
Sets the file size in bytes.
This method should be used only if the data source is set to DataSource::ZeroPad. In all other cases the file size is detected automatically.
filesize | The file size in bytes. |
|
pure virtual |
Sets the source stream that should be used to access the file data during the data image creation.
In order for this method to work DataSource::Stream should be set as a data source using the setDataSource method.
stream | A pointer to an object that implements primo::Stream. |
|
pure virtual |
Attaches user defined data to this object.
userData | [in] A pointer to user data. The application is responsible for managing this data. |
|
pure virtual |
Gets the short filename.
|
pure virtual |
Gets the file size in bytes.
|
pure virtual |
Gets the source stream that should be used to access the file data during the data image creation.
|
pure virtual |
Gets an interface for setting and reading UDF file properties.
|
pure virtual |
Gets the user defined data attached to this object.