34 #ifndef ENCODEDPACKAGE_H
35 #define ENCODEDPACKAGE_H
38 #include <boost/shared_ptr.hpp>
42 #include "igtlMessageHeader.h"
90 EncodedPackage(reinterpret_cast<char*>(msg->GetPackPointer()), msg->GetPackSize()),
103 std::cout <<
"dataArrived()" << std::endl;
131 mData->pointer =
reinterpret_cast<char*
>(msg->GetPackBodyPointer());
132 mData->size = msg->GetPackBodySize();
146 #endif // ENCODEDPACKAGE_H
igtlEncodedPackage(typename TYPE::Pointer msg)
virtual bool isFinishedWith()=0
virtual void notifyDataArrived()=0
const ByteArrayPtr data() const
boost::shared_ptr< ByteArray > ByteArrayPtr
static EncodedPackagePtr create(igtl::MessageBase::Pointer msg)
boost::shared_ptr< EncodedPackage > EncodedPackagePtr
virtual bool isFinishedWith()
virtual ~EncodedPackage()
virtual ~igtlEncodedBodyPackage()
virtual ~igtlEncodedPackage()
virtual const ByteArrayPtr data() const =0
virtual void notifyDataArrived()
EncodedPackage(char *pointer=NULL, int size=0)
static EncodedPackagePtr create(typename TYPE::Pointer msg)
igtlEncodedBodyPackage(igtl::MessageBase::Pointer msg)