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 
23 namespace igtl
24 {
25 
27 {
28  public:
29 
31  typedef Object Superclass;
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 
#define igtlTypeMacro(thisClass, superclass)
Definition: igtlMacro.h:486
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...
virtual int ReceiveMessage(Socket *, MessageBase *, int)
#define IGTLCommon_EXPORT
SmartPointer< const Self > ConstPointer
MessageBase * GetMessageBuffer()
class IGTL_EXPORT Socket
Definition: igtlSocket.h:61
#define igtlNewMacro(x)
Definition: igtlMacro.h:431
void SetMessageBuffer(MessageBase *buffer)
Base class for most igtl classes.
Definition: igtlObject.h:60
SmartPointer< Self > Pointer

Generated at Tue Nov 3 2015 19:17:46 for OpenIGTLink by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2012