Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtlQueryMessage.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
15#ifndef __igtlQueryMessage_h
16#define __igtlQueryMessage_h
17
18#include <string>
19
20#include "igtlObject.h"
21#include "igtlMath.h"
22#include "igtlMessageBase.h"
23#include "igtlTypes.h"
24#include "igtl_query.h"
25
26namespace igtl
27{
28
31{
32public:
37
40
41public:
42
44 int SetDeviceUID(const char* string);
45
47 int SetDeviceUID(const std::string & string);
48
50 int SetDataType(const char* string);
51
53 int SetDataType(const std::string & string);
54
56 std::string GetDeviceUID();
57
59 std::string GetDataType();
60
61protected:
64
65protected:
66
68 virtual int PackContent();
69 virtual int UnpackContent();
70
72 std::string m_DeviceUID;
73
74 igtlUint32 m_QueryID;
75
77 igtlUint8 m_DataType[IGTL_QUERY_DATE_TYPE_SIZE ];
78};
79
80
81} // namespace igtl
82
83#endif // _igtlQueryMessage_h
84
85
86
THe STRING message type is used for transferring a character string. It supports character strings up...
int SetDeviceUID(const char *string)
Sets the string by character array.
std::string m_DeviceUID
The string.
virtual int UnpackContent()
Unpacks (deserialize) the content. Must be implemented in all child classes.
igtlNewMacro(igtl::QueryMessage)
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
std::string GetDeviceUID()
Gets the device uid.
virtual int CalculateContentBufferSize()
Gets the size of the serialized content.
int SetDataType(const char *string)
Sets the string by character array.
int SetDeviceUID(const std::string &string)
Sets the string by std::string.
std::string GetDataType()
Gets the data type.
int SetDataType(const std::string &string)
Sets the string by std::string.
igtlTypeMacro(igtl::QueryMessage, igtl::MessageBase)
virtual int PackContent()
Packs (serialize) the content. Must be implemented in all child classes.
Implements transparent reference counting.
#define IGTLCommon_EXPORT
#define IGTL_QUERY_DATE_TYPE_SIZE
Definition igtl_query.h:24
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