Reference

CL_InputSourceProvider(3)

Interface that provide input sources.

NAME

CL_InputSourceProvider - Interface that provide input sources.

DESCRIPTION

CL_InputSourceProvider is used to open inputsources. This can be from datafile where the inputsource is an index - or it a directory where the files are the inputsources.

CLASS MEMBERS

virtual ~CL_InputSourceProvider()
static CL_InputSourceProvider *create_file_provider(
const char *path)

static CL_InputSourceProvider *create_datafile_provider(
const char *filename)

virtual CL_InputSource *open_source(
const char *handle)

virtual CL_InputSourceProvider *clone()

MEMBERS WITH DESCRIPTIONS

virtual ~CL_InputSourceProvider()
Description:

static CL_InputSourceProvider *create_file_provider(
const char *path)

Parameters:
path - Path where the files are located.

Description:

Creates a file provider. Input sources opened are considered as files.

Return value:

The file input provider created.

static CL_InputSourceProvider *create_datafile_provider(
const char *filename)

Parameters:
filename - Name of the datafile to be used.

Description:

Creates a datafile provider. Input sources are opened as indexes in thespecified datafile.

Return value:

The datafile input provider created.

virtual CL_InputSource *open_source(
const char *handle)

Parameters:
handle - handle/index/filename/identier to the input source requested.

Description:

Opens an inputsource using the passed handle.

Return value:

The opened input source.

virtual CL_InputSourceProvider *clone()
Description:

Returns a copy of the current provider.

Return value:

The copy of the inputsource provider.

SEE ALSO

All ClanLib API classes can be found in clanlib (3).

AUTHORS

Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).

See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.