LCOV - code coverage report
Current view: top level - eq - nodeFactory.cpp (source / functions) Hit Total Coverage
Test: Equalizer Lines: 51 51 100.0 %
Date: 2016-09-29 05:02:09 Functions: 22 22 100.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2009-2010, Stefan Eilemann <eile@equalizergraphics.com> 
       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 "client.h"
      23             : #include "config.h"
      24             : #include "layout.h"
      25             : #include "node.h"
      26             : #include "observer.h"
      27             : #include "pipe.h"
      28             : #include "segment.h"
      29             : #include "server.h"
      30             : #include "view.h"
      31             : #include "window.h"
      32             : 
      33             : namespace eq
      34             : {
      35             : 
      36           2 : Config* NodeFactory::createConfig( ServerPtr parent )
      37             : {
      38           2 :     return new Config( parent );
      39             : }
      40           2 : void NodeFactory::releaseConfig( Config* config )
      41             : {
      42           2 :     delete config;
      43           2 : }
      44             : 
      45           1 : Node* NodeFactory::createNode( Config* parent )
      46             : {
      47           1 :     return new Node( parent );
      48             : }
      49           1 : void NodeFactory::releaseNode( Node* node )
      50             : {
      51           1 :     delete node;
      52           1 : }
      53             : 
      54           2 : Observer* NodeFactory::createObserver( Config* parent )
      55             : {
      56           2 :     return new Observer( parent );
      57             : }
      58           2 : void NodeFactory::releaseObserver( Observer* observer )
      59             : {
      60           2 :     delete observer;
      61           2 : }
      62             : 
      63           2 : Layout* NodeFactory::createLayout( Config* parent )
      64             : {
      65           2 :     return new Layout( parent );
      66             : }
      67           2 : void NodeFactory::releaseLayout( Layout* layout )
      68             : {
      69           2 :     delete layout;
      70           2 : }
      71             : 
      72           2 : View* NodeFactory::createView( Layout* parent )
      73             : {
      74           2 :     return new View( parent );
      75             : }
      76           2 : void NodeFactory::releaseView( View* view )
      77             : {
      78           2 :     delete view;
      79           2 : }
      80             : 
      81           2 : Canvas* NodeFactory::createCanvas( Config* parent )
      82             : {
      83           2 :     return new Canvas( parent );
      84             : }
      85           2 : void NodeFactory::releaseCanvas( Canvas* canvas )
      86             : {
      87           2 :     delete canvas;
      88           2 : }
      89             : 
      90           2 : Segment* NodeFactory::createSegment( Canvas* parent )
      91             : {
      92           2 :     return new Segment( parent );
      93             : }
      94           2 : void NodeFactory::releaseSegment( Segment* segment )
      95             : {
      96           2 :     delete segment;
      97           2 : }
      98             : 
      99           1 : Pipe* NodeFactory::createPipe( Node* parent )
     100             : {
     101           1 :     return new Pipe( parent );
     102             : }
     103           1 : void NodeFactory::releasePipe( Pipe* pipe )
     104             : {
     105           1 :     delete pipe;
     106           1 : }
     107             : 
     108           1 : Window* NodeFactory::createWindow( Pipe* parent )
     109             : {
     110           1 :     return new Window( parent );
     111             : }
     112           1 : void NodeFactory::releaseWindow( Window* window )
     113             : {
     114           1 :     delete window;
     115           1 : }
     116             : 
     117           1 : Channel* NodeFactory::createChannel( Window* parent )
     118             : {
     119           1 :     return new Channel( parent );
     120             : }
     121             : 
     122           1 : void NodeFactory::releaseChannel( Channel* channel )
     123             : {
     124           1 :     delete channel;
     125           1 : }
     126             : 
     127          42 : }
     128             : 

Generated by: LCOV version 1.11