]> Dogcows Code - chaz/thecheat/blob - SearchResults.m
The Cheat 1.1.1
[chaz/thecheat] / SearchResults.m
1
2 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 // Project: The Cheat
4 //
5 // File: SearchResults.m
6 // Created: Sat Oct 04 2003
7 //
8 // Copyright: 2003 Chaz McGarvey. All rights reserved.
9 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10
11 #import "SearchResults.h"
12
13
14 @implementation SearchResults
15
16
17 + (id)resultsWithType:(TCtype)type size:(TCsize)size data:(TCaddress const *)data amount:(int)amount
18 {
19 return [[[SearchResults alloc] initWithType:type size:size data:data amount:amount] autorelease];
20 }
21
22 - (id)initWithType:(TCtype)type size:(TCsize)size data:(TCaddress const *)data amount:(int)amount
23 {
24 if ( self = [self init] )
25 {
26 myType = type;
27 mySize = size;
28 myData = (TCaddress *)data;
29 myAmount = amount;
30 }
31
32 return self;
33 }
34
35
36 - (TCtype)type
37 {
38 return myType;
39 }
40
41 - (TCsize)size
42 {
43 return mySize;
44 }
45
46 - (TCaddress *)data
47 {
48 return myData;
49 }
50
51 - (int)amount
52 {
53 return myAmount;
54 }
55
56
57 - (void)dealloc
58 {
59 if ( myData )
60 {
61 free( myData );
62 }
63
64 [super dealloc];
65 }
66
67
68 @end
This page took 0.033223 seconds and 4 git commands to generate.