LCOV - code coverage report
Current view: top level - eq/admin - nodeFactory.cpp (source / functions) Hit Total Coverage
Test: Equalizer Lines: 1 29 3.4 %
Date: 2016-07-30 05:04:55 Functions: 2 22 9.1 %

          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 "server.h"
      29             : #include "view.h"
      30             : #include "window.h"
      31             : 
      32             : namespace eq
      33             : {
      34             : namespace admin
      35             : {
      36           0 : Config* NodeFactory::createConfig( ServerPtr parent )
      37           0 : { return new Config( parent );}
      38           0 : void NodeFactory::releaseConfig( Config* config ) { delete config; }
      39             : 
      40           0 : Node* NodeFactory::createNode( Config* parent )
      41           0 : { return new Node( parent ); }
      42           0 : void NodeFactory::releaseNode( Node* node ) { delete node; }
      43             : 
      44           0 : Observer* NodeFactory::createObserver( Config* parent )
      45           0 : { return new Observer(parent); }
      46           0 : void NodeFactory::releaseObserver( Observer* observer ) { delete observer; }
      47             : 
      48           0 : Layout* NodeFactory::createLayout( Config* parent )
      49           0 : { return new Layout( parent ); }
      50           0 : void NodeFactory::releaseLayout( Layout* layout ) { delete layout; }
      51             : 
      52           0 : View* NodeFactory::createView( Layout* parent ) { return new View( parent ); }
      53           0 : void NodeFactory::releaseView( View* view ) { delete view; }
      54             : 
      55           0 : Canvas* NodeFactory::createCanvas( Config* parent )
      56           0 : { return new Canvas( parent ); }
      57           0 : void NodeFactory::releaseCanvas( Canvas* canvas ) { delete canvas; }
      58             : 
      59           0 : Segment* NodeFactory::createSegment( Canvas* parent )
      60           0 : { return new Segment(parent); }
      61           0 : void NodeFactory::releaseSegment( Segment* segment ) { delete segment; }
      62             : 
      63           0 : Pipe* NodeFactory::createPipe( Node* parent ) { return new Pipe( parent ); }
      64           0 : void NodeFactory::releasePipe( Pipe* pipe ) { delete pipe; }
      65             : 
      66           0 : Window* NodeFactory::createWindow( Pipe* parent )
      67           0 : { return new Window( parent ); }
      68           0 : void NodeFactory::releaseWindow( Window* window ) { delete window; }
      69             : 
      70           0 : Channel* NodeFactory::createChannel( Window* parent )
      71           0 : { return new Channel(parent); }
      72           0 : void NodeFactory::releaseChannel( Channel* channel ) { delete channel; }
      73             : 
      74             : }
      75          84 : }
      76             : 

Generated by: LCOV version 1.11