Lumiera  0.pre.03
»edit your freedom«
media-access-facade.cpp
Go to the documentation of this file.
1 /*
2  MediaAccessFacade - functions for querying media file and channels.
3 
4  Copyright (C)
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 * *****************************************************************/
13 
14 
24 
25 #include "lib/util.hpp"
26 
27 using util::isnil;
29 
30 namespace vault {
31 
35 
36 
37 
38  MediaDesc&
39  MediaAccessFacade::queryFile (string const& name) const
40  {
41  if (isnil (name))
42  throw Invalid ("empty filename passed to MediaAccessFacade.");
43 
44  UNIMPLEMENTED ("delegate to vault: query accessability of file");
45  }
46 
47 
48  ChanDesc
49  MediaAccessFacade::queryChannel (MediaDesc& mHandle, uint chanNo) const
50  {
51  UNIMPLEMENTED ("delegate to vault: query channel information");
52  ChanDesc nix;
53  return nix;
54  }
55 
56 
57 
58 } // namespace vault
virtual MediaDesc & queryFile(string const &name) const
request for testing the denoted files accessibility
virtual ChanDesc queryChannel(MediaDesc &, uint chanNo) const
request for information about the n-th channel of the file referred by FileHandle.
Descriptor holding the global information record required for further handling this kind of media wit...
Access point to singletons and other kinds of dependencies designated by type.
Definition: depend.hpp:280
Derived specific exceptions within Lumiera&#39;s exception hierarchy.
Definition: error.hpp:190
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
static lib::Depend< MediaAccessFacade > instance
storage for the SingletonFactory (actually a lumiera::test::MockInjector)
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.