| Visioscan Set SDK Libraries 1.3.5 Visioscan Set SDK Help documentation file for C++ and C++/CLI |

Loading...
Searching...
No Matches
BaseDataExtractor.h
1#pragma once
2#include <vector>
3#include <string>
4#include "RawData.h"
5 using namespace std;
6
7#ifdef STARFLEETTOOLBOX_EXPORTS
8#define BASEEXTRACT __declspec(dllexport)
9#else
10#define BASEEXTRACT __declspec(dllimport)
11#endif
12
13
14
19 class BASEEXTRACT BaseDataExtractor abstract
20{
21 public:
28 virtual RawData ExtractData(vector<string>pDataToExtract) = 0;
29
36 virtual bool IsCommandAcknowledgment(string pDataToVerify) = 0;
37
44 virtual bool IsHeader(string pDataToVerify) = 0;
45
52 virtual bool IsEndOfPacket(string pDataToVerify) = 0;
53
60 virtual bool IsFirstPacket(string pDataToVerify) = 0;
61
66 virtual int GetPacketHeaderSizeToRead() = 0;
67
72 virtual int CountToReadForLength(char* pHeaderBuffer) = 0;
73
80 virtual int GetPacketLengthToRead(char* pLenHeaderBuffer, int pPacketType) = 0;
81};
82
abstract::GetPacketLengthToRead
virtual int GetPacketLengthToRead(char *pLenHeaderBuffer, int pPacketType)=0
Retrieve, in the pLenHeaderBuffer, the amount of data to read.
abstract::ExtractData
virtual RawData ExtractData(vector< string >pDataToExtract)=0
Pure virtual method that will help the caller to extract the rawdata from a stream.
abstract::IsFirstPacket
virtual bool IsFirstPacket(string pDataToVerify)=0
abstract::CountToReadForLength
virtual int CountToReadForLength(char *pHeaderBuffer)=0
Indicates how much byte must be read in order to obtain packet len.
abstract::IsEndOfPacket
virtual bool IsEndOfPacket(string pDataToVerify)=0
Pure virtual method that will help the caller to check if stream packet is the end of stream.
abstract::IsHeader
virtual bool IsHeader(string pDataToVerify)=0
Pure virtual method that will thel the caller to check if the packet is a BEA Header.
abstract::IsCommandAcknowledgment
virtual bool IsCommandAcknowledgment(string pDataToVerify)=0
Pure virtual method that will help the caller to discriminate rawdata header from acknowledgment comm...
abstract::GetPacketHeaderSizeToRead
virtual int GetPacketHeaderSizeToRead()=0
Returns a pointer on an array with a determined size.
RawData
The base class encapsulating sensor's RAW data.
Definition RawData.h:14