Asset Class Reference
[Core]
List of all members.
Detailed Description
- Author:
- Mattias Gustavsson
Definition at line 22 of file Asset.h.
|
Public Types |
| enum | SeekOrigin { SEEK_FROM_START = 0,
SEEK_FROM_CURRENT = 1,
SEEK_FROM_END = 2
} |
Public Member Functions |
| | Asset (const StaticBuffer *memoryBuffer) |
| | Asset (DynamicBuffer *memoryBuffer) |
| | Asset (const char *filename) |
| | ~Asset () |
| | Asset (const Asset &asset) |
| const Asset & | operator= (const Asset &) |
| bool | Open () const |
| bool | Create () |
| bool | Close () const |
| int | GetSize () const |
| int | Seek (int offset, SeekOrigin origin=SEEK_FROM_START) const |
| int | Tell () const |
| int | Write (const char *value, int count=1) |
| int | Write (const short *value, int count=1) |
| int | Write (const int *value, int count=1) |
| int | Write (const long *value, int count=1) |
| int | Write (const unsigned char *value, int count=1) |
| int | Write (const unsigned short *value, int count=1) |
| int | Write (const unsigned int *value, int count=1) |
| int | Write (const unsigned long *value, int count=1) |
| int | Write (const float *value, int count=1) |
| int | Write (const double *value, int count=1) |
| int | Write (const bool *value, int count=1) |
| int | Read (char *value, int count=1) const |
| int | Read (short *value, int count=1) const |
| int | Read (int *value, int count=1) const |
| int | Read (long *value, int count=1) const |
| int | Read (unsigned char *value, int count=1) const |
| int | Read (unsigned short *value, int count=1) const |
| int | Read (unsigned int *value, int count=1) const |
| int | Read (unsigned long *value, int count=1) const |
| int | Read (float *value, int count=1) const |
| int | Read (double *value, int count=1) const |
| int | Read (bool *value, int count=1) const |
Static Public Member Functions |
| static void | SetArchive (const Archive *archive) |
| static const Archive * | GetArchive () |
Member Enumeration Documentation
- Enumerator:
-
| SEEK_FROM_START |
Seek from the start of the file. |
| SEEK_FROM_CURRENT |
Seek from the current position in the file. |
| SEEK_FROM_END |
Seek from the end of the file. |
Definition at line 26 of file Asset.h.
Constructor & Destructor Documentation
| Asset::Asset |
( |
const char * |
filename |
) |
|
| Asset::Asset |
( |
const Asset & |
asset |
) |
|
Member Function Documentation
| void Asset::SetArchive |
( |
const Archive * |
archive |
) |
[static] |
| const Archive * Asset::GetArchive |
( |
|
) |
[static] |
| const Asset & Asset::operator= |
( |
const Asset & |
asset |
) |
|
| bool Asset::Open |
( |
|
) |
const |
| bool Asset::Close |
( |
|
) |
const |
| int Asset::GetSize |
( |
|
) |
const |
| int Asset::Seek |
( |
int |
offset, |
|
|
SeekOrigin |
origin = SEEK_FROM_START | |
|
) |
| | const |
| int Asset::Tell |
( |
|
) |
const |
| int Asset::Write |
( |
const char * |
value, |
|
|
int |
count = 1 | |
|
) |
| | |
| int Asset::Write |
( |
const short * |
value, |
|
|
int |
count = 1 | |
|
) |
| | |
| int Asset::Write |
( |
const int * |
value, |
|
|
int |
count = 1 | |
|
) |
| | |
| int Asset::Write |
( |
const long * |
value, |
|
|
int |
count = 1 | |
|
) |
| | |
| int Asset::Write |
( |
const unsigned char * |
value, |
|
|
int |
count = 1 | |
|
) |
| | |
| int Asset::Write |
( |
const unsigned short * |
value, |
|
|
int |
count = 1 | |
|
) |
| | |
| int Asset::Write |
( |
const unsigned int * |
value, |
|
|
int |
count = 1 | |
|
) |
| | |
| int Asset::Write |
( |
const unsigned long * |
value, |
|
|
int |
count = 1 | |
|
) |
| | |
| int Asset::Write |
( |
const float * |
value, |
|
|
int |
count = 1 | |
|
) |
| | |
| int Asset::Write |
( |
const double * |
value, |
|
|
int |
count = 1 | |
|
) |
| | |
| int Asset::Write |
( |
const bool * |
value, |
|
|
int |
count = 1 | |
|
) |
| | |
| int Asset::Read |
( |
char * |
value, |
|
|
int |
count = 1 | |
|
) |
| | const |
| int Asset::Read |
( |
short * |
value, |
|
|
int |
count = 1 | |
|
) |
| | const |
| int Asset::Read |
( |
int * |
value, |
|
|
int |
count = 1 | |
|
) |
| | const |
| int Asset::Read |
( |
long * |
value, |
|
|
int |
count = 1 | |
|
) |
| | const |
| int Asset::Read |
( |
unsigned char * |
value, |
|
|
int |
count = 1 | |
|
) |
| | const |
| int Asset::Read |
( |
unsigned short * |
value, |
|
|
int |
count = 1 | |
|
) |
| | const |
| int Asset::Read |
( |
unsigned int * |
value, |
|
|
int |
count = 1 | |
|
) |
| | const |
| int Asset::Read |
( |
unsigned long * |
value, |
|
|
int |
count = 1 | |
|
) |
| | const |
| int Asset::Read |
( |
float * |
value, |
|
|
int |
count = 1 | |
|
) |
| | const |
| int Asset::Read |
( |
double * |
value, |
|
|
int |
count = 1 | |
|
) |
| | const |
| int Asset::Read |
( |
bool * |
value, |
|
|
int |
count = 1 | |
|
) |
| | const |
|