forked from rentzsch/mogenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mogenerator.h
83 lines (75 loc) · 2.67 KB
/
mogenerator.h
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// mogenerator.h
// Copyright (c) 2006-2016 Jonathan 'Wolf' Rentzsch: http://rentzsch.com
// Some rights reserved: http://opensource.org/licenses/mit
// http://github.com/rentzsch/mogenerator
@import Foundation;
@import CoreData;
#import "MiscMergeTemplate.h"
#import "MiscMergeCommandBlock.h"
#import "MiscMergeEngine.h"
#import "FoundationAdditions.h"
#import "NSString+MiscAdditions.h"
#import "DDCommandLineInterface.h"
@interface NSManagedObjectModel (entitiesWithACustomSubclassVerbose)
- (NSArray*)entitiesWithACustomSubclassInConfiguration:(NSString*)configuration_ verbose:(BOOL)verbose_;
@end
@interface NSEntityDescription (customBaseClass)
- (BOOL)hasCustomClass;
- (BOOL)hasSuperentity;
- (BOOL)hasCustomSuperentity;
- (BOOL)hasAdditionalHeaderFile;
- (NSString*)customSuperentity;
- (NSString*)forcedCustomBaseClass;
- (NSString*)additionalHeaderFileName;
- (void)_processPredicate:(NSPredicate*)predicate_ bindings:(NSMutableArray*)bindings_;
- (NSArray*)prettyFetchRequests;
@end
@interface NSAttributeDescription (typing)
- (BOOL)hasScalarAttributeType;
- (BOOL)usesScalarAttributeType;
- (NSString*)scalarAttributeType;
- (NSString*)scalarAccessorMethodName;
- (NSString*)scalarFactoryMethodName;
- (BOOL)hasDefinedAttributeType;
- (NSArray*)objectAttributeTransformableProtocols;
- (BOOL)hasAttributeTransformableProtocols;
- (NSString*)objectAttributeClassName;
- (NSString*)objectAttributeType;
- (BOOL)hasTransformableAttributeType;
- (BOOL)isReadonly;
@end
@interface NSRelationshipDescription (collectionClassName)
- (NSString*)mutableCollectionClassName;
- (NSString*)immutableCollectionClassName;
- (BOOL)jr_isOrdered;
@end
@interface NSObject (JustHereToSuppressIsOrderedNotImplementedCompilerWarning)
- (BOOL)isOrdered;
@end
@interface NSString (camelCaseString)
- (NSString*)camelCaseString;
@end
@interface MOGeneratorApp : NSObject <DDCliApplicationDelegate> {
NSString *origModelBasePath;
NSString *tempGeneratedMomFilePath;
NSManagedObjectModel *model;
NSString *configuration;
NSString *baseClass;
NSString *baseClassImport;
NSString *baseClassForce;
NSString *includem;
NSString *includeh;
NSString *templatePath;
NSString *outputDir;
NSString *machineDir;
NSString *humanDir;
NSString *templateGroup;
BOOL _help;
BOOL _version;
BOOL _listSourceFiles;
BOOL _orphaned;
BOOL _swift;
BOOL _v2;
NSMutableDictionary *templateVar;
}
@end