PixelLightAPI  .
Classes | Public Member Functions | Static Public Attributes
PLCore::FileAccess Class Reference

This class contains information about how to access a file. More...

#include <FileAccess.h>

List of all members.

Classes

class  Entry
 Contains access information for a certain file/URL. More...

Public Member Functions

PLCORE_API FileAccess ()
 Constructor.
PLCORE_API FileAccess (const FileAccess &cFileAccess)
 Copy constructor.
PLCORE_API ~FileAccess ()
 Destructor.
PLCORE_API FileAccessoperator= (const FileAccess &cFileAccess)
 Assignment operator.
PLCORE_API bool HasEntry (const String &sName) const
 Check if an entry with a given name is available.
PLCORE_API const EntryGetEntry (const String &sName) const
 Returns an entry with a given name.
PLCORE_API const Entryoperator[] (const String &sName) const
PLCORE_API EntryGetEntry (const String &sName)
 Returns an entry with a given name.
PLCORE_API Entryoperator[] (const String &sName)

Static Public Attributes

static const Entry NullEntry

Detailed Description

This class contains information about how to access a file.

Remarks:
It can be used to supply authentication for files, e.g. username and password for a HTTP-connection or a password for an encrypted ZIP-file, as well as other access options. Please consider this information as hints that can be passed to the file-functions, it is not guaranteed that everything you enter here will be used! (e.g. a ZIP-file won't be open with Write-Access, regardless of what you pass in FlagsMask/FlagsValue)

Constructor & Destructor Documentation

PLCORE_API PLCore::FileAccess::FileAccess ( const FileAccess cFileAccess)

Copy constructor.

Parameters:
[in]cFileAccessFileAccess object to copy

Destructor.


Member Function Documentation

PLCORE_API FileAccess& PLCore::FileAccess::operator= ( const FileAccess cFileAccess)

Assignment operator.

Parameters:
[in]cFileAccess'FileAccess' object to copy
Returns:
Reference to this instance
PLCORE_API bool PLCore::FileAccess::HasEntry ( const String sName) const

Check if an entry with a given name is available.

Parameters:
[in]sNameName of the entry
Returns:
'true' if the entry is set, else 'false'
PLCORE_API const Entry& PLCore::FileAccess::GetEntry ( const String sName) const

Returns an entry with a given name.

Parameters:
[in]sNameName of the entry
Returns:
Reference to that entry if it exists, else 'NullEntry'
PLCORE_API const Entry& PLCore::FileAccess::operator[] ( const String sName) const
PLCORE_API Entry& PLCore::FileAccess::GetEntry ( const String sName)

Returns an entry with a given name.

Parameters:
[in]sNameName of the entry
Returns:
Reference to that entry, creates a new entry if it didn't exist before
PLCORE_API Entry& PLCore::FileAccess::operator[] ( const String sName)

Member Data Documentation

Empty entry


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:25
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported