18 #ifndef __igstkCommunication_h
19 #define __igstkCommunication_h
56 virtual ResultType OpenCommunication(
void );
80 virtual ResultType
Write(
const char * ,
81 unsigned int ) {
return SUCCESS; }
84 virtual ResultType
Read(
char * ,
86 unsigned int & ) {
return SUCCESS; }
97 virtual void PrintSelf( std::ostream& os, itk::Indent indent )
const;
101 unsigned int m_TimeoutPeriod;
103 char m_ReadTerminationCharacter;
105 bool m_UseReadTerminationCharacter;
110 #endif //__igstk_Communication_h_
Communication(void)
Constructor is protected in order to enforce the use of the New() operator.
#define igstkGetMacro(name, type)
Get built-in type.
Base class for all the IGSTK classes.
#define igstkStandardClassTraitsMacro(classname, superclassname)
Convenience macro for traits of a non-templated class.
defines standard system-wide macros, constants, and other common parameters in the IGSTK Library...
Class Communication is the base class for communication between the tracker class and the hardware tr...
virtual ResultType Write(const char *, unsigned int)
Write method sends the string via communication link.
virtual ResultType CloseCommunication(void)
The method CloseCommunication closes the communication.
#define igstkSetMacro(name, type)
Set built-in type.
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const
Print object information.
virtual ResultType Read(char *, unsigned int, unsigned int &)
Read method receives string via communication link.
virtual ~Communication(void)