Line data Source code
1 :
2 : /* Copyright (c) 2011-2015, Stefan Eilemann <eile@eyescale.ch>
3 : * Petros Kataras <petroskataras@gmail.com>
4 : *
5 : * This library is free software; you can redistribute it and/or modify it under
6 : * the terms of the GNU Lesser General Public License version 2.1 as published
7 : * by the Free Software Foundation.
8 : *
9 : * This library is distributed in the hope that it will be useful, but WITHOUT
10 : * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 : * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 : * details.
13 : *
14 : * You should have received a copy of the GNU Lesser General Public License
15 : * along with this library; if not, write to the Free Software Foundation, Inc.,
16 : * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 : */
18 :
19 : #ifndef EQSEQUEL_DETAIL_CONFIG_H
20 : #define EQSEQUEL_DETAIL_CONFIG_H
21 :
22 : #include <eq/config.h> // base class
23 : #include <eq/server.h> // RefPtr usage
24 : #include <seq/types.h>
25 :
26 : namespace seq
27 : {
28 : namespace detail
29 : {
30 : class Config : public eq::Config
31 : {
32 : public:
33 1 : explicit Config(eq::ServerPtr parent)
34 1 : : eq::Config(parent)
35 1 : , _objects(0)
36 : {
37 1 : }
38 :
39 : seq::Application* getApplication();
40 : detail::Application* getApplicationImpl();
41 :
42 0 : virtual bool init()
43 : {
44 0 : LBDONTCALL;
45 0 : return false;
46 : }
47 0 : virtual bool run(co::Object*)
48 : {
49 0 : LBDONTCALL;
50 0 : return false;
51 : }
52 0 : virtual bool exit()
53 : {
54 0 : LBDONTCALL;
55 0 : return false;
56 : }
57 :
58 0 : virtual bool needRedraw()
59 : {
60 0 : LBDONTCALL;
61 0 : return false;
62 : }
63 0 : virtual uint32_t startFrame()
64 : {
65 0 : LBDONTCALL;
66 0 : return 0;
67 : }
68 :
69 1 : virtual bool mapData(const uint128_t&) { return true; }
70 1 : virtual void syncData(const uint128_t&) { /* nop */}
71 1 : virtual void unmapData() { /* nop */}
72 :
73 : ObjectMap* getObjectMap();
74 : co::Object* getInitData();
75 :
76 : protected:
77 1 : virtual ~Config() {}
78 : ObjectMap* _objects;
79 :
80 : private:
81 : };
82 : }
83 : }
84 :
85 : #endif // EQSEQUEL_DETAIL_CONFIG_H
|