00001 #include "regular.h"
00002 #include <stdio.h>
00003
00004
00005
00006
00007
00008 bool vu11::read(FILE *file)
00009 {
00010 int ret = 0;
00011 int len = 0;
00012
00013 bool success = vu1::read(file);
00014 if (!success) return false;
00015
00016
00017 ret = fscanf(file,"DATASET STRUCTURED_POINTS %n",&len);
00018 if (len < 26) return setInvalidFormatError();
00019
00020 return true;
00021 }
00022
00023
00024
00025
00026
00027 bool vu11::write(FILE *file)
00028 {
00029 int ret = 0;
00030
00031 bool success = vu1::write(file);
00032 if (!success) return false;
00033
00034
00035 ret = fprintf(file,"DATASET STRUCTURED_POINTS\n");
00036
00037 if (ret > 0)
00038 return true;
00039 else
00040 return setWriteError();
00041 }