Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtlMessageHandler.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: OpenIGTLink Library
4 Module: git@github.com:openigtlink/OpenIGTLink.git
5 Language: C++
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
15#ifndef __igtlMessageHandler_h
16#define __igtlMessageHandler_h
17
18#include "igtlObject.h"
19#include "igtlMacro.h"
20#include "igtlSocket.h"
21#include "igtlMessageBase.h"
22
23namespace igtl
24{
25
27{
28 public:
29
34
37
38 public:
39 virtual const char* GetMessageType() { return ""; }
40 virtual int ReceiveMessage(Socket*, MessageBase*, int) { return 0; };
41
42 void SetMessageBuffer(MessageBase* buffer) { this->m_Buffer = buffer; }
43 MessageBase * GetMessageBuffer() { return this->m_Buffer; }
44
45 protected:
48
49
50
51 protected:
53
54};
55
56} // namespace igtl
57
58#endif // _igtlMessageHandler_h
59
60
61
62
63
virtual int ReceiveMessage(Socket *, MessageBase *, int)
void SetMessageBuffer(MessageBase *buffer)
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
MessageBase * GetMessageBuffer()
virtual const char * GetMessageType()
Base class for most igtl classes.
Definition igtlObject.h:61
Implements transparent reference counting.
class IGTL_EXPORT Socket
Definition igtlSocket.h:62
#define igtlTypeMacro(thisClass, superclass)
Definition igtlMacro.h:486
#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