Class: ProDosFile
- Inherits:
-
NativeFileType
- Object
- NativeFileType
- ProDosFile
- Defined in:
- lib/native_file_types/apple2/ProDosFile.rb
Direct Known Subclasses
Constant Summary collapse
- PRODOS_FILE_TYPES =
{ 0x00=>"", #"Typeless File" 0x01=>"BAD", #BAD blocks file 0x02=>"PCD", #Pascal CoDe file 0x03=>"PTX", #Pascal TeXt file 0x04=>"TXT", #ASCII text file 0x05=>"PDA", #Pascal DAta file 0x06=>"BIN", #BINary file 0x07=>"CHR", #CHaRacter font file 0x08=>"PIC", #PICture file 0x09=>"BA3", #Business BASIC (SOS) program file 0x0A=>"DA3", #Business BASIC (SOS) data file 0x0B=>"WPD", #Word Processor Document 0x0F=>"DIR", #subDIRectory file 0x10=>"RPD", #RPS data file 0x11=>"RPI", #RPS index file 0x19=>"ADB", #AppleWorks Database file 0x1A=>"AWP", #AppleWorks WordProcessing file 0x1B=>"ASP", #AppleWorks Spreadsheet file 0x60=>"PRE", #ProDOS preboot driver 0x6B=>"NIO", #PC Transporter BIOS and drivers 0x6D=>"DVR", #PC Transporter device drivers 0x6F=>"HDV", #MSDOS HardDisk Volume 0xA0=>"WPF", #WordPerfect document file 0xA1=>"MAC", #Macrofile 0xA2=>"HLP", #Help File 0xA3=>"DAT", #Data File 0xA5=>"LEX", #Spelling dictionary 0xAC=>"ARC", #General Purpose Archive file 0xB0=>"SRC", #ORCA/M & APW source file 0xB1=>"OBJ", #ORCA/M & APW object file 0xB2=>"LIB", #ORCA/M & APW library file 0xB3=>"S16", #ProDOS16 system file 0xB4=>"RTL", #ProDOS16 runtime library 0xB5=>"EXE", #APW shell command file 0xB6=>"STR", #ProDOS16 startup init file 0xB7=>"TSF", #ProDOS16 temporary init file 0xB8=>"NDA", #ProDOS16 new desk accessory 0xB9=>"CDA", #ProDOS16 classic desk accessory 0xBA=>"TOL", #ProDOS16 toolset file 0xBB=>"DRV", #ProDOS16 driver file 0xBF=>"DOC", #document file 0xC0=>"PNT", #//gs paint document 0xC1=>"SCR", #//gs screen file 0xC8=>"FNT", #Printer font file 0xE0=>"LBR", #Apple archive library file 0xE2=>"ATI", #Appletalk init file 0xEF=>"PAS", #ProDOS Pascal file 0xF0=>"CMD", #added command file 0xF1=>"OVL", #Overlay file 0xF2=>"DBF", #Database file 0xF3=>"PAD", #MouseWrite file 0xF4=>"MCR", #AE Pro macro file 0xF5=>"ECP", #ECP batch file 0xF6=>"DSC", #description file 0xF7=>"TMP", #temporary work file 0xF8=>"RSX", #linkable object module 0xF9=>"IMG", #ProDOS image file 0xFA=>"INT", #Integer BASIC program 0xFB=>"IVR", #Integer BASIC variables file 0xFC=>"BAS", #AppleSoft BASIC program 0xFD=>"VAR", #AppleSoft BASIC variables file 0xFE=>"REL", #ProDOS EDASM relocatable object module file 0xFF=>"SYS", #ProDOS8 system file} }
Instance Attribute Summary
Attributes inherited from NativeFileType
#aux_code, #contents, #file_system_image, #file_type, #filename, #meta_data
Class Method Summary collapse
- .file_system_file_types ⇒ Object
-
.matching_score ⇒ Object
this class should be low scoring, as a last resort.
Instance Method Summary collapse
Methods inherited from NativeFileType
#<=>, #==, all_native_file_types, best_fit, code_for_tests, compatability_score, #data_without_header, file_type_matches?, #full_filename, #header_length, #initialize, is_valid_file_if, load_address, #load_address, native_file_types_possible_on_file_system, non_matching_score, #to_hex_dump, #to_info_dump
Methods included from SubclassTracking
Constructor Details
This class inherits a constructor from NativeFileType
Class Method Details
.file_system_file_types ⇒ Object
4 5 6 7 8 |
# File 'lib/native_file_types/apple2/ProDosFile.rb', line 4 def ProDosFile.file_system_file_types { ProDos=>:any } end |
.matching_score ⇒ Object
this class should be low scoring, as a last resort
77 78 79 |
# File 'lib/native_file_types/apple2/ProDosFile.rb', line 77 def ProDosFile.matching_score GenericFile.matching_score+0.1 end |
Instance Method Details
#type_description ⇒ Object
81 82 83 84 |
# File 'lib/native_file_types/apple2/ProDosFile.rb', line 81 def type_description extension=PRODOS_FILE_TYPES[file_type] extension.nil? ? (" $%02x:%04x" % [file_type,aux_code] ) : ("#{extension}:%04x" % aux_code) end |