Introduction
Downloads
Documentation
Tutorials
Pixie Lite
Forum

Home

Asset Class Reference
[Core]

List of all members.


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 Filename &filename)
 Asset (const StringId &filename)
 Asset (const char *filename)
 ~Asset ()
 Asset (const Asset &asset)
const Assetoperator= (const Asset &)
const FilenameGetFilename () const
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

Detailed Description

Author:
Mattias Gustavsson

Definition at line 24 of file Asset.h.


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 28 of file Asset.h.


Constructor & Destructor Documentation

Asset::Asset ( const StaticBuffer memoryBuffer  ) 

Constructors

Definition at line 18 of file Asset.cpp.

Asset::Asset ( DynamicBuffer memoryBuffer  ) 

Definition at line 31 of file Asset.cpp.

Asset::Asset ( const Filename filename  ) 

Definition at line 44 of file Asset.cpp.

Asset::Asset ( const StringId filename  ) 

Definition at line 59 of file Asset.cpp.

Asset::Asset ( const char *  filename  ) 

Definition at line 74 of file Asset.cpp.

Asset::~Asset (  ) 

Destructor

Definition at line 112 of file Asset.cpp.

Asset::Asset ( const Asset asset  ) 

Definition at line 136 of file Asset.cpp.


Member Function Documentation

const Asset & Asset::operator= ( const Asset asset  ) 

Definition at line 176 of file Asset.cpp.

const Filename & Asset::GetFilename (  )  const

Definition at line 230 of file Asset.cpp.

bool Asset::Open (  )  const

Definition at line 238 of file Asset.cpp.

bool Asset::Create (  ) 

Definition at line 276 of file Asset.cpp.

bool Asset::Close (  )  const

Definition at line 310 of file Asset.cpp.

int Asset::GetSize (  )  const

Definition at line 342 of file Asset.cpp.

int Asset::Seek ( int  offset,
SeekOrigin  origin = SEEK_FROM_START 
) const

Definition at line 387 of file Asset.cpp.

int Asset::Tell (  )  const

Definition at line 482 of file Asset.cpp.

int Asset::Write ( const char *  value,
int  count = 1 
)

Definition at line 531 of file Asset.cpp.

int Asset::Write ( const short *  value,
int  count = 1 
)

Definition at line 536 of file Asset.cpp.

int Asset::Write ( const int *  value,
int  count = 1 
)

Definition at line 541 of file Asset.cpp.

int Asset::Write ( const long *  value,
int  count = 1 
)

Definition at line 546 of file Asset.cpp.

int Asset::Write ( const unsigned char *  value,
int  count = 1 
)

Definition at line 551 of file Asset.cpp.

int Asset::Write ( const unsigned short *  value,
int  count = 1 
)

Definition at line 556 of file Asset.cpp.

int Asset::Write ( const unsigned int *  value,
int  count = 1 
)

Definition at line 561 of file Asset.cpp.

int Asset::Write ( const unsigned long *  value,
int  count = 1 
)

Definition at line 566 of file Asset.cpp.

int Asset::Write ( const float *  value,
int  count = 1 
)

Definition at line 571 of file Asset.cpp.

int Asset::Write ( const double *  value,
int  count = 1 
)

Definition at line 576 of file Asset.cpp.

int Asset::Write ( const bool *  value,
int  count = 1 
)

Definition at line 581 of file Asset.cpp.

int Asset::Read ( char *  value,
int  count = 1 
) const

Definition at line 612 of file Asset.cpp.

int Asset::Read ( short *  value,
int  count = 1 
) const

Definition at line 617 of file Asset.cpp.

int Asset::Read ( int *  value,
int  count = 1 
) const

Definition at line 622 of file Asset.cpp.

int Asset::Read ( long *  value,
int  count = 1 
) const

Definition at line 627 of file Asset.cpp.

int Asset::Read ( unsigned char *  value,
int  count = 1 
) const

Definition at line 632 of file Asset.cpp.

int Asset::Read ( unsigned short *  value,
int  count = 1 
) const

Definition at line 637 of file Asset.cpp.

int Asset::Read ( unsigned int *  value,
int  count = 1 
) const

Definition at line 642 of file Asset.cpp.

int Asset::Read ( unsigned long *  value,
int  count = 1 
) const

Definition at line 647 of file Asset.cpp.

int Asset::Read ( float *  value,
int  count = 1 
) const

Definition at line 652 of file Asset.cpp.

int Asset::Read ( double *  value,
int  count = 1 
) const

Definition at line 657 of file Asset.cpp.

int Asset::Read ( bool *  value,
int  count = 1 
) const

Definition at line 662 of file Asset.cpp.



Pixie University and the Pixie Game Engine is created and managed by Mattias Gustavsson.
Reproduction/republishing of any material on this site without permission is strictly prohibited.