This file is indexed.

/usr/include/openigtlink/igtlMessageFactory.h is in libopenigtlink-dev 1.11.0-3.

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
/*=========================================================================

  Program:   The OpenIGTLink Library
  Language:  C++
  Web page:  http://openigtlink.org/

  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 __igtlMessageFactory_h
#define __igtlMessageFactory_h

#include "igtlObject.h"
#include "igtlMacro.h"
#include "igtlMessageBase.h"
#include "igtlMessageHeader.h"

#include <set>

namespace igtl
{

class IGTLCommon_EXPORT MessageFactory: public Object
{

public:

  typedef MessageFactory            Self;
  typedef Object                    Superclass;
  typedef SmartPointer<Self>        Pointer;
  typedef SmartPointer<const Self>  ConstPointer;

  igtlTypeMacro(MessageFactory, Object)
  igtlNewMacro(MessageFactory);

  /// Checks that headerMsg is not null and the headerMsg->GetDeviceType() refers to a valid type, returning true if valid, and false otherwise.
  bool IsValid(igtl::MessageHeader::Pointer headerMsg);

  /// Constructs a message from the given header.
  /// Throws invalid_argument if headerMsg is NULL.
  /// Throws invalid_argument if this->IsValid(headerMsg) returns false.
  /// Creates message, sets header onto message and calls AllocatePack() on the message.
  igtl::MessageBase::Pointer GetMessage(igtl::MessageHeader::Pointer headerMsg);

protected:
  MessageFactory();
  ~MessageFactory();

private:

  std::set<std::string> m_DeviceTypes;

}; // end class

} // end namespace

#endif // __igtlMessageFactory_h