SBSParser.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------//
2 // This file is part of the Scandit Parsing Library //
3 // //
4 // Copyright (c) 2016-2017 Scandit AG. All rights reserved //
5 //------------------------------------------------------------------------------------------------//
6 
7 #import <Foundation/Foundation.h>
8 
9 #import "SBSCommon.h"
10 
11 
24 
31 
39 
47 
48 @class SBSParserResult;
49 
62 @interface SBSParser : NSObject
63 
76 - (nullable SBSParserResult *)parseString:(nonnull NSString *)string
77  error:(NSError * _Nullable * _Nullable)outError;
78 
93 - (nullable SBSParserResult *)parseRawData:(nonnull NSData *)data
94  error:(NSError * _Nullable * _Nullable)outError;
95 
110 - (BOOL)setOptions:(nonnull NSDictionary *)opts error:(NSError * _Nullable * _Nullable)outError;
111 
112 @end
The provided options object is invalid.
Definition: SBSParser.h:45
The parser failed.
Definition: SBSParser.h:23
The provided data object is invalid.
Definition: SBSParser.h:30
#define SBS_ENUM_END(name)
Definition: SBSCommon.h:17
SBSParserError
An enumeration of possible reasons for failure.
Definition: SBSParser.h:17
Defines the interface for a data string parser. Parsers are capable of parsing one particular data fo...
Definition: SBSParser.h:62
The provided date only uses two digits for the year, so it can't be unambigously be converted to a NS...
Definition: SBSParser.h:38
Holds the result of a successfully parsed data string.
Definition: SBSParserResult.h:27
#define SBS_ENUM_BEGIN(name)
Definition: SBSCommon.h:16