LCOV - code coverage report
Current view: top level - eq/client - nodeFactory.cpp (source / functions) Hit Total Coverage
Test: lcov2.info Lines: 51 51 100.0 %
Date: 2014-06-18 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           9 : Config* NodeFactory::createConfig( ServerPtr parent )
      37             : {
      38           9 :     return new Config( parent );
      39             : }
      40           9 : void NodeFactory::releaseConfig( Config* config )
      41             : {
      42           9 :     delete config;
      43           9 : }
      44             : 
      45           6 : Node* NodeFactory::createNode( Config* parent )
      46             : {
      47           6 :     return new Node( parent );
      48             : }
      49           8 : void NodeFactory::releaseNode( Node* node )
      50             : {
      51           8 :     delete node;
      52           8 : }
      53             : 
      54          10 : Observer* NodeFactory::createObserver( Config* parent )
      55             : {
      56          10 :     return new Observer( parent );
      57             : }
      58          10 : void NodeFactory::releaseObserver( Observer* observer )
      59             : {
      60          10 :     delete observer;
      61          10 : }
      62             : 
      63          63 : Layout* NodeFactory::createLayout( Config* parent )
      64             : {
      65          63 :     return new Layout( parent );
      66             : }
      67          63 : void NodeFactory::releaseLayout( Layout* layout )
      68             : {
      69          63 :     delete layout;
      70          63 : }
      71             : 
      72          56 : View* NodeFactory::createView( Layout* parent )
      73             : {
      74          56 :     return new View( parent );
      75             : }
      76          64 : void NodeFactory::releaseView( View* view )
      77             : {
      78          64 :     delete view;
      79          64 : }
      80             : 
      81          10 : Canvas* NodeFactory::createCanvas( Config* parent )
      82             : {
      83          10 :     return new Canvas( parent );
      84             : }
      85          10 : void NodeFactory::releaseCanvas( Canvas* canvas )
      86             : {
      87          10 :     delete canvas;
      88          10 : }
      89             : 
      90          10 : Segment* NodeFactory::createSegment( Canvas* parent )
      91             : {
      92          10 :     return new Segment( parent );
      93             : }
      94          10 : void NodeFactory::releaseSegment( Segment* segment )
      95             : {
      96          10 :     delete segment;
      97          10 : }
      98             : 
      99          10 : Pipe* NodeFactory::createPipe( Node* parent )
     100             : {
     101          10 :     return new Pipe( parent );
     102             : }
     103          15 : void NodeFactory::releasePipe( Pipe* pipe )
     104             : {
     105          15 :     delete pipe;
     106          15 : }
     107             : 
     108          13 : Window* NodeFactory::createWindow( Pipe* parent )
     109             : {
     110          13 :     return new Window( parent );
     111             : }
     112          15 : void NodeFactory::releaseWindow( Window* window )
     113             : {
     114          15 :     delete window;
     115          15 : }
     116             : 
     117          12 : Channel* NodeFactory::createChannel( Window* parent )
     118             : {
     119          12 :     return new Channel( parent );
     120             : }
     121             : 
     122          15 : void NodeFactory::releaseChannel( Channel* channel )
     123             : {
     124          15 :     delete channel;
     125          15 : }
     126             : 
     127          36 : }
     128             : 

Generated by: LCOV version 1.10