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

#include "/Werk/devel/lumi/tests/core/backend/media-access-mock.hpp"

Description

Mock implementation of the MediaAccessFacade.

Provides preconfigured responses for some Test-Filenames.

Definition at line 48 of file media-access-mock.hpp.

Private Member Functions

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

Additional Inherited Members

- Public Types inherited from MediaAccessFacade
typedef void * ChanHandle
 
- Public Member Functions inherited from MediaAccessFacade
virtual ~MediaAccessFacade ()
 
- Static Public Attributes inherited from MediaAccessFacade
static lib::Depend
< MediaAccessFacade
instance
 storage for the SingletonFactory (actually a lumiera::test::MockInjector) More...
 

Member Function Documentation

MediaDesc & queryFile ( string const &  name) const
overrideprivatevirtual

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 from MediaAccessFacade.

Definition at line 133 of file media-access-mock.cpp.

References util::isnil().

+ Here is the call graph for this function:

ChanDesc queryChannel ( MediaDesc mHandle,
uint  chanNo 
) const
overrideprivatevirtual

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 from MediaAccessFacade.

Definition at line 148 of file media-access-mock.cpp.

+ Inheritance diagram for MediaAccessMock:
+ Collaboration diagram for MediaAccessMock:

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