Merge pull request #3199 from stweil/serialis

Remove serialis.h from public API
This commit is contained in:
Egor Pugin 2020-12-29 14:22:17 +03:00 committed by GitHub
commit 354bdc7398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 33 additions and 33 deletions

View File

@ -721,7 +721,6 @@ install(FILES
include/tesseract/helpers.h
include/tesseract/ocrclass.h
include/tesseract/platform.h
include/tesseract/serialis.h
include/tesseract/unichar.h
#${CMAKE_CURRENT_BINARY_DIR}/src/endianness.h

View File

@ -58,7 +58,6 @@ pkginclude_HEADERS += include/tesseract/platform.h
pkginclude_HEADERS += include/tesseract/publictypes.h
pkginclude_HEADERS += include/tesseract/renderer.h
pkginclude_HEADERS += include/tesseract/resultiterator.h
pkginclude_HEADERS += include/tesseract/serialis.h
pkginclude_HEADERS += include/tesseract/thresholder.h
pkginclude_HEADERS += include/tesseract/unichar.h
@ -334,6 +333,7 @@ noinst_HEADERS += src/ccutil/params.h
noinst_HEADERS += src/ccutil/qrsequence.h
noinst_HEADERS += src/ccutil/sorthelper.h
noinst_HEADERS += src/ccutil/scanutils.h
noinst_HEADERS += src/ccutil/serialis.h
noinst_HEADERS += src/ccutil/strngs.h
noinst_HEADERS += src/ccutil/tessdatamanager.h
noinst_HEADERS += src/ccutil/tprintf.h

View File

@ -28,7 +28,6 @@
#include "platform.h"
#include "publictypes.h"
#include "resultiterator.h"
#include "serialis.h"
#include "thresholder.h"
#include "unichar.h"
@ -80,6 +79,10 @@ class Tesseract;
class Trie;
class Wordrec;
// Function to read a std::vector<char> from a whole file.
// Returns false on failure.
using FileReader = bool (*)(const char* filename, std::vector<char>* data);
using DictFunc = int (Dict::*)(void*, const UNICHARSET&, UNICHAR_ID,
bool) const;
using ProbabilityInContextFunc = double (Dict::*)(const char*, const char*, int,

View File

@ -29,7 +29,7 @@
#include "tprintf.h" // for tprintf
#include <tesseract/helpers.h> // for IntCastRounded, TRand, ClipToRange, Modulo
#include <tesseract/serialis.h> // for TFile
#include "serialis.h" // for TFile
#include "allheaders.h" // for pixDestroy, pixGetHeight, pixGetWidth, lept_...

View File

@ -29,7 +29,7 @@
#include "kdpair.h" // for KDPairInc
#include "points.h" // for ICOORD
#include <tesseract/serialis.h> // for TFile
#include "serialis.h" // for TFile
#include <algorithm> // for max, min
#include <cmath> // for sqrt, fabs, isfinite

View File

@ -21,7 +21,7 @@
#include "points.h"
#include <tesseract/helpers.h>
#include <tesseract/serialis.h>
#include "serialis.h"
#include <algorithm>
#include <cmath> // for M_PI

View File

@ -23,7 +23,7 @@
#include <algorithm>
#include <cstring>
#include <tesseract/helpers.h>
#include <tesseract/serialis.h> // for tesseract::Serialize
#include "serialis.h" // for tesseract::Serialize
namespace tesseract {

View File

@ -21,7 +21,7 @@
#include "lsterr.h"
#include <tesseract/serialis.h>
#include "serialis.h"
#include <cstdio>

View File

@ -21,7 +21,7 @@
#include "lsterr.h"
#include <tesseract/serialis.h>
#include "serialis.h"
#include <cstdio>

View File

@ -22,7 +22,7 @@
#include <cstdio>
#include "lsterr.h"
#include <tesseract/serialis.h>
#include "serialis.h"
#include <cstdio>

View File

@ -20,7 +20,7 @@
#define TESSERACT_CCUTIL_GENERICVECTOR_H_
#include <tesseract/helpers.h>
#include <tesseract/serialis.h>
#include "serialis.h"
#include <algorithm>
#include <cassert>

View File

@ -18,7 +18,7 @@
#include "errcode.h"
#include <tesseract/helpers.h> // for ReverseN
#include <tesseract/serialis.h>
#include "serialis.h"
#include <cstdio>
namespace tesseract {

View File

@ -19,6 +19,7 @@
#ifndef SERIALIS_H
#define SERIALIS_H
#include <tesseract/baseapi.h> // FileReader
#include <cstdint> // uint8_t
#include <cstdio>
#include <cstdlib>
@ -41,9 +42,6 @@ constexpr size_t countof(T const (&)[N]) noexcept {
return N;
}
// Function to read a std::vector<char> from a whole file.
// Returns false on failure.
using FileReader = bool (*)(const char* filename, std::vector<char>* data);
// Function to write a std::vector<char> to a whole file.
// Returns false on failure.
using FileWriter = bool (*)(const std::vector<char>& data,

View File

@ -21,7 +21,7 @@
#include "errcode.h" // for ASSERT_HOST
#include <tesseract/helpers.h> // for ReverseN
#include <tesseract/serialis.h> // for TFile
#include "serialis.h" // for TFile
#include <cassert> // for assert
#include <cstdlib> // for malloc, free

View File

@ -32,7 +32,7 @@
#include "errcode.h"
#include <tesseract/helpers.h>
#include <tesseract/serialis.h>
#include "serialis.h"
#include "strngs.h"
#include <tesseract/version.h>
#include "tprintf.h"

View File

@ -24,7 +24,7 @@
#include <unordered_map>
#include <tesseract/serialis.h>
#include "serialis.h"
#include "strngs.h"
#include "unicharset.h"

View File

@ -20,7 +20,7 @@
#include "params.h"
#include <tesseract/serialis.h>
#include "serialis.h"
#include <tesseract/unichar.h>
#include <algorithm>

View File

@ -24,7 +24,7 @@
#include "genericvector.h"
#include <tesseract/helpers.h>
#include <tesseract/serialis.h>
#include "serialis.h"
#include "strngs.h"
#include <tesseract/unichar.h>

View File

@ -61,7 +61,7 @@
#include "genericvector.h" // for GenericVector
#include <tesseract/helpers.h> // for IntCastRounded, ClipToRange
#include <tesseract/serialis.h> // for TFile
#include "serialis.h" // for TFile
#include "strngs.h" // for STRING
#include <tesseract/unichar.h> // for UNICHAR_ID, INVALID_UNICHAR_ID

View File

@ -20,7 +20,7 @@
#include "cluster.h"
#include <tesseract/serialis.h>
#include "serialis.h"
#include <cstdio>

View File

@ -24,7 +24,7 @@
#include "classify.h"
#include <tesseract/helpers.h>
#include <tesseract/serialis.h>
#include "serialis.h"
#include <tesseract/unichar.h>
#define MAX_CUTOFF 1000

View File

@ -24,7 +24,7 @@
#include "convolve.h"
#include "networkscratch.h"
#include <tesseract/serialis.h>
#include "serialis.h"
namespace tesseract {

View File

@ -23,7 +23,7 @@
#include "static_shape.h"
#include "tprintf.h"
#include <tesseract/serialis.h>
#include "serialis.h"
#include "strngs.h" // for STRING
#include "genericvector.h"
#include <tesseract/helpers.h>

View File

@ -19,7 +19,7 @@
#ifndef TESSERACT_LSTM_STATIC_SHAPE_H_
#define TESSERACT_LSTM_STATIC_SHAPE_H_
#include <tesseract/serialis.h> // for TFile
#include "serialis.h" // for TFile
#include "tprintf.h" // for tprintf
namespace tesseract {

View File

@ -21,7 +21,7 @@
#include "trie.h"
#include "unicharset.h"
#include <tesseract/serialis.h>
#include "serialis.h"
using namespace tesseract;

View File

@ -17,7 +17,7 @@
#include <string>
#include "genericvector.h"
#include <tesseract/serialis.h>
#include "serialis.h"
#include "strngs.h"
#include "tessdatamanager.h"
#include "unicharset.h"

View File

@ -24,7 +24,7 @@
#include "dawg.h"
#include "dict.h"
#include <tesseract/helpers.h>
#include <tesseract/serialis.h>
#include "serialis.h"
#include "trie.h"
#include "unicharset.h"

View File

@ -14,7 +14,7 @@
#include "include_gunit.h"
#include "params_model.h"
#include <tesseract/serialis.h> // TFile
#include "serialis.h" // TFile
#include "tprintf.h" // tprintf
namespace tesseract {

View File

@ -16,7 +16,7 @@
#include "include_gunit.h"
#include <tesseract/serialis.h>
#include "serialis.h"
#include "shapetable.h"
#include "unicharset.h"

View File

@ -10,7 +10,7 @@
// limitations under the License.
#include "genericvector.h"
#include <tesseract/serialis.h>
#include "serialis.h"
#include "include_gunit.h"

View File

@ -18,7 +18,7 @@
#include "include_gunit.h"
#include "log.h" // for LOG
#include <tesseract/serialis.h>
#include "serialis.h"
#include "tprintf.h"
#include "unicharcompress.h"