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) 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 
23 
33 
34 #include "lib/util.hpp"
35 
36 using util::isnil;
38 
39 namespace vault {
40 
44 
45 
46 
47  MediaDesc&
48  MediaAccessFacade::queryFile (string const& name) const
49  {
50  if (isnil (name))
51  throw Invalid ("empty filename passed to MediaAccessFacade.");
52 
53  UNIMPLEMENTED ("delegate to vault: query accessability of file");
54  }
55 
56 
57  ChanDesc
58  MediaAccessFacade::queryChannel (MediaDesc& mHandle, uint chanNo) const
59  {
60  UNIMPLEMENTED ("delegate to vault: query channel information");
61  ChanDesc nix;
62  return nix;
63  }
64 
65 
66 
67 } // 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:289
Derived specific exceptions within Lumiera&#39;s exception hierarchy.
Definition: error.hpp:196
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.