LCOV - code coverage report
Current view: top level - eq/admin - config.h (source / functions) Hit Total Coverage
Test: Equalizer Lines: 0 5 0.0 %
Date: 2017-12-16 05:07:20 Functions: 0 4 0.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2010-2014, 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 EQADMIN_CONFIG_H
      19             : #define EQADMIN_CONFIG_H
      20             : 
      21             : #include <eq/admin/types.h>   // typedefs
      22             : #include <eq/fabric/config.h> // base class
      23             : 
      24             : namespace eq
      25             : {
      26             : namespace admin
      27             : {
      28             : class Config : public fabric::Config<Server, Config, Observer, Layout, Canvas,
      29             :                                      Node, ConfigVisitor>
      30             : {
      31             : public:
      32             :     typedef fabric::Config<Server, Config, Observer, Layout, Canvas, Node,
      33             :                            ConfigVisitor>
      34             :         Super;
      35             : 
      36             :     /** Construct a new config. @version 1.0 */
      37             :     EQADMIN_API explicit Config(ServerPtr parent);
      38             : 
      39             :     /** Destruct a config. @version 1.0 */
      40             :     EQADMIN_API virtual ~Config();
      41             : 
      42             :     /** @return the local client node. @version 1.0 */
      43             :     EQADMIN_API ClientPtr getClient();
      44             : 
      45             :     /** @return the local client node. @version 1.0 */
      46             :     EQADMIN_API ConstClientPtr getClient() const;
      47             : 
      48             :     EQADMIN_API co::CommandQueue* getMainThreadQueue(); //!< @internal
      49             : 
      50             :     /** Commit all changes on this config and its children. @version 1.0 */
      51             :     EQADMIN_API virtual uint128_t commit(
      52             :         const uint32_t incarnation = CO_COMMIT_NEXT);
      53             : 
      54             :     /** @internal */
      55           0 :     const Channel* findChannel(const std::string& name) const
      56             :     {
      57           0 :         return find<Channel>(name);
      58             :     }
      59             : 
      60           0 :     void output(std::ostream&) const {}                  //!< @internal
      61           0 :     virtual bool mapViewObjects() const { return true; } //!< @internal
      62           0 :     virtual bool mapNodeObjects() const { return true; } //!< @internal
      63             : };
      64             : }
      65             : }
      66             : 
      67             : #endif // EQADMIN_CONFIG_H

Generated by: LCOV version 1.11