Lumiera  0.pre.03
»edit your freedom«
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 "steam/assetmanager.hpp"
33 #include "steam/asset/media.hpp"
34 #include "steam/asset/proc.hpp"
35 
37 
38 using util::isnil;
39 using std::string;
40 
41 
42 namespace steam {
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))
62  dumpAssetManager();
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 steam::asset::test
Steam-Layer Interface: Asset Lookup and Organisation.
Media data represented a specific kind of Asset.
Definition: run.hpp:49
This header is for including and configuring NoBug.
Steam-Layer implementation namespace root.
Data processing Plugins and Codecs can be treated as a specific Kind of Asset.
a POD comprised of all the information sufficiently identifying any given Asset.
Definition: asset.hpp:158
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
Small helper and diagnostic functions related to Asset and AssetManager.
The asset subsystem of the Steam-Layer.
Definition: wrapperptr.hpp:44
Verifying the special operations available for compound media assets comprised of several elementary ...