LCOV - code coverage report
Current view: top level - seq/detail - application.h (source / functions) Hit Total Coverage
Test: lcov2.info Lines: 2 2 100.0 %
Date: 2014-06-18 Functions: 2 2 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_APPLICATION_H
      19             : #define EQSEQUEL_DETAIL_APPLICATION_H
      20             : 
      21             : #include <seq/types.h>
      22             : #include <eq/client/nodeFactory.h> // base class
      23             : 
      24             : namespace seq
      25             : {
      26             : namespace detail
      27             : {
      28             :     /** The internal implementation for the main application object. */
      29             :     class Application : public eq::NodeFactory
      30             :     {
      31             :     public:
      32             :         Application( ApplicationPtr app, co::Object* initData );
      33             :         ~Application();
      34             : 
      35             :         Config* getConfig();
      36             :         const Config* getConfig() const;
      37           4 :         co::Object* getInitData() { return _initData; }
      38             : 
      39             :         bool isInitialized() const { return _config != 0; }
      40           1 :         bool isMaster() const { return _isMaster; }
      41             : 
      42             :         bool init();
      43             :         bool exit();
      44             :         bool run( co::Object* frameData );
      45             : 
      46             :     private:
      47             :         ApplicationPtr _app;
      48             :         Config* _config;
      49             :         co::Object* const _initData;
      50             :         bool _isMaster;
      51             : 
      52             :         virtual eq::Config* createConfig( eq::ServerPtr parent );
      53             :         virtual void releaseConfig( eq::Config* config );
      54             :         virtual eq::View* createView( eq::Layout* parent );
      55             :         virtual eq::Node* createNode( eq::Config* parent );
      56             :         virtual eq::Pipe* createPipe( eq::Node* parent );
      57             :         virtual eq::Window* createWindow( eq::Pipe* parent );
      58             :         virtual eq::Channel* createChannel( eq::Window* parent );
      59             :     };
      60             : }
      61             : }
      62             : 
      63             : #endif // EQSEQUEL_DETAIL_APPLICATION_H

Generated by: LCOV version 1.10