GL Studio C++ Runtime API
Image::InstanceListEntry::FileID Class Reference

#include <image.h>

Public Member Functions

 FileID (void)
 
 FileID (const FilePathClass &path, const LoadOptions &loadOptions)
 
 FileID (const FileID &src)
 
const FilePathClassGetPath (void) const
 
const LoadOptionsGetLoadOptions (void) const
 
off_t GetFileSize (void) const
 
time_t GetModTime (void) const
 
bool operator== (const FileID &rhs) const
 
FileIDoperator= (const FileID &rhs)
 

Static Public Member Functions

static FilePathClass GetAbsoluteFilePath (const FilePathClass &imgPath)
 

Protected Attributes

FilePathClass _path
 
LoadOptions _loadOptions
 
off_t _fileSize
 
time_t _modTime
 

Detailed Description

holds absolute file path, file size, mod time and image load options

Constructor & Destructor Documentation

FileID ( void  )

default ctor - no file

FileID ( const FilePathClass path,
const LoadOptions loadOptions 
)

ctor

Parameters
pathpath for file ( can be relative or absolute, will ultimately be stored in the FileID as an absolute path )
loadOptionsimage loading options for file
FileID ( const FileID src)

copy ctor

Parameters
srcFileID to copy

Member Function Documentation

static FilePathClass GetAbsoluteFilePath ( const FilePathClass imgPath)
static

get the absolute path for the given path

Parameters
imgPathpath in question
Returns
the absolute path for the given path
off_t GetFileSize ( void  ) const

get the file size for the file

Returns
the file size for the file
const LoadOptions& GetLoadOptions ( void  ) const

get the image load options for the file

Returns
the image load options for the file
time_t GetModTime ( void  ) const

get the modification time for the file

Returns
the modification time for the file
const FilePathClass& GetPath ( void  ) const

get the absolute path for the file

Returns
the absolute path for the file
FileID& operator= ( const FileID rhs)

assigment operator

Parameters
rhs
bool operator== ( const FileID rhs) const

compare two FileID's checking for same absolute path and load options

Note
file size and mod time are not compared here, just absolute path and load options
Parameters
rhsFileID to compare
Returns
true if equal absolute paths and load options

Member Data Documentation

off_t _fileSize
protected

size in bytes of image file

LoadOptions _loadOptions
protected

load options associated with image

time_t _modTime
protected

file mod time for image file

FilePathClass _path
protected

absolute path for image file


The documentation for this class was generated from the following file: