00001 00002 /* Copyright (c) 2009, Stefan Eilemann <eile@equalizergraphics.com> 00003 * 00004 * This library is free software; you can redistribute it and/or modify it under 00005 * the terms of the GNU Lesser General Public License version 2.1 as published 00006 * by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, but WITHOUT 00009 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00010 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00011 * details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public License 00014 * along with this library; if not, write to the Free Software Foundation, Inc., 00015 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00016 */ 00017 00018 #include "nodeFactory.h" 00019 00020 #include "canvas.h" 00021 #include "channel.h" 00022 #include "client.h" 00023 #include "config.h" 00024 #include "layout.h" 00025 #include "node.h" 00026 #include "observer.h" 00027 #include "pipe.h" 00028 #include "segment.h" 00029 #include "server.h" 00030 #include "view.h" 00031 #include "window.h" 00032 00033 namespace eq 00034 { 00035 00036 Config* NodeFactory::createConfig( ServerPtr parent ) 00037 { 00038 return new Config( parent ); 00039 } 00040 void NodeFactory::releaseConfig( Config* config ) 00041 { 00042 delete config; 00043 } 00044 00045 Node* NodeFactory::createNode( Config* parent ) 00046 { 00047 return new Node( parent ); 00048 } 00049 void NodeFactory::releaseNode( Node* node ) 00050 { 00051 delete node; 00052 } 00053 00054 Observer* NodeFactory::createObserver() 00055 { 00056 return new Observer(); 00057 } 00058 void NodeFactory::releaseObserver( Observer* observer ) 00059 { 00060 delete observer; 00061 } 00062 00063 Layout* NodeFactory::createLayout() 00064 { 00065 return new Layout(); 00066 } 00067 void NodeFactory::releaseLayout( Layout* layout ) 00068 { 00069 delete layout; 00070 } 00071 00072 View* NodeFactory::createView() 00073 { 00074 return new View(); 00075 } 00076 void NodeFactory::releaseView( View* view ) 00077 { 00078 delete view; 00079 } 00080 00081 Canvas* NodeFactory::createCanvas() 00082 { 00083 return new Canvas(); 00084 } 00085 void NodeFactory::releaseCanvas( Canvas* canvas ) 00086 { 00087 delete canvas; 00088 } 00089 00090 Segment* NodeFactory::createSegment() 00091 { 00092 return new Segment(); 00093 } 00094 void NodeFactory::releaseSegment( Segment* segment ) 00095 { 00096 delete segment; 00097 } 00098 00099 Pipe* NodeFactory::createPipe( Node* parent ) 00100 { 00101 return new Pipe( parent ); 00102 } 00103 void NodeFactory::releasePipe( Pipe* pipe ) 00104 { 00105 delete pipe; 00106 } 00107 00108 Window* NodeFactory::createWindow( Pipe* parent ) 00109 { 00110 return new Window( parent ); 00111 } 00112 void NodeFactory::releaseWindow( Window* window ) 00113 { 00114 delete window; 00115 } 00116 00117 Channel* NodeFactory::createChannel( Window* parent ) 00118 { 00119 return new Channel( parent ); 00120 } 00121 00122 void NodeFactory::releaseChannel( Channel* channel ) 00123 { 00124 delete channel; 00125 } 00126 00127 } 00128
0.9 by
1.5.8