Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtlCommon.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: The OpenIGTLink Library
4Language: C++
5Web page: http://openigtlink.org/
6
7Copyright (c) Insight Software Consortium. All rights reserved.
8
9This software is distributed WITHOUT ANY WARRANTY; without even
10the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11PURPOSE. See the above copyright notices for more information.
12
13=========================================================================*/
14/*=========================================================================
15
16Program: Open Image Guided Therapy Link Network Layer
17Module: $RCSfile: igtlCommon.h,v $
18Language: C++
19Date: $Date: 2008-12-22 19:05:42 -0500 (Mon, 22 Dec 2008) $
20Version: $Revision: 3460 $
21
22Copyright (c) Insight Software Consortium. All rights reserved.
23See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
24
25This software is distributed WITHOUT ANY WARRANTY; without even
26the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
27PURPOSE. See the above copyright notices for more information.
28
29=========================================================================*/
30
31#ifndef __igtlCommon_h
32#define __igtlCommon_h
33
34#include <igtlConfigure.h>
35#include <igtl_header.h>
36
37namespace igtl
38{
41 static int IGTLProtocolToHeaderLookup(int igtlProtocolVersion)
42 {
43 if( igtlProtocolVersion == OpenIGTLink_PROTOCOL_VERSION_1 || igtlProtocolVersion == OpenIGTLink_PROTOCOL_VERSION_2 )
44 {
46 }
47 else if( igtlProtocolVersion == OpenIGTLink_PROTOCOL_VERSION_3)
48 {
50 }
51 else
52 {
53 // TODO : which error mechanism to use for error reporting
55 }
56 }
57}
58
59#endif
#define IGTL_HEADER_VERSION_2
Definition igtl_header.h:19
#define IGTL_HEADER_VERSION_1
Definition igtl_header.h:18
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...
static int IGTLProtocolToHeaderLookup(int igtlProtocolVersion)
Definition igtlCommon.h:41

Generated for OpenIGTLink by Doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2012