Lumiera  0.pre.03
»edit your freedom«
media-access-mock.hpp
Go to the documentation of this file.
1 /*
2  MEDIA-ACCESS-MOCK.hpp - a test (stub) target object for testing the factories
3 
4  Copyright (C) Lumiera.org
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
36 #ifndef VAULT_TEST_MEDIA_ACCESS_MOCK_H
37 #define VAULT_TEST_MEDIA_ACCESS_MOCK_H
38 
39 
41 
42 
43 
44 
45 namespace vault {
46 namespace test {
47 
53  : public MediaAccessFacade
54  {
55  MediaDesc& queryFile (string const& name) const override;
56  ChanDesc queryChannel (MediaDesc&, uint chanNo) const override;
57  };
58 
59 
60 }} // namespace vault::test
61 #endif
Definition: run.hpp:49
Descriptor holding the global information record required for further handling this kind of media wit...
Mock implementation of the MediaAccessFacade.
Interface to the vault layer: provides functions for querying (opening) a media file, detecting the channels or streams found within this file etc.
ChanDesc queryChannel(MediaDesc &, uint chanNo) const override
request for information about the n-th channel of the file referred by FileHandle.
Vault-Layer implementation namespace root.
Description of one channel found in a media file; result of querying the channel. ...
ElementBoxWidget::Config::Qualifier name(string id)
define the name-ID displayed in the caption
Abstraction interface to query for a media file.
MediaDesc & queryFile(string const &name) const override
request for testing the denoted files accessibility