"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "common.h" between
ocrad-0.24.tar.gz and ocrad-0.25.tar.gz

About: GNU Ocrad is an OCR (Optical Character Recognition) program.

common.h  (ocrad-0.24):common.h  (ocrad-0.25)
/* GNU Ocrad - Optical Character Recognition program /* GNU Ocrad - Optical Character Recognition program
Copyright (C) 2003-2014 Antonio Diaz Diaz. Copyright (C) 2003-2015 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or the Free Software Foundation, either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
skipping to change at line 59 skipping to change at line 59
Type type_; Type type_;
public: public:
Transformation() : type_( none ) {} Transformation() : type_( none ) {}
bool set( const char * const name ); bool set( const char * const name );
Type type() const { return type_; } Type type() const { return type_; }
void show_error( const char * const program_name, void show_error( const char * const program_name,
const char * const arg ) const; const char * const arg ) const;
}; };
namespace Filter { class User_filter;
enum Type { letters, letters_only, numbers, numbers_only,
same_height, upper_num, upper_num_only }; struct Filter
} // end namespace Filter {
enum Type { letters, letters_only, numbers, numbers_only, same_height,
text_block, upper_num, upper_num_mark, upper_num_only, user };
const User_filter * user_filterp;
Type type;
explicit Filter( const User_filter * p )
: user_filterp( p ), type( user ) {}
explicit Filter( const Type t )
: user_filterp( 0 ), type( t ) {}
};
struct Control struct Control
{ {
Charset charset; Charset charset;
std::vector< Filter::Type > filters; std::vector< Filter > filters;
FILE * outfile, * exportfile; FILE * outfile, * exportfile;
int debug_level; int debug_level;
char filetype; char filetype;
bool utf8; bool utf8;
Control() Control()
: outfile( stdout ), exportfile( 0 ), : outfile( stdout ), exportfile( 0 ),
debug_level( 0 ), filetype( '4' ), utf8( false ) {} debug_level( 0 ), filetype( '4' ), utf8( false ) {}
~Control();
bool add_filter( const char * const program_name, const char * const name ); bool add_filter( const char * const program_name, const char * const name );
int add_user_filter( const char * const program_name,
const char * const file_name );
bool set_format( const char * const name ); bool set_format( const char * const name );
}; };
 End of changes. 5 change blocks. 
6 lines changed or deleted 20 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS