LCOV - code coverage report
Current view: top level - eq/client - canvas.cpp (source / functions) Hit Total Coverage
Test: lcov2.info Lines: 6 10 60.0 %
Date: 2014-06-18 Functions: 5 6 83.3 %

          Line data    Source code
       1             : /* Copyright (c) 2009-2014, Stefan Eilemann <eile@equalizergraphics.com>
       2             :  *
       3             :  * This library is free software; you can redistribute it and/or modify it under
       4             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       5             :  * by the Free Software Foundation.
       6             :  *
       7             :  * This library is distributed in the hope that it will be useful, but WITHOUT
       8             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
       9             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      10             :  * details.
      11             :  *
      12             :  * You should have received a copy of the GNU Lesser General Public License
      13             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      14             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      15             :  */
      16             : 
      17             : #include "canvas.h"
      18             : 
      19             : #include "config.h"
      20             : #include "layout.h"
      21             : #include "nodeFactory.h"
      22             : #include "segment.h"
      23             : 
      24             : #include <eq/fabric/elementVisitor.h>
      25             : #include <co/dataIStream.h>
      26             : #include <co/dataOStream.h>
      27             : 
      28             : #pragma clang diagnostic ignored "-Wunused-private-field" // _impl is unused
      29             : 
      30             : namespace eq
      31             : {
      32             : typedef fabric::Canvas< Config, Canvas, Segment, Layout > Super;
      33             : 
      34          10 : Canvas::Canvas( Config* parent )
      35             :         : Super( parent )
      36          10 :         , _impl( 0 )
      37             : {
      38          10 : }
      39             : 
      40             : 
      41          20 : Canvas::~Canvas()
      42             : {
      43          20 : }
      44             : 
      45           0 : ServerPtr Canvas::getServer()
      46             : {
      47           0 :     Config* config = getConfig();
      48           0 :     LBASSERT( config );
      49           0 :     return ( config ? config->getServer() : 0 );
      50             : }
      51             : 
      52             : }
      53             : 
      54             : 
      55             : #include "server.h"
      56             : #include "../fabric/canvas.ipp"
      57             : template class eq::fabric::Canvas< eq::Config, eq::Canvas, eq::Segment,
      58             :                                    eq::Layout >;
      59             : /** @cond IGNORE */
      60             : template EQFABRIC_API std::ostream& eq::fabric::operator << ( std::ostream&,
      61          36 :                                                  const eq::Super& );
      62             : /** @endcond */

Generated by: LCOV version 1.10