LCOV - code coverage report
Current view: top level - eq/fabric - iAttribute.cpp (source / functions) Hit Total Coverage
Test: Equalizer Lines: 32 45 71.1 %
Date: 2017-12-16 05:07:20 Functions: 3 3 100.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2010-2012, 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             : #include "iAttribute.h"
      19             : 
      20             : #include <iostream>
      21             : 
      22             : namespace eq
      23             : {
      24             : namespace fabric
      25             : {
      26         966 : std::ostream& operator<<(std::ostream& os, const IAttribute value)
      27             : {
      28         966 :     if (value >= fabric::SOCKET && value <= fabric::SOCKET_MAX)
      29           0 :         return os << "socket " << value - fabric::SOCKET;
      30             : 
      31         966 :     switch (value)
      32             :     {
      33             :     case UNDEFINED:
      34           0 :         os << "UNDEFINED";
      35           0 :         break;
      36             :     case ON:
      37         152 :         os << "ON";
      38         152 :         break;
      39             :     case OFF:
      40         316 :         os << "OFF";
      41         316 :         break;
      42             :     case AUTO:
      43         202 :         os << "AUTO";
      44         202 :         break;
      45             :     case NICEST:
      46           4 :         os << "NICEST";
      47           4 :         break;
      48             :     case PASSIVE:
      49           2 :         os << "PASSIVE";
      50           2 :         break;
      51             :     case ANAGLYPH:
      52          10 :         os << "ANAGLYPH";
      53          10 :         break;
      54             :     case QUAD:
      55           0 :         os << "QUAD";
      56           0 :         break;
      57             :     case VERTICAL:
      58           0 :         os << "VERTICAL";
      59           0 :         break;
      60             :     case WINDOW:
      61           6 :         os << "window";
      62           6 :         break;
      63             :     case ASYNC:
      64           0 :         os << "ASYNC";
      65           0 :         break;
      66             :     case DRAW_SYNC:
      67           0 :         os << "DRAW_SYNC";
      68           0 :         break;
      69             :     case LOCAL_SYNC:
      70           2 :         os << "LOCAL_SYNC";
      71           2 :         break;
      72             :     case FBO:
      73          38 :         os << "FBO";
      74          38 :         break;
      75             :     case RGBA16F:
      76           4 :         os << "RGBA16F";
      77           4 :         break;
      78             :     case RGBA32F:
      79           2 :         os << "RGBA32F";
      80           2 :         break;
      81             :     case FIXED:
      82         204 :         os << "fixed";
      83         204 :         break;
      84             :     case RELATIVE_TO_ORIGIN:
      85           0 :         os << "relative_to_origin";
      86           0 :         break;
      87             :     case RELATIVE_TO_OBSERVER:
      88           2 :         os << "relative_to_observer";
      89           2 :         break;
      90             :     default:
      91          22 :         os << static_cast<int>(value);
      92             :     }
      93         966 :     return os;
      94             : }
      95             : }
      96          60 : }

Generated by: LCOV version 1.11