#include <VisualFile.h>
Inherits VizKit::VisualObject.
List of all members.
Detailed Description
Path information of file or directory and related operations.
Constructor & Destructor Documentation
| VisualFile::VisualFile |
( |
|
) |
|
| VisualFile::~VisualFile |
( |
|
) |
|
| VisualFile::VisualFile |
( |
const VisualFile & |
other |
) |
|
Copy constructor.
- Parameters:
-
Member Function Documentation
| bool VisualFile::appendFileName |
( |
VisualString & |
aFileName |
) |
|
Appends a file name to the VisualFile.
- Parameters:
-
- Returns:
- True on success, false on failure.
| void VisualFile::clear |
( |
void |
|
) |
[private] |
Resets internally used variables and releases allocated memory.
| VisualFile * VisualFile::clone |
( |
void |
|
) |
const [virtual] |
| bool VisualFile::close |
( |
void |
|
) |
|
Closes the file.
- Returns:
- True on success, false on failure.
| void VisualFile::copy |
( |
const VisualFile & |
other |
) |
[private] |
Copy method for assignment operator and copy constructor.
- Parameters:
-
| VisualFile * VisualFile::createWithDirectoryOfTemporaryItems |
( |
void |
|
) |
[static] |
Creates a file with the directory of temporary items.
- Returns:
- Created instance of VisualFile.
| VisualFile * VisualFile::createWithPreferenceStoreDirectory |
( |
void |
|
) |
[static] |
Creates a file with the directory into which the preferences are stored.
- Returns:
- Created instance of VisualFile.
| VisualFile * VisualFile::createWithUserDesktopDirectory |
( |
void |
|
) |
[static] |
Creates a file with the destop directory of the current user.
- Returns:
- Created instance of VisualFile.
| bool VisualFile::getData |
( |
void ** |
data, |
|
|
size_t & |
size | |
|
) |
| | |
Returns the data of the file.
- Parameters:
-
| [out] | data | A pointer to a pointer to the data of the file. |
| [out] | size | The size of the read data in bytes. |
- Returns:
- True on success, false on failure.
| void VisualFile::getFilePath |
( |
VisualString & |
filePath |
) |
const |
| bool VisualFile::getSize |
( |
size_t & |
size |
) |
const |
Returns the size of the file in bytes.
- Parameters:
-
| [out] | size | The size of the file in bytes. |
- Returns:
- True on success, false on failure.
| bool VisualFile::initWithDirectoryOfTemporaryItems |
( |
void |
|
) |
|
Initializes the file with the directory of temporary items.
- Returns:
- True on success, false on failure.
| bool VisualFile::initWithPreferenceStoreDirectory |
( |
void |
|
) |
|
Initializes the file with the directory where the preferences are stored.
- Returns:
- True on success, false on failure.
| bool VisualFile::initWithUserDesktopDirectory |
( |
void |
|
) |
|
Initializes the file with the destop directory of the current user.
- Returns:
- True on success, false on failure.
| bool VisualFile::open |
( |
void |
|
) |
|
Opens the file for write access.
- Returns:
- True on success, false on failure.
Assignment operator.
- Parameters:
-
| sint8 VisualFile::readData |
( |
char * |
buffer, |
|
|
uint32 & |
numberOfbytes, |
|
|
uint32 |
startOffset = 0 | |
|
) |
| | [private] |
Reads data from the file.
- Parameters:
-
| [in,out] | buffer | The buffer into which the data is to be written. |
| [in,out] | numberOfbytes | The number of bytes requested. The actual number of bytes written on return. |
| startOffset | The offset from where reading is supposed to begin. |
- Returns:
- 1 if still data available, 0 on error, -1 on eof.
| bool VisualFile::remove |
( |
void |
|
) |
|
Deletes the file.
- Returns:
- True on success, false on failure.
| bool VisualFile::writeDataToFile |
( |
void ** |
data, |
|
|
uint32 |
size, |
|
|
VisualFile & |
aFile | |
|
) |
| | [static] |
Writes the passed in data bytes into a file.
- Parameters:
-
| data | A pointer to a pointer to the data to write into file. |
| size | The number of bytes of the data. |
| aFile | The file into which to write the data. |
- Returns:
- True on success, false on failure.
Member Data Documentation
True if a file or directory at the location of the VisualFile exists. False if not.
True if it is known whethere a file or directory at the location of the VisualFile exists. False if not known.
The documentation for this class was generated from the following files: