LCOV - code coverage report
Current view: top level - eq/server - nodeFactory.cpp (source / functions) Hit Total Coverage
Test: Equalizer Lines: 7 56 12.5 %
Date: 2017-12-16 05:07:20 Functions: 4 22 18.2 %

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

Generated by: LCOV version 1.11