LCOV - code coverage report
Current view: top level - eq/fabric - global.cpp (source / functions) Hit Total Coverage
Test: Equalizer Lines: 12 21 57.1 %
Date: 2017-12-16 05:07:20 Functions: 6 9 66.7 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2010-2012, Stefan Eilemann <eile@eyescale.ch>
       3             :  *                    2012, Daniel Nachbaur <danielnachbaur@gmail.com>
       4             :  *
       5             :  * This library is free software; you can redistribute it and/or modify it under
       6             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       7             :  * by the Free Software Foundation.
       8             :  *
       9             :  * This library is distributed in the hope that it will be useful, but WITHOUT
      10             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      11             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      12             :  * details.
      13             :  *
      14             :  * You should have received a copy of the GNU Lesser General Public License
      15             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      16             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      17             :  */
      18             : 
      19             : #include "global.h"
      20             : 
      21             : #include "configParams.h"
      22             : #include "errorRegistry.h"
      23             : 
      24             : namespace eq
      25             : {
      26             : namespace fabric
      27             : {
      28             : namespace
      29             : {
      30          20 : static std::string _server;
      31          20 : static ErrorRegistry _errorRegistry;
      32             : static uint32_t _flags = ConfigParams::FLAG_NONE;
      33          20 : static Strings _prefixes;
      34             : }
      35             : 
      36           0 : void Global::setServer(const std::string& server)
      37             : {
      38           0 :     _server = server;
      39           0 : }
      40             : 
      41           4 : const std::string& Global::getServer()
      42             : {
      43           4 :     return _server;
      44             : }
      45             : 
      46          20 : ErrorRegistry& Global::getErrorRegistry()
      47             : {
      48          20 :     return _errorRegistry;
      49             : }
      50             : 
      51           0 : void Global::setFlags(const uint32_t flags)
      52             : {
      53           0 :     _flags = flags;
      54           0 : }
      55             : 
      56        1012 : uint32_t Global::getFlags()
      57             : {
      58        1012 :     return _flags;
      59             : }
      60             : 
      61           0 : void Global::setPrefixes(const Strings& prefixes)
      62             : {
      63           0 :     _prefixes = prefixes;
      64           0 : }
      65             : 
      66           4 : const Strings& Global::getPrefixes()
      67             : {
      68           4 :     return _prefixes;
      69             : }
      70             : }
      71          60 : }

Generated by: LCOV version 1.11