This file is indexed.

/usr/include/openigtlink/igtlMessageHeader.h is in libopenigtlink1-dev 1.9.2~svn7468-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*=========================================================================

  Program:   Open IGT Link Library
  Module:    $HeadURL: http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlMessageHeader.h $
  Language:  C++
  Date:      $Date: 2008-12-22 19:05:42 -0500 (Mon, 22 Dec 2008) $
  Version:   $Revision: 3460 $

  Copyright (c) Insight Software Consortium. All rights reserved.

  This software is distributed WITHOUT ANY WARRANTY; without even
  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE.  See the above copyright notices for more information.

=========================================================================*/

#ifndef __igtlMessageHeader_h
#define __igtlMessageHeader_h

//-------------------------------------------------------------------------
// The MessageHeader class is used to receive and parse general headers
// to prepare for recieving body data. The class is currently just the alias
// of MessageBase class. Please refer igtlMessageBase.h for more details and
// the implementation of the class.
//
// The following is the typical unpacking (deserialization) prcedures
// using igtl::MessssageHeader class:
//
//     // Create instance and set Device Name
//     igtl::MessageBase::Pointer headerMsg;
//     headerMsg = igtl::MessageBase::New();
//
//     // Initialize receive buffer
//     // Set up memory area to and receive the general header and unpack
//     headerMsg->InitPack();
//
//     socket->Receive(headerMsg->GetPackPointer(), headerMsg->GetPackSize());
//     headerMsg->Unpack();
//
//     // Check data type string
//     if (strcmp(headerMsg->GetDeviceType(), "TRANSFORM"))
//       {
//         igtl::TransformMessage::Pointer transMsg;
//         transMsg = igtl::TransformMessage::New();
//         transMsg->SetMessageHeader(headerMsg);
//         transMsg->AllocatePack();
//
//         // Receive transform data from the socket//
//         socket->Receive(transMsg->GetPackBodyPointer(), transMsg->GetPackBodySize());
//
//         // Deserialize the transform data
//         transMsg->Unpack();
//
//         // Retrive the transform data
//         igtl::Matrix4x4 matrix;
//         transMsg->GetMatrix(matrix);
//
//         ....
//
//       }
//     else if (strcmp(headerMsg->GetDeviceType(), "IMAGE"))
//       {
//         igtl::ImageMessage::Pointer imageMsg;
//         imageMsg = igtl::ImageMessage::New();
//         transMsg->SetMessageHeader(headerMsg);
//         imageMsg->AllocatePack();
//         socket->Receive(imageMsg->GetPackBodyPointer(), imageMsg->GetPackBodySize());
//         imageMsg->Unpack();
//       }
//     else if (...)
//       {
//          ...
//       }
//


namespace igtl
{

  class MessageBase;
  typedef class MessageBase MessageHeader;

};

#include "igtlMessageBase.h"


#endif //__igtlMessageHeader_h