Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
compoundmediatest.cpp
Go to the documentation of this file.
1 /*
2  CompoundMedia(Test) - handling multichannel Media Assets
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 
28 #include "include/logging.h"
29 #include "lib/test/run.hpp"
30 #include "lib/util.hpp"
31 
32 #include "proc/assetmanager.hpp"
33 #include "proc/asset/media.hpp"
34 #include "proc/asset/proc.hpp"
35 
37 
38 using util::isnil;
39 using std::string;
40 
41 
42 namespace proc {
43 namespace asset{
44 namespace test {
45 
46 
47 
48 
49  /*******************************************************************/
53  class CompoundMedia_test : public Test
54  {
55  virtual void run(Arg arg)
56  {
57  buildCompound();
60 
61  if (!isnil (arg))
63  TRACE (asset_mem, "leaving CreateAsset_test::run()");
64  }
65 
66 
67 
69 
74  {
75  UNIMPLEMENTED ("create new compound media");
76  }
77 
81  {
82  UNIMPLEMENTED ("add and remove elementary media to compound media asset");
83  }
84 
85 
90  {
91  UNIMPLEMENTED ("create compound clip from compound media and verify structure");
92  }
93 
94 
95  bool checkProperties (PM object, Asset::Ident identity, string filename)
96  {
97  return identity == object->ident
98  && filename == object->getFilename();
99  }
100  };
101 
102 
104  LAUNCHER (CompoundMedia_test, "unit asset");
105 
106 
107 
108 }}} // namespace proc::asset::test
Proc-Layer Interface: Asset Lookup and Organisation.
Media data represented a specific kind of Asset.
Definition: run.hpp:49
The asset subsystem of the Proc-Layer.
Definition: id-scheme.hpp:64
bool checkProperties(PM object, Asset::Ident identity, string filename)
This header is for including and configuring NoBug.
TRACE(test,"inserted %d", data)
a POD comprised of all the information sufficiently identifying any given Asset.
Definition: asset.hpp:156
std::vector< string > & Arg
Definition: run.hpp:54
Data processing Plugins and Codecs can be treated as a specific Kind of Asset.
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
bool isnil(lib::time::Duration const &dur)
Definition: timevalue.hpp:642
Small helper and diagnostic functions related to Asset and AssetManager.
Proc-Layer implementation namespace root.
Definition: id-scheme.hpp:63
Verifying the special operations available for compound media assets comprised of several elementary ...
LAUNCHER(AssetCategory_test,"unit asset")
Register this test class...