2021-04-27 17:06:30 +00:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
2021-05-05 22:56:55 +00:00
|
|
|
#import "ort_enums.h"
|
|
|
|
|
|
2021-04-27 17:06:30 +00:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The ORT environment.
|
|
|
|
|
*/
|
|
|
|
|
@interface ORTEnv : NSObject
|
|
|
|
|
|
2021-05-05 22:56:55 +00:00
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
2021-04-27 17:06:30 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates an ORT Environment.
|
|
|
|
|
*
|
2021-05-05 22:56:55 +00:00
|
|
|
* @param loggingLevel The environment logging level.
|
2021-06-12 00:49:00 +00:00
|
|
|
* @param error Optional error information set if an error occurs.
|
2021-04-27 17:06:30 +00:00
|
|
|
* @return The instance, or nil if an error occurs.
|
|
|
|
|
*/
|
2021-05-05 22:56:55 +00:00
|
|
|
- (nullable instancetype)initWithLoggingLevel:(ORTLoggingLevel)loggingLevel
|
|
|
|
|
error:(NSError**)error NS_DESIGNATED_INITIALIZER;
|
2021-04-27 17:06:30 +00:00
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|