Reinstate more optimization, but avoid disagreement with dex by properly disabling...
[zxing.git] / iphone / Classes / MultiFormatReader.mm
1 //
2 //  MultiFormatReader.mm
3 //
4 //  Created by Dave MacLachlan on 2010-05-03.
5 /*
6  * Copyright 2010 ZXing authors
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20
21 #import "FormatReader.h"
22 #import <zxing/MultiFormatReader.h>
23
24 @interface MultiFormatReader : FormatReader
25 @end
26
27 @implementation MultiFormatReader
28
29 + (void)load {
30   NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
31   [FormatReader registerFormatReader:[[[self alloc] init] autorelease]];
32   [pool drain];
33 }
34
35 - (id)init {
36   zxing::MultiFormatReader *reader = new zxing::MultiFormatReader();
37   return [super initWithReader:reader];
38 }
39
40 @end