Debian Codegraph @

XCode/PBXGroup.m

raw
1 /*
2 Copyright (C) 2018, 2019, 2020, 2021 Free Software Foundation, Inc.
3
4 Written by: Gregory John Casamento <[email protected]>
5 Date: 2022
6
7 This file is part of the GNUstep XCode Library
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2 of the License, or (at your option) any later version.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free
21 Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110 USA.
23 */
24
25 #import "PBXCommon.h"
26 #import "PBXGroup.h"
27
28 @implementation PBXGroup
29
30 - (instancetype) init
31 {
32 self = [super init];
33 if (self != nil)
34 {
35 [self setSourceTree: @"<group>"]; // default value
36 }
37 return self;
38 }
39
40 - (void) dealloc
41 {
42 RELEASE(_sourceTree);
43 RELEASE(_children);
44 RELEASE(_name);
45 RELEASE(_tabWidth);
46 RELEASE(_usesTabs);
47 RELEASE(_path);
48
49 [super dealloc];
50 }
51
52 // Methods....
53 - (NSString *) sourceTree // getter
54 {
55 return _sourceTree;
56 }
57
58 - (void) setSourceTree: (NSString *)object; // setter
59 {
60 ASSIGN(_sourceTree, object);
61 }
62
63 - (NSMutableArray *) children // getter
64 {
65 return _children;
66 }
67
68 - (void) setChildren: (NSMutableArray *)object; // setter
69 {
70 ASSIGN(_children, object);
71 }
72
73 - (NSString *) name // getter
74 {
75 return _name;
76 }
77
78 - (void) setName: (NSString *)object; // setter
79 {
80 ASSIGN(_name, object);
81 }
82
83 - (NSString *) path // getter
84 {
85 return _path;
86 }
87
88 - (void) setPath: (NSString *)object; // setter
89 {
90 ASSIGN(_path, object);
91 }
92
93 - (NSString *) description
94 {
95 return [NSString stringWithFormat: @"<%@ - name = %@, path = %@>",
96 [super description], _name, _path];
97 }
98
99 @end