Line data Source code
1 :
2 : /* Copyright (c) 2010, Stefan Eilemann <eile@eyescale.ch>
3 : *
4 : * This library is free software; you can redistribute it and/or modify it under
5 : * the terms of the GNU Lesser General Public License version 2.1 as published
6 : * by the Free Software Foundation.
7 : *
8 : * This library is distributed in the hope that it will be useful, but WITHOUT
9 : * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 : * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11 : * details.
12 : *
13 : * You should have received a copy of the GNU Lesser General Public License
14 : * along with this library; if not, write to the Free Software Foundation, Inc.,
15 : * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 : */
17 :
18 : #include "nodeFactory.h"
19 :
20 : #include "canvas.h"
21 : #include "channel.h"
22 : #include "config.h"
23 : #include "layout.h"
24 : #include "node.h"
25 : #include "observer.h"
26 : #include "pipe.h"
27 : #include "segment.h"
28 : #include "view.h"
29 : #include "window.h"
30 :
31 : namespace eq
32 : {
33 : namespace server
34 : {
35 : namespace
36 : {
37 : }
38 :
39 0 : Config* NodeFactory::createConfig( ServerPtr parent )
40 0 : { return new Config( parent );}
41 0 : void NodeFactory::releaseConfig( Config* config ) { delete config; }
42 :
43 0 : Node* NodeFactory::createNode( Config* parent )
44 0 : { return new Node( parent ); }
45 0 : void NodeFactory::releaseNode( Node* node ) { delete node; }
46 :
47 0 : Observer* NodeFactory::createObserver( Config* parent )
48 0 : { return new Observer(parent); }
49 0 : void NodeFactory::releaseObserver( Observer* observer )
50 0 : { LBUNREACHABLE; delete observer; }
51 :
52 0 : Layout* NodeFactory::createLayout( Config* parent )
53 0 : { return new Layout( parent ); }
54 0 : void NodeFactory::releaseLayout( Layout* layout )
55 0 : { LBUNREACHABLE; delete layout; }
56 :
57 0 : View* NodeFactory::createView( Layout* parent ) { return new View( parent ); }
58 413 : void NodeFactory::releaseView( View* view ) { delete view; }
59 :
60 0 : Canvas* NodeFactory::createCanvas( Config* parent )
61 0 : { return new Canvas( parent ); }
62 0 : void NodeFactory::releaseCanvas( Canvas* canvas )
63 0 : { LBUNREACHABLE; delete canvas; }
64 :
65 0 : Segment* NodeFactory::createSegment( Canvas* parent )
66 0 : { return new Segment(parent); }
67 374 : void NodeFactory::releaseSegment( Segment* segment ) { delete segment; }
68 :
69 0 : Pipe* NodeFactory::createPipe( Node* parent ) { return new Pipe( parent ); }
70 0 : void NodeFactory::releasePipe( Pipe* pipe ) { delete pipe; }
71 :
72 0 : Window* NodeFactory::createWindow( Pipe* parent )
73 0 : { return new Window( parent ); }
74 0 : void NodeFactory::releaseWindow( Window* window )
75 0 : { LBUNREACHABLE; delete window; }
76 :
77 0 : Channel* NodeFactory::createChannel( Window* parent )
78 0 : { return new Channel(parent); }
79 0 : void NodeFactory::releaseChannel( Channel* channel )
80 0 : { LBUNREACHABLE; delete channel; }
81 :
82 : }
83 27 : }
84 :
|