Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtlMessageFactory.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: The OpenIGTLink Library
4 Language: C++
5 Web page: http://openigtlink.org/
6
7 Copyright (c) Insight Software Consortium. All rights reserved.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notices for more information.
12
13=========================================================================*/
14#ifndef __igtlMessageFactory_h
15#define __igtlMessageFactory_h
16
17#include "igtlObject.h"
18#include "igtlMacro.h"
19#include "igtlMessageBase.h"
20#include "igtlMessageHeader.h"
21
22#include <set>
23
24namespace igtl
25{
26
28{
29
30public:
31
36
39
41 bool IsValid(igtl::MessageHeader::Pointer headerMsg);
42
47 igtl::MessageBase::Pointer GetMessage(igtl::MessageHeader::Pointer headerMsg);
48
49protected:
52
53private:
54
55 std::set<std::string> m_DeviceTypes;
56
57}; // end class
58
59} // end namespace
60
61#endif // __igtlMessageFactory_h
igtl::MessageBase::Pointer GetMessage(igtl::MessageHeader::Pointer headerMsg)
SmartPointer< Self > Pointer
bool IsValid(igtl::MessageHeader::Pointer headerMsg)
Checks that headerMsg is not null and the headerMsg->GetDeviceType() refers to a valid type,...
igtlTypeMacro(MessageFactory, Object) igtlNewMacro(MessageFactory)
SmartPointer< const Self > ConstPointer
Base class for most igtl classes.
Definition igtlObject.h:61
Implements transparent reference counting.
#define igtlNewMacro(x)
Definition igtlMacro.h:431
#define IGTLCommon_EXPORT
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...

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