Equalizer  1.2.1
include/eq/client/nodeFactory.h
00001 
00002 /* Copyright (c) 2005-2011, 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 #ifndef EQ_NODEFACTORY_H
00019 #define EQ_NODEFACTORY_H
00020 
00021 #include <eq/client/types.h>
00022 #include <eq/client/api.h>
00023 
00024 namespace eq
00025 {
00036     class EQ_API NodeFactory
00037     {
00038     public:
00045         virtual Config* createConfig( ServerPtr parent );
00046 
00048         virtual void releaseConfig( Config* config );
00049 
00056         virtual Node* createNode( Config* parent );
00057 
00059         virtual void releaseNode( Node* node );
00060 
00067         virtual Pipe* createPipe( Node* parent );
00068 
00070         virtual void releasePipe( Pipe* pipe );
00071 
00078         virtual Window* createWindow( Pipe* parent );
00079 
00081         virtual void releaseWindow( Window* window );
00082 
00089         virtual Channel* createChannel( Window* parent );
00090 
00092         virtual void releaseChannel( Channel* channel );
00093 
00100         virtual Observer* createObserver( Config* parent );
00101 
00103         virtual void releaseObserver( Observer* observer );
00104 
00111         virtual Layout* createLayout( Config* parent );
00112 
00114         virtual void releaseLayout( Layout* layout );
00115 
00122         virtual View* createView( Layout* parent );
00123 
00125         virtual void releaseView( View* view );
00126 
00133         virtual Canvas* createCanvas( Config* parent );
00134 
00136         virtual void releaseCanvas( Canvas* canvas );
00137 
00144         virtual Segment* createSegment( Canvas* parent );
00145 
00147         virtual void releaseSegment( Segment* segment );
00148 
00150         virtual ~NodeFactory(){}
00151     };
00152 }
00153 
00154 #endif // EQ_NODEFACTORY_H
00155 
Generated on Fri Jun 8 2012 15:44:31 for Equalizer 1.2.1 by  doxygen 1.8.0