LCOV - code coverage report
Current view: top level - seq/detail - application.h (source / functions) Hit Total Coverage
Test: Equalizer Lines: 2 2 100.0 %
Date: 2017-12-16 05:07:20 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 <eq/nodeFactory.h> // base class
      22             : #include <seq/types.h>
      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             :     bool isInitialized() const { return _config != 0; }
      39           1 :     bool isMaster() const { return _isMaster; }
      40             :     bool init();
      41             :     bool exit();
      42             :     bool run(co::Object* frameData);
      43             : 
      44             : private:
      45             :     ApplicationPtr _app;
      46             :     Config* _config;
      47             :     co::Object* const _initData;
      48             :     bool _isMaster;
      49             : 
      50             :     virtual eq::Config* createConfig(eq::ServerPtr parent);
      51             :     virtual void releaseConfig(eq::Config* config);
      52             :     virtual eq::View* createView(eq::Layout* parent);
      53             :     virtual eq::Node* createNode(eq::Config* parent);
      54             :     virtual eq::Pipe* createPipe(eq::Node* parent);
      55             :     virtual eq::Window* createWindow(eq::Pipe* parent);
      56             :     virtual eq::Channel* createChannel(eq::Window* parent);
      57             : };
      58             : }
      59             : }
      60             : 
      61             : #endif // EQSEQUEL_DETAIL_APPLICATION_H

Generated by: LCOV version 1.11