EntryRecordID.m 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. classdef EntryRecordID < uint8
  2. %ENTRYRECORDID Values for entry record types used in headers /
  3. % subheaders
  4. %
  5. % Terminate: Used to indicate the end of the record entries in
  6. % headers/ subheaders.
  7. %
  8. % Skip: Indicates an area of the file to be ignored.
  9. %
  10. % NotesArray: see Notes.m
  11. %
  12. % ChannelArray: see ChannelArray.m
  13. %
  14. % BlockVectorHeader: see BlockVectorHeader.m
  15. %
  16. % BlockVectorData: see BlockVectorData.m
  17. %
  18. % BlockVectorHeaderExtension: see BlockVectorHeaderExtension.m
  19. enumeration
  20. Terminate(uint8(hex2dec('00'))),...
  21. Skip(uint8(hex2dec('ff'))),...
  22. NotesArray(uint8(hex2dec('01'))) ,...
  23. ChannelArray(uint8(hex2dec('02'))),...
  24. BlockVectorHeader(uint8(hex2dec('03'))),...
  25. BlockVectorData(uint8(hex2dec('04'))),...
  26. BlockVectorHeaderExtension(uint8(hex2dec('05')))
  27. end
  28. methods(Static)
  29. function [value , success] = TryParse(aInput)
  30. try
  31. value = EntryRecordID(aInput);
  32. success = true;
  33. catch e
  34. warning(...
  35. 'EntryRecordID:TryParse', ...
  36. ['Unsupported EntryRecordID', e.message]);
  37. value = aInput;
  38. success = false;
  39. end
  40. end
  41. end
  42. end