Lumiera  0.pre.03
»edityourfreedom«
dummy-job.hpp
Go to the documentation of this file.
1 /*
2  DUMMY-JOB.hpp - diagnostic job for unit tests
3 
4  Copyright (C) Lumiera.org
5  2013, 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 #ifndef BACKEND_ENGINE_DUMMY_JOB_H
29 #define BACKEND_ENGINE_DUMMY_JOB_H
30 
31 
32 
33 #include "backend/engine/job.h"
34 #include "lib/time/timevalue.hpp"
35 
36 
37 namespace backend{
38 namespace engine {
39 
40  using lib::time::Time;
41 
42 
48  struct DummyJob
49  {
50  static Job build();
51  static Job build (Time nominalTime, int additionalKey);
52 
53  static bool was_invoked (Job const& job);
54  static Time invocationTime (Job const& job);
55 
56  };
57 
58 
59 }} // namespace backend::engine
60 #endif
Test helper: generate test dummy jobs with built-in diagnostics.
Definition: dummy-job.hpp:48
static bool was_invoked(Job const &job)
Definition: dummy-job.cpp:177
Individual frame rendering task, forwarding to a closure.
Definition: job.h:248
Lumiera&#39;s internal time value datatype.
Definition: timevalue.hpp:226
static Job build()
uses random job definition values
Definition: dummy-job.cpp:153
static Time invocationTime(Job const &job)
Definition: dummy-job.cpp:186
Definition of a render job.
a family of time value like entities and their relationships.