LCOV - code coverage report
Current view: top level - eq/fabric - iAttribute.cpp (source / functions) Hit Total Coverage
Test: lcov2.info Lines: 20 27 74.1 %
Date: 2014-06-18 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         580 : std::ostream& operator << ( std::ostream& os, const IAttribute value )
      27             : {
      28         580 :     if ( value >= fabric::SOCKET && value <= fabric::SOCKET_MAX )
      29           0 :         return os << "socket " << value - fabric::SOCKET;
      30             : 
      31         580 :     switch( value )
      32             :     {
      33           0 :         case UNDEFINED:     os << "UNDEFINED"; break;
      34          97 :         case ON:            os << "ON"; break; 
      35         175 :         case OFF:           os << "OFF"; break;
      36         118 :         case AUTO:          os << "AUTO"; break;
      37           2 :         case NICEST:        os << "NICEST"; break;
      38           1 :         case PASSIVE:       os << "PASSIVE"; break;
      39           5 :         case ANAGLYPH:      os << "ANAGLYPH"; break;
      40           0 :         case QUAD:          os << "QUAD"; break;
      41           0 :         case VERTICAL:      os << "VERTICAL"; break;
      42           3 :         case WINDOW:        os << "window"; break;
      43          18 :         case PBUFFER:       os << "pbuffer"; break; 
      44           0 :         case ASYNC:         os << "ASYNC"; break; 
      45           0 :         case DRAW_SYNC:     os << "DRAW_SYNC"; break; 
      46           1 :         case LOCAL_SYNC:    os << "LOCAL_SYNC"; break; 
      47          23 :         case FBO:           os << "FBO"; break; 
      48           2 :         case RGBA16F:       os << "RGBA16F"; break;
      49           4 :         case RGBA32F:       os << "RGBA32F"; break;
      50         120 :         case FIXED:         os << "fixed"; break;
      51           0 :         case RELATIVE_TO_ORIGIN:   os << "relative_to_origin"; break;
      52           1 :         case RELATIVE_TO_OBSERVER: os << "relative_to_observer"; break;
      53          10 :         default:            os << static_cast< int >( value );
      54             :     }
      55         580 :     return os;
      56             : }
      57             : 
      58             : }
      59          45 : }

Generated by: LCOV version 1.10