sensitivity.io for iOS & macOS  1.1.4
ClassifierExecutor.h
1 //
2 // ClassifierExecutor.h
3 //
4 // Created by Andreea ERDELYI <andreea.erdelyi@cososys.com>
5 //
6 // Copyright (C) 2017 CoSoSys Ltd team@sensitivity.io
7 // CoSoSys Ltd. All rights reserved.
8 // Please see the COPYING for more details.
9 //
10 
11 #import <Foundation/Foundation.h>
12 
13 @class ThreadPool;
14 @class ThreatHandler;
15 @class ThreatHandlerFuture;
17 
21 @interface ClassifierExecutor : NSObject
22 
23 - (instancetype _Null_unspecified) init NS_UNAVAILABLE;
24 + (instancetype _Null_unspecified) new NS_UNAVAILABLE;
25 - (instancetype _Null_unspecified) copy NS_UNAVAILABLE;
34 - (instancetype _Nullable) initWithError:(NSError * _Nullable * _Nullable)error NS_DESIGNATED_INITIALIZER NS_SWIFT_NAME(init());
35 
44 - (ThreadPool* _Nullable) threadPoolWithError:(NSError * _Nullable * _Nullable)error;
45 
46 // Convenience classify API
57 - (ClassificationFuture* _Nullable) classifyString:(NSString * _Nonnull)text withPriotiry:(NSInteger)priority withError:(NSError * _Nullable * _Nullable)error NS_SWIFT_NAME(classifyString(_:priority:));
69 - (ClassificationFuture* _Nullable) classifyData:(NSData * _Nonnull)data fileName:(NSString * _Nullable)fileName withPriotiry:(NSInteger)priority withError:(NSError * _Nullable * _Nullable)error NS_SWIFT_NAME(classifyData(_:fileName:priority:));
80 - (ClassificationFuture* _Nullable) classifyFileAtPath:(NSString * _Nonnull)filePath withPriotiry:(NSInteger)priority withError:(NSError * _Nullable * _Nullable)error NS_SWIFT_NAME(classifyFile(atPath:priority:));
81 
82 @end
Definition: ThreadPool.h:18
Definition: ClassificationFuture.h:18
Definition: ClassifierExecutor.h:21
Definition: ThreatHandlerFuture.h:16
Definition: ThreatHandler.h:19