Commit 9556a941 authored by LEGEARD Luc's avatar LEGEARD Luc
Browse files

add 2 functions IsSame and RawEqual in

parent 9c8742c2
...@@ -34,6 +34,22 @@ MFMCommonFrame::MFMCommonFrame(int unitBlock_size, int dataSource, ...@@ -34,6 +34,22 @@ MFMCommonFrame::MFMCommonFrame(int unitBlock_size, int dataSource,
fFrameSize = frameSize; fFrameSize = frameSize;
}; };
//_______________________________________________________________________________
MFMCommonFrame::MFMCommonFrame(MFMCommonFrame* frame) {
/// Constructor \n
int i=0;
char* pttest;
char* thispttest;
frame->SetAttributs();
int size = testframe->GetFrameSize();
SetBufferSize(size);
thispttest = (char*)(GetPointHeader());
pttest = (char*)(testframe->GetPointHeader());
for (i=0; i<size; i++) {
(thispttest[i]=(char)((pttest[i])));
}
SetAttributs();
};
//_______________________________________________________________________________ //_______________________________________________________________________________
MFMCommonFrame::MFMCommonFrame() { MFMCommonFrame::MFMCommonFrame() {
......
...@@ -125,6 +125,7 @@ public : ...@@ -125,6 +125,7 @@ public :
MFMCommonFrame(); MFMCommonFrame();
MFMCommonFrame(int unitBlock_size, int dataSource, MFMCommonFrame(int unitBlock_size, int dataSource,
int frameType, int revision, int frameSize); int frameType, int revision, int frameSize);
MFMCommonFrame(MFMCommonFrame* frame);
virtual ~MFMCommonFrame(); virtual ~MFMCommonFrame();
virtual void Init(); virtual void Init();
virtual string WhichFrame(uint16_t type =0) const; virtual string WhichFrame(uint16_t type =0) const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment