xbmc
Static Public Member Functions | List of all members
XFILE::CDirectoryFactory Class Reference

Get access to a directory of a file system. More...

#include <DirectoryFactory.h>

Static Public Member Functions

static IDirectoryCreate (const CURL &url)
 Create a IDirectory object of the share type specified in strPath . More...
 
static IDirectoryCreate (const CFileItem &item)
 Create a IDirectory object of the share type specified in a given item path. More...
 

Detailed Description

Get access to a directory of a file system.

The Factory can be used to create a directory object for every file system accessable.

Example:

std::string strShare="iso9660://";

IDirectory* pDir=CDirectoryFactory::Create(strShare);

The pDir pointer can be used to access a directory and retrieve it's content.

When different types of shares have to be accessed use CVirtualDirectory.

See also
IDirectory

Member Function Documentation

◆ Create() [1/2]

IDirectory * CDirectoryFactory::Create ( const CURL url)
static

Create a IDirectory object of the share type specified in strPath .

Parameters
strPathSpecifies the share type to access, can be a share or share with path.
Returns
IDirectory object to access the directories on the share.
See also
IDirectory

◆ Create() [2/2]

IDirectory * CDirectoryFactory::Create ( const CFileItem item)
static

Create a IDirectory object of the share type specified in a given item path.

Parameters
itemSpecifies the item to which the factory will create the directory instance
Returns
IDirectory object to access the directories on the share.
See also
IDirectory

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