Debian Codegraph @

XCode/GSXCBuildDatabase.h

raw symbols SCIP
1 /*
2 Copyright (C) 2022 Free Software Foundation, Inc.
3
4 Written by: Gregory John Casamento <[email protected]>
5 Date: Nov 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 #ifndef GSXCBuildDatabase_H_INCLUDE
26 #define GSXCBuildDatabase_H_INCLUDE
27
28 #import <Foundation/NSObject.h>
29
30 @class NSMutableDictionary, NSMutableArray, PBXTarget;
31 @class NSDate, PBXBuildFile, PBXFileReference;
32
33 @interface GSXCRecord : NSObject <NSCopying>
34 {
35 NSMutableDictionary *_dictionary;
36 }
37
38 + (instancetype) recordWithContentsOfFile: (NSString *)path;
39
40 - (instancetype) initWithContentsOfFile: (NSString *)path;
41 - (instancetype) initWithDictionary: (NSDictionary *)dict;
42
43 - (NSDictionary *) dictionary;
44
45 @end
46
47 @interface GSXCFileRecord : GSXCRecord
48 {
49 NSString *_fileName;
50 NSDate *_dateModified;
51 NSDate *_dateBuilt;
52 PBXBuildFile *_buildFile;
53 PBXFileReference *_fileReference;
54 }
55
56 - (instancetype) initWithDictonary: (NSDictionary *)dict;
57 - (instancetype) initWithFile: (PBXBuildFile *)f path: (NSString *)path;
58 + (instancetype) recordWithBuildFile: (PBXBuildFile *)f path: (NSString *)path;
59
60 - (void) setFileName: (NSString *)fn;
61 - (NSString *) fileName;
62
63 - (void) setDateModified: (NSDate *)d;
64 - (NSDate *) dateModified;
65
66 - (void) setDateBuilt: (NSDate *)d;
67 - (NSDate *) dateBuilt;
68
69 - (PBXFileReference *) fileReference;
70
71 @end
72
73 @interface GSXCBuildDatabase : NSObject
74 {
75 NSMutableArray *_records;
76 PBXTarget *_target;
77 }
78
79 + (instancetype) buildDatabaseWithTarget: (PBXTarget *)target;
80 - (instancetype) initWithTarget: (PBXTarget *)target;
81
82 - (void) setTarget: (PBXTarget *)t;
83 - (PBXTarget *) target;
84
85 - (void) addRecord: (GSXCRecord *)record;
86
87 - (NSArray *) files;
88
89 - (BOOL) isEmpty;
90
91 @end
92
93 #endif // GSXCBuildDatabase_H_INCLUDE