DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
standard_filter.h
1 /*********************************************************************************************************************************************/
2 /* DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. */
3 /* Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, */
4 /* document analysis. Offline processing possible for security and confidentiality */
5 /* */
6 /* Copyright (c) SILVERCODERS Ltd, http://silvercoders.com */
7 /* Project homepage: https://github.com/docwire/docwire */
8 /* */
9 /* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-DocWire-Commercial */
10 /*********************************************************************************************************************************************/
11 
12 #ifndef DOCWIRE_STANDARD_FILTER_H
13 #define DOCWIRE_STANDARD_FILTER_H
14 
15 #include "core_export.h"
16 #include "file_extension.h"
17 #include "transformer_func.h"
18 
19 namespace docwire
20 {
31 class DOCWIRE_CORE_EXPORT standard_filter
32 {
33 public:
38  static message_transform_func filterByFolderName(const std::vector<std::string> &names);
39 
44  static message_transform_func filterByAttachmentType(const std::vector<file_extension>& types);
45 
50  static message_transform_func filterByMailMinCreationTime(unsigned int min_time);
51 
56  static message_transform_func filterByMailMaxCreationTime(unsigned int max_time);
57 
62  static message_transform_func filterByMaxNodeNumber(unsigned int max_nodes);
63 };
64 } // namespace docwire
65 
66 #endif //DOCWIRE_STANDARD_FILTER_H
Sets of standard filters to use in parsers. example of use:
static message_transform_func filterByMaxNodeNumber(unsigned int max_nodes)
static message_transform_func filterByFolderName(const std::vector< std::string > &names)
Filters folders by name. Keeps only folders with names that exist in the given list.
static message_transform_func filterByAttachmentType(const std::vector< file_extension > &types)
Filters attachments by type. Keeps only attachments with type that exist in the given list.
static message_transform_func filterByMailMinCreationTime(unsigned int min_time)
Filters mail by creation date. Keeps only mails that are created after the given date.
static message_transform_func filterByMailMaxCreationTime(unsigned int max_time)
Filters mail by creation date. Keeps only mails that are created before the given date.
The main namespace for the DocWire SDK.
Definition: ai_elements.h:19