Collage  0.6.1
connectionType.h
00001 
00002 /* Copyright (c) 2007-2012, Stefan Eilemann <eile@equalizergraphics.com> 
00003  *
00004  * This library is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Lesser General Public License version 2.1 as published
00006  * by the Free Software Foundation.
00007  *  
00008  * This library is distributed in the hope that it will be useful, but WITHOUT
00009  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00010  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00011  * details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this library; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  */
00017 
00018 #ifndef CO_CONNECTIONTYPE_H
00019 #define CO_CONNECTIONTYPE_H
00020 
00021 #include <lunchbox/debug.h>
00022 #include <iostream>
00023 
00024 namespace co
00025 {
00027     enum ConnectionType
00028     {
00029         CONNECTIONTYPE_NONE = 0,
00030         CONNECTIONTYPE_TCPIP,     
00031         CONNECTIONTYPE_SDP,       
00032         CONNECTIONTYPE_PIPE,      
00033         CONNECTIONTYPE_NAMEDPIPE, 
00034         CONNECTIONTYPE_IB,        
00035         CONNECTIONTYPE_RDMA,      
00036         CONNECTIONTYPE_UDT,       
00037         CONNECTIONTYPE_MULTICAST = 0x100,
00038         CONNECTIONTYPE_PGM,       
00039         CONNECTIONTYPE_RSP        
00040     };
00041 
00042     inline std::ostream& operator << ( std::ostream& os,
00043                                        const ConnectionType& type )
00044     {
00045         switch( type )
00046         {
00047             case CONNECTIONTYPE_TCPIP: return os << "TCPIP";
00048             case CONNECTIONTYPE_SDP: return os << "SDP";
00049             case CONNECTIONTYPE_PIPE: return os << "ANON_PIPE";
00050             case CONNECTIONTYPE_NAMEDPIPE: return os << "PIPE";
00051             case CONNECTIONTYPE_IB: return os << "IB";
00052             case CONNECTIONTYPE_PGM: return os << "PGM";
00053             case CONNECTIONTYPE_RSP: return os << "RSP";
00054             case CONNECTIONTYPE_NONE: return os << "NONE";
00055             case CONNECTIONTYPE_RDMA: return os << "RDMA";
00056             case CONNECTIONTYPE_UDT: return os << "UDT";
00057                 
00058             default:
00059                 LBASSERTINFO( false, "Not implemented" );
00060                 return os << "ERROR";
00061         }
00062         return os;
00063     }
00064 }
00065 
00066 #endif // CO_CONNECTIONTYPE_H
Generated on Mon Nov 26 2012 14:41:44 for Collage 0.6.1 by  doxygen 1.7.6.1