mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 01:14:12 +08:00
19 lines
532 B
C++
19 lines
532 B
C++
#ifndef EXTENSIONS_H
|
|
#define EXTENSIONS_H
|
|
|
|
#include "qtcommon.h"
|
|
#include <map>
|
|
|
|
std::map<int, QString> LoadExtensions();
|
|
bool DispatchSentenceToExtensions(std::wstring& sentence, std::unordered_map<std::string, int64_t> miscInfo);
|
|
struct InfoForExtension
|
|
{
|
|
~InfoForExtension() { if (nextProperty) delete nextProperty; };
|
|
const char* propertyName = "";
|
|
int64_t propertyValue = 0;
|
|
InfoForExtension* nextProperty = nullptr;
|
|
};
|
|
typedef wchar_t*(*ExtensionFunction)(const wchar_t*, const InfoForExtension*);
|
|
|
|
#endif // EXTENSIONS_H
|