Lumiera  0.pre.03
»edit your freedom«
MediaAccessMock Class Reference

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

Description

Mock implementation of the MediaAccessFacade.

Provides preconfigured responses for some Test-Filenames.

Definition at line 43 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
 
- Static Public Attributes inherited from MediaAccessFacade
static lib::Depend< MediaAccessFacadeinstance
 storage for the SingletonFactory (actually a lumiera::test::MockInjector)
 

Member Function Documentation

◆ queryFile()

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 124 of file media-access-mock.cpp.

◆ queryChannel()

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 139 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: