Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
segmentation-integration-test.cpp
Go to the documentation of this file.
1/*
2 SegmentationIntegration(Test) - verify basic properties of the Segmentation
3
4 Copyright (C)
5 2010, 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
19#include "lib/test/run.hpp"
23#include "steam/asset/pipe.hpp"
24#include "common/query.hpp"
25#include "lib/util.hpp"
26
27
28namespace steam {
29namespace fixture {
30namespace test {
31
32// using util::isSameObject;
33// using util::isnil;
34//
35 using asset::Pipe;
36 using asset::PPipe;
37 using asset::Struct;
38 using asset::Timeline;
39 using asset::PTimeline;
40 using lumiera::Query;
41//
42 typedef asset::ID<Pipe> PID;
43 typedef asset::ID<Struct> TID;
44//
45// typedef ModelPortRegistry::ModelPortDescriptor const& MPDescriptor;
46
47
48 namespace { // test environment
49
50 inline PID
51 getPipe (string id)
52 {
53 return Pipe::query ("id("+id+")");
54 }
55
56 inline TID
57 getTimeline (string id)
58 {
59 return asset::Struct::retrieve (Query<Timeline> ("id("+id+")"))->getID();
60 }
61
63 {
64
67 { }
68
71 {
72 }
73 };
74 }
75
76
77
78
79 /*****************************************************************************/
91 class SegmentationIntegration_test : public Test
92 {
93
94 virtual void
95 run (Arg)
96 {
97 TestContext ctx;
98 }
99
100
101 void
105
106
107 };
108
109
112
113
114
115}}} // namespace steam::fixture::test
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition p.hpp:77
Generic interface to express a query for specifically typed result elements exposing some capabilitie...
Definition query.hpp:254
thin wrapper around a size_t hash ID used as primary key for all Asset objects.
Definition asset.hpp:98
structural asset corresponding to the part of the model forming a processing pipe for generating medi...
Definition pipe.hpp:72
static PPipe query(string const &properties)
convenience shortcut for retrieving default configured pipes
Definition pipe.cpp:57
key abstraction: structural asset Created automatically as a sideeffect of building the structure of ...
Definition struct.hpp:105
static StructFactory retrieve
storage for the static StructFactory instance
Definition struct.hpp:107
Work out the part of the Fixture changed by a build process.
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
A "processing pipe" represented as Asset.
Basic and generic representation of an internal query.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Definition run.hpp:116
A collection of frequently used helper functions to support unit testing.
Top level structural element within the session.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...