/
DCMApplicationContextItem.m
51 lines (38 loc) · 1.38 KB
/
DCMApplicationContextItem.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// DCMApplicationContextItem.m
// OsiriX
//
// Created by Lance Pysher on 12/2/04.
/*=========================================================================
Program: OsiriX
Copyright (c) OsiriX Team
All rights reserved.
Distributed under GNU - GPL
See http://www.osirix-viewer.com/copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
=========================================================================*/
//
/*************
The networking code of the DCMFramework is predominantly a port of the 11/4/04 version of the java pixelmed toolkit by David Clunie.
htt://www.pixelmed.com
**************/
#import "DCMApplicationContextItem.h"
@implementation DCMApplicationContextItem
+ (id)applicationContextItemWithType:(unsigned char)aType length:(int)theLength name:(NSString *)name{
return [[[DCMApplicationContextItem alloc] initWithType:aType length:theLength name:name] autorelease];
}
- (id)initWithType:(unsigned char)aType length:(int)theLength name:(NSString *)name{
if (self = [super initWithType:aType length:theLength])
applicationContextName = [name retain];
return self;
}
- (void)dealloc{
[applicationContextName release];
[super dealloc];
}
- (NSString *)applicationContextName{
return applicationContextName;
}
@end