Fix endianness assumptions. For x86 port.
[MacTF.git] / DataHandler.h
blobb19336de0e2563e79061665588953d04e9faa3b5
1 // MacTF Copyright 2004 Nathan Oates
3 /*
5 * This source code is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Public License as published
7 * by the Free Software Foundation; either version 2 of the License,
8 * or (at your option) any later version.
10 * This source code is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * Please refer to the GNU Public License for more details.
15 * You should have received a copy of the GNU Public License along with
16 * this source code; if not, write to:
17 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #import <Cocoa/Cocoa.h>
23 @interface DataHandler : NSObject
25 NSMutableArray * fileList;
26 NSMutableArray * searchList;
27 IBOutlet id tableView;
28 IBOutlet id UIEl;
29 BOOL searchIsActive;
32 - (NSMutableArray *) fileList;
33 - (NSMutableArray *) displayedList;
34 - (void) setFileList: (NSArray *)newFileList;
35 - (void) setSearchList: (NSArray *)newSearchList;
36 - (void) reloadTable;
37 - (IBAction) search:(id)sender;
38 // - (void) setSnapShot: (NSArray *)newFileList;
39 - (NSMutableDictionary*) getTFFileFromSwappedHexData:(NSData*) input;
40 - (NSData*) getDataFromTFFile:(NSDictionary*) infile withName:(NSString*)inputName;
41 - (void) convertRawDataToUseful:(NSMutableDictionary*) input ;
42 - (NSDictionary*) extractAttributes:(NSDictionary*)fattrs ;
43 - (NSDictionary*) extractDataFromRecHeader:(NSString*)file forModel:(NSString*)model;
45 @end