LCOV - code coverage report
Current view: top level - seq/detail - pipe.h (source / functions) Hit Total Coverage
Test: lcov2.info Lines: 1 1 100.0 %
Date: 2014-06-18 Functions: 1 1 100.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2011, 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             : #ifndef EQSEQUEL_DETAIL_PIPE_H
      19             : #define EQSEQUEL_DETAIL_PIPE_H
      20             : 
      21             : #include <seq/types.h>
      22             : #include <eq/client/pipe.h> // base class
      23             : 
      24             : namespace seq
      25             : {
      26             : namespace detail
      27             : {
      28             :     class Pipe : public eq::Pipe
      29             :     {
      30             :     public:
      31             :         Pipe( eq::Node* parent );
      32             : 
      33             :         /** @name Data Access. */
      34             :         //@{
      35             :         seq::Application* getApplication();
      36             :         Config* getConfig();
      37             :         Node* getNode();
      38          10 :         seq::Renderer* getRenderer() { return _renderer; }
      39             :         detail::Renderer* getRendererImpl();
      40             :         co::Object* getFrameData();
      41             :         //@}
      42             : 
      43             :     protected:
      44             :         virtual ~Pipe();
      45             : 
      46             :         virtual bool configInit( const uint128_t& initID );
      47             :         virtual bool configExit();
      48             : 
      49             :         virtual void frameStart( const uint128_t& frameID,
      50             :                                  const uint32_t frameNumber );
      51             :     private:
      52             :         bool _mapData( const uint128_t& initID );
      53             :         void _syncData( const uint128_t& version );
      54             :         void _unmapData();
      55             : 
      56             :         ObjectMap* _objects;
      57             :         seq::Renderer* _renderer;
      58             :     };
      59             : }
      60             : }
      61             : 
      62             : #endif // EQSEQUEL_DETAIL_PIPE_H

Generated by: LCOV version 1.10