Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MediaAccessFacade Class Reference

#include "backend/media-access-facade.hpp"

Description

Interface to the backend layer: provides functions for querying (opening) a media file, detecting the channels or streams found within this file etc.

Implementation delegating to the actual backend functions.

convention: data passed by pointer is owned by the originator; it should be copied if needed beyond the control flow of the invoked function.

Definition at line 66 of file media-access-facade.hpp.

Public Types

typedef void * ChanHandle
 

Public Member Functions

virtual ~MediaAccessFacade ()
 
virtual ChanDesc queryChannel (MediaDesc &, uint chanNo) const
 request for information about the n-th channel of the file referred by FileHandle. More...
 
virtual MediaDescqueryFile (string const &name) const
 request for testing the denoted files accessibility More...
 

Static Public Attributes

static lib::Depend
< MediaAccessFacade
instance
 storage for the SingletonFactory (actually a lumiera::test::MockInjector) More...
 

Member Typedef Documentation

typedef void* ChanHandle

Definition at line 69 of file media-access-facade.hpp.

Constructor & Destructor Documentation

virtual ~MediaAccessFacade ( )
inlinevirtual

Definition at line 92 of file media-access-facade.hpp.

Member Function Documentation

MediaDesc & queryFile ( string const &  name) const
virtual

request for testing the denoted files accessibility

Parameters
namepath and filename of the media file.
Exceptions
error::Invalidwhen passing empty filename, or in case the media file is inaccessible or otherwise inappropriate.
Returns
opaque handle usable for querying channel information from this file, NULL if the file is not accessible.

Reimplemented in MediaAccessMock.

Definition at line 48 of file media-access-facade.cpp.

References util::isnil().

Referenced by MediaAccessMock_test::queryScenario().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ChanDesc queryChannel ( MediaDesc mHandle,
uint  chanNo 
) const
virtual

request for information about the n-th channel of the file referred by FileHandle.

Returns
ChanDesc which may contain NULL values if the file doesn't contain this much channels.
Todo:
throw or return NULL-ChanDesc if Filehandle is invalid?

Reimplemented in MediaAccessMock.

Definition at line 58 of file media-access-facade.cpp.

Referenced by MediaAccessMock_test::queryScenario().

+ Here is the caller graph for this function:

Member Data Documentation

lib::Depend< MediaAccessFacade > instance
static

storage for the SingletonFactory (actually a lumiera::test::MockInjector)

Definition at line 71 of file media-access-facade.hpp.

Referenced by MediaAccessMock_test::queryScenario().

+ Inheritance diagram for MediaAccessFacade:
+ Collaboration diagram for MediaAccessFacade:

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