AaronCameron.net
What's your point?
Not a Member? - Login or Create an Account...MC Offline
Wednesday the 19th of June 2013 @ 02:24pm
Front Page Projects Your Profile About
[]

LibN2L-4 Library Code Reference

Classes
Compounds
Files
Members
Method Index
Full Reference

n2l::cVfsDirectory Class Reference

An implementation of cVfsDirectoryInterface which reads vfs file nodes straight from the underlying file system. More...

#include <cVfsDirectory.h>

Inheritance diagram for n2l::cVfsDirectory:

Inheritance graph
[legend]
Collaboration diagram for n2l::cVfsDirectory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

An implementation of cVfsDirectoryInterface which reads vfs file nodes straight from the underlying file system.

Definition at line 45 of file cVfsDirectory.h.


Constructor & Destructor Documentation

n2l::cVfsDirectory::cVfsDirectory const tFsNodeName iName  ) 
 

Definition at line 59 of file cVfsDirectory.cpp.

References n2l::cVfsStat::isDir().

n2l::cVfsDirectory::~cVfsDirectory  )  [virtual]
 

Definition at line 89 of file cVfsDirectory.cpp.

n2l::cVfsDirectory::cVfsDirectory const tFsNodeName iName,
const tVfsNodeName iVfsName
[protected]
 

Definition at line 74 of file cVfsDirectory.cpp.

References n2l::cVfsStat::isDir().


Member Function Documentation

const cVfsDirectory::tConstIterator n2l::cVfsDirectory::begin  )  const [virtual]
 

Implements n2l::cVfsDirectoryInterface.

Definition at line 476 of file cVfsDirectory.cpp.

References container().

void n2l::cVfsDirectory::buffer const tVfsFileBuffer iBuffer  )  const [virtual]
 

Overwrite the entire destination node with the information within 'iBuffer'.

Implements n2l::cVfsNodeInterface.

Definition at line 386 of file cVfsDirectory.cpp.

const tVfsFileBuffer & n2l::cVfsDirectory::buffer  )  const [virtual]
 

Implements n2l::cVfsNodeInterface.

Definition at line 379 of file cVfsDirectory.cpp.

void n2l::cVfsDirectory::clearCache  )  const [virtual]
 

Implements n2l::cVfsNodeInterface.

Definition at line 462 of file cVfsDirectory.cpp.

const cVfsDirectory::tContainer & n2l::cVfsDirectory::container  )  const [protected, virtual]
 

Definition at line 498 of file cVfsDirectory.cpp.

cVfsDirectory::tContainer & n2l::cVfsDirectory::container  )  [protected, virtual]
 

Definition at line 490 of file cVfsDirectory.cpp.

Referenced by begin(), empty(), end(), find(), and size().

void n2l::cVfsDirectory::copyNode const tConstIterator iNodeI,
const tVfsNodeName iNewName,
const cVfsDirectoryInterface oDir
const [virtual]
 

Definition at line 285 of file cVfsDirectory.cpp.

References n2l::cleanVfsPath(), n2l::cVfsDirectoryInterface::end(), n2l::cVfsDirectoryInterface::find(), n2l::cString::findFirstOf(), _n2l::FsPathSeperatorSymbol, n2l::cVfsDirectoryInterface::newFileNode(), n2l::cString::npos, n2l::cVfsException::rethrow(), n2l::cVfsDirectoryInterface::unlinkNode(), and n2l::VfsPathSeperatorSymbol.

const tBool n2l::cVfsDirectory::empty  )  const [virtual]
 

Implements n2l::cVfsDirectoryInterface.

Definition at line 469 of file cVfsDirectory.cpp.

References container().

const cVfsDirectory::tConstIterator n2l::cVfsDirectory::end  )  const [virtual]
 

Implements n2l::cVfsDirectoryInterface.

Definition at line 483 of file cVfsDirectory.cpp.

References container().

Referenced by find(), hasChild(), mustFind(), newDirectoryNode(), and newFileNode().

const cVfsDirectory::tConstIterator n2l::cVfsDirectory::find const tKey iName  )  const [virtual]
 

Shouldn't be using cVfsOpenException here, it should be a seek error

Definition at line 325 of file cVfsDirectory.cpp.

References container(), n2l::cString::empty(), end(), and n2l::stripFrontLiteralVfsName().

Referenced by hasChild(), mustFind(), newDirectoryNode(), newFileNode(), and unlinkNode().

const tVfsFileBuffer & n2l::cVfsDirectory::firstLine  )  const [virtual]
 

Implements n2l::cVfsNodeInterface.

Definition at line 399 of file cVfsDirectory.cpp.

const tFsNodeName n2l::cVfsDirectory::fsName  )  const [virtual]
 

If supported, a real file system path is returned.

Implements n2l::cVfsNodeInterface.

Definition at line 456 of file cVfsDirectory.cpp.

void n2l::cVfsDirectory::getBuffer tVfsFileBuffer oBuffer  )  const [virtual]
 

Get a vfs buffer from this node.

Unlike the returning buffer() command, this method sets the provided argument to the buffer, and does not set the cache. This avoids caching, and passing by value.

Implements n2l::cVfsNodeInterface.

Definition at line 393 of file cVfsDirectory.cpp.

SDL_RWops * n2l::cVfsDirectory::getRWops  )  const [virtual]
 

Implements n2l::cVfsNodeInterface.

Definition at line 407 of file cVfsDirectory.cpp.

const tBool n2l::cVfsDirectory::hasChild const tKey iName  )  const [virtual]
 

Definition at line 373 of file cVfsDirectory.cpp.

References end(), and find().

const tBool n2l::cVfsDirectory::isSymLink  )  const [virtual]
 

Definition at line 101 of file cVfsDirectory.cpp.

References n2l::cVfsStat::isSymLink().

const cAutoPtr< const cVfsDirectory::tValue > & n2l::cVfsDirectory::mustFind const tKey iName  )  const [virtual]
 

Definition at line 357 of file cVfsDirectory.cpp.

References end(), and find().

const tVfsNodeName & n2l::cVfsDirectory::name  )  const [virtual]
 

Implements n2l::cVfsNodeInterface.

Definition at line 442 of file cVfsDirectory.cpp.

Referenced by newDirectoryNode(), newFileNode(), and unlinkNode().

const cAutoPtr< const cVfsDirectory::tValue > n2l::cVfsDirectory::newDirectoryNode const tVfsNodeName iName  )  const [virtual]
 

Implements n2l::cVfsDirectoryInterface.

Definition at line 166 of file cVfsDirectory.cpp.

References n2l::cString::c_str(), n2l::cleanVfsPath(), end(), find(), n2l::cString::findFirstOf(), _n2l::FsPathSeperatorSymbol, name(), n2l::cString::npos, n2l::VfsPathSeperatorSymbol, and n2l::cVfsStat::writeable().

const cAutoPtr< const cVfsDirectory::tValue > n2l::cVfsDirectory::newFileNode const tVfsNodeName iName  )  const [virtual]
 

Implements n2l::cVfsDirectoryInterface.

Definition at line 114 of file cVfsDirectory.cpp.

References n2l::cString::c_str(), n2l::cleanVfsPath(), end(), find(), n2l::cString::findFirstOf(), _n2l::FsPathSeperatorSymbol, name(), n2l::cString::npos, n2l::VfsPathSeperatorSymbol, and n2l::cVfsStat::writeable().

const tUint n2l::cVfsDirectory::permissions  )  const [virtual]
 

Implements n2l::cVfsNodeInterface.

Definition at line 94 of file cVfsDirectory.cpp.

References n2l::cVfsStat::permissions().

const tFsNodeName n2l::cVfsDirectory::readLink  )  const [virtual]
 

Definition at line 107 of file cVfsDirectory.cpp.

References n2l::cVfsStat::readLink().

const tUint n2l::cVfsDirectory::size  )  const [virtual]
 

Implements n2l::cVfsNodeInterface.

Definition at line 435 of file cVfsDirectory.cpp.

References container().

const tBool n2l::cVfsDirectory::supportsFsName  )  const [virtual]
 

Return wheither this node may be accessed directly on the file system, or if it must be accessed via a file buffer.

Returns:
True if file system pathing is supported

Implements n2l::cVfsNodeInterface.

Definition at line 449 of file cVfsDirectory.cpp.

void n2l::cVfsDirectory::unlinkNode const tConstIterator iNodeI  )  const [virtual]
 

Definition at line 228 of file cVfsDirectory.cpp.

References n2l::asString(), find(), n2l::cVfsDirectoryInterface::isFile(), name(), and n2l::cVfsStat::writeable().


The documentation for this class was generated from the following files:
©2013 Aaron Cameron