Skip to content

Commit 992df42

Browse files
fix: clean code (#20)
Signed-off-by: Peter Staar <[email protected]>
1 parent 219e945 commit 992df42

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+637
-1813
lines changed

src/proj_folders/pdf_interface.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
//-*-C++-*-
22

3-
/***********************************************************
4-
IBM Confidential
5-
OCO Source Materials
6-
IBM Research Zurich Smart Annotator Licensed Internal Code
7-
(C) Copyright IBM Corp. 2017
8-
9-
Authors: Peter W. J. Staar, Michele Dolfi, Christoph Auer,
10-
Matthieu Mottet
11-
Email: {taa, dol, cau, ttt}@zurich.ibm.com
12-
Date: 18/08/2017
13-
**********************************************************/
14-
153
#ifndef PDF_INTERFACE_H
164
#define PDF_INTERFACE_H
175

@@ -20,13 +8,9 @@ namespace pdf_lib
208

219
enum interface_type
2210
{
23-
//OCR_SUBMIT_TASK,
24-
//OCR_RETRIEVE_TASK,
25-
2611
OCR_PARSER,
2712

2813
PARSER,
29-
//ASSEMBLER
3014
};
3115

3216
template<interface_type type>
@@ -54,6 +38,4 @@ namespace pdf_lib
5438

5539
}
5640

57-
//#include "pdf_interface/ocr_parser.h"
58-
5941
#endif

src/proj_folders/pdf_interface/assembler.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
//-*-C++-*-
22

3-
/***********************************************************
4-
IBM Confidential
5-
OCO Source Materials
6-
IBM Research Zurich Smart Annotator Licensed Internal Code
7-
(C) Copyright IBM Corp. 2017
8-
9-
Authors: Peter W. J. Staar, Michele Dolfi, Christoph Auer,
10-
Matthieu Mottet
11-
Email: {taa, dol, cau, ttt}@zurich.ibm.com
12-
Date: 18/08/2017
13-
**********************************************************/
14-
153
#ifndef PDF_INTERFACE_ASSEMBLER_H
164
#define PDF_INTERFACE_ASSEMBLER_H
175

@@ -21,8 +9,6 @@ namespace pdf_lib
219
template<>
2210
class interface<ASSEMBLER>
2311
{
24-
//typedef prof_lib::profiler<prof_lib::COUNTING_PROFILER> profiler_type;
25-
2612
typedef std::map<int, std::string> document_type;
2713

2814
public:

src/proj_folders/pdf_interface/ocr_merger.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
//-*-C++-*-
22

3-
/***********************************************************
4-
IBM Confidential
5-
OCO Source Materials
6-
IBM Research Zurich Smart Annotator Licensed Internal Code
7-
(C) Copyright IBM Corp. 2017
8-
9-
Authors: Peter W. J. Staar, Michele Dolfi, Christoph Auer,
10-
Matthieu Mottet
11-
Email: {taa, dol, cau, ttt}@zurich.ibm.com
12-
Date: 18/08/2017
13-
**********************************************************/
14-
153
#ifndef PDF_OCR_PARSER_H
164
#define PDF_OCR_PARSER_H
175

src/proj_folders/pdf_interface/ocr_merger/base.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
//-*-C++-*-
22

3-
/***********************************************************
4-
IBM Confidential
5-
OCO Source Materials
6-
IBM Research Zurich Smart Annotator Licensed Internal Code
7-
(C) Copyright IBM Corp. 2017
8-
9-
Authors: Peter W. J. Staar, Michele Dolfi, Christoph Auer,
10-
Matthieu Mottet
11-
Email: {taa, dol, cau, ttt}@zurich.ibm.com
12-
Date: 18/08/2017
13-
**********************************************************/
14-
153
#ifndef PDF_OCR_MERGER_BASE_H
164
#define PDF_OCR_MERGER_BASE_H
175

src/proj_folders/pdf_interface/ocr_merger/default.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
//-*-C++-*-
22

3-
/***********************************************************
4-
IBM Confidential
5-
OCO Source Materials
6-
IBM Research Zurich Smart Annotator Licensed Internal Code
7-
(C) Copyright IBM Corp. 2017
8-
9-
Authors: Peter W. J. Staar, Michele Dolfi, Christoph Auer,
10-
Matthieu Mottet
11-
Email: {taa, dol, cau, ttt}@zurich.ibm.com
12-
Date: 18/08/2017
13-
**********************************************************/
14-
153
#ifndef PDF_OCR_MERGER_DEFAULT_H
164
#define PDF_OCR_MERGER_DEFAULT_H
175

src/proj_folders/pdf_interface/ocr_merger/keep_only_ocr.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
//-*-C++-*-
22

3-
/***********************************************************
4-
IBM Confidential
5-
OCO Source Materials
6-
IBM Research Zurich Smart Annotator Licensed Internal Code
7-
(C) Copyright IBM Corp. 2017
8-
9-
Authors: Peter W. J. Staar, Michele Dolfi, Christoph Auer,
10-
Matthieu Mottet
11-
Email: {taa, dol, cau, ttt}@zurich.ibm.com
12-
Date: 18/08/2017
13-
**********************************************************/
14-
153
#ifndef PDF_OCR_MERGER_KEEP_ONLY_OCR_H
164
#define PDF_OCR_MERGER_KEEP_ONLY_OCR_H
175

src/proj_folders/pdf_interface/ocr_merger/prioritise_ocr.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
//-*-C++-*-
22

3-
/***********************************************************
4-
IBM Confidential
5-
OCO Source Materials
6-
IBM Research Zurich Smart Annotator Licensed Internal Code
7-
(C) Copyright IBM Corp. 2017
8-
9-
Authors: Peter W. J. Staar, Michele Dolfi, Christoph Auer,
10-
Matthieu Mottet
11-
Email: {taa, dol, cau, ttt}@zurich.ibm.com
12-
Date: 18/08/2017
13-
**********************************************************/
14-
153
#ifndef PDF_OCR_MERGER_PRIORITISE_OCR_H
164
#define PDF_OCR_MERGER_PRIORITISE_OCR_H
175

src/proj_folders/pdf_interface/ocr_merger/prioritise_programmatic.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
//-*-C++-*-
22

3-
/***********************************************************
4-
IBM Confidential
5-
OCO Source Materials
6-
IBM Research Zurich Smart Annotator Licensed Internal Code
7-
(C) Copyright IBM Corp. 2017
8-
9-
Authors: Peter W. J. Staar, Michele Dolfi, Christoph Auer,
10-
Matthieu Mottet
11-
Email: {taa, dol, cau, ttt}@zurich.ibm.com
12-
Date: 18/08/2017
13-
**********************************************************/
14-
153
#ifndef PDF_OCR_MERGER_PRIORITISE_PROGRAMMATIC_H
164
#define PDF_OCR_MERGER_PRIORITISE_PROGRAMMATIC_H
175

src/proj_folders/pdf_interface/parser.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
//-*-C++-*-
22

3-
/***********************************************************
4-
IBM Confidential
5-
OCO Source Materials
6-
IBM Research Zurich Smart Annotator Licensed Internal Code
7-
(C) Copyright IBM Corp. 2017
8-
9-
Authors: Peter W. J. Staar, Michele Dolfi, Christoph Auer,
10-
Matthieu Mottet
11-
Email: {taa, dol, cau, ttt}@zurich.ibm.com
12-
Date: 18/08/2017
13-
**********************************************************/
14-
153
#ifndef PDF_PARSER_INTERFACE_H
164
#define PDF_PARSER_INTERFACE_H
175

src/proj_folders/pdf_library.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,11 @@
11
//-*-C++-*-
22

3-
/***********************************************************
4-
IBM Confidential
5-
OCO Source Materials
6-
IBM Research Zurich Smart Annotator Licensed Internal Code
7-
(C) Copyright IBM Corp. 2017
8-
9-
Authors: Peter W. J. Staar, Michele Dolfi, Christoph Auer,
10-
Matthieu Mottet
11-
Email: {taa, dol, cau, ttt}@zurich.ibm.com
12-
Date: 18/08/2017
13-
**********************************************************/
14-
153
#ifndef PDF_LIBRARY_H
164
#define PDF_LIBRARY_H
175

18-
//#ifdef __HAVE_QPDF
19-
206
#define POINTERHOLDER_TRANSITION 0
217
#include <qpdf/QPDF.hh>
228

23-
//#endif
24-
25-
//#include "logging_library.h"
26-
//#include "container_library.h"
27-
289
#include "pdf_library/core.h"
2910
#include <pdf_library/qpdf.h>
3011

0 commit comments

Comments
 (0)