2007-09-22 16:44:50 +02:00
|
|
|
/*
|
|
|
|
|
MediaAccessFacade - functions for querying media file and channels.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2008-03-10 04:25:03 +01:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2008, Hermann Vosseler <Ichthyostega@web.de>
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2007-09-22 16:44:50 +02:00
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
2010-12-17 23:28:49 +01:00
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
2007-09-22 16:44:50 +02:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2007-09-22 16:44:50 +02:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2007-09-22 16:44:50 +02:00
|
|
|
* *****************************************************/
|
|
|
|
|
|
|
|
|
|
|
2016-11-03 18:22:31 +01:00
|
|
|
/** @file media-access-facade.cpp
|
2016-11-03 19:37:34 +01:00
|
|
|
** Implementation binding to query for a media file's properties.
|
|
|
|
|
**
|
|
|
|
|
** @todo this was added as a draft and mock implementation in 2008
|
|
|
|
|
** and is only used sporadic for unit tests.
|
2016-11-03 18:20:10 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2018-11-15 23:42:43 +01:00
|
|
|
#include "vault/media-access-facade.hpp"
|
2007-09-22 16:44:50 +02:00
|
|
|
|
2008-12-17 17:53:32 +01:00
|
|
|
#include "lib/util.hpp"
|
2007-09-24 16:20:41 +02:00
|
|
|
|
|
|
|
|
using util::isnil;
|
2008-04-09 00:27:21 +02:00
|
|
|
using lumiera::error::Invalid;
|
2007-09-24 16:20:41 +02:00
|
|
|
|
2018-11-15 23:55:13 +01:00
|
|
|
namespace vault {
|
2007-09-22 16:44:50 +02:00
|
|
|
|
2007-09-23 16:50:05 +02:00
|
|
|
/** storage for the SingletonFactory
|
2008-04-09 00:27:21 +02:00
|
|
|
* (actually a lumiera::test::MockInjector) */
|
2013-10-20 03:19:36 +02:00
|
|
|
lib::Depend<MediaAccessFacade> MediaAccessFacade::instance;
|
2007-09-22 16:44:50 +02:00
|
|
|
|
2007-09-24 16:20:41 +02:00
|
|
|
|
|
|
|
|
|
2011-05-18 01:37:33 +02:00
|
|
|
MediaDesc&
|
|
|
|
|
MediaAccessFacade::queryFile (string const& name) const
|
2007-09-24 16:20:41 +02:00
|
|
|
{
|
|
|
|
|
if (isnil (name))
|
|
|
|
|
throw Invalid ("empty filename passed to MediaAccessFacade.");
|
|
|
|
|
|
2018-11-15 21:13:52 +01:00
|
|
|
UNIMPLEMENTED ("delegate to vault: query accessability of file");
|
2007-09-24 16:20:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ChanDesc
|
2011-05-18 01:37:33 +02:00
|
|
|
MediaAccessFacade::queryChannel (MediaDesc& mHandle, uint chanNo) const
|
2007-09-24 16:20:41 +02:00
|
|
|
{
|
2018-11-15 21:13:52 +01:00
|
|
|
UNIMPLEMENTED ("delegate to vault: query channel information");
|
2007-09-24 16:20:41 +02:00
|
|
|
ChanDesc nix;
|
|
|
|
|
return nix;
|
|
|
|
|
}
|
|
|
|
|
|
2007-09-22 16:44:50 +02:00
|
|
|
|
|
|
|
|
|
2018-11-15 23:55:13 +01:00
|
|
|
} // namespace vault
|