crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
All.hpp File Reference
#include "../Thread.hpp"
#include "../../../Struct/AlgoThreadProperties.hpp"
#include <memory>
Include dependency graph for All.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 crawlservpp::Module::Analyzer::Algo
 Namespace for algorithm classes.
 

Macros

#define REGISTER_ALGORITHM(ID, CLASS)
 

Typedefs

using crawlservpp::Module::Analyzer::Algo::AlgoThreadProperties = Struct::AlgoThreadProperties
 
using crawlservpp::Module::Analyzer::Algo::AlgoThreadPtr = std::unique_ptr< Module::Analyzer::Thread >
 

Registration

AlgoThreadPtr crawlservpp::Module::Analyzer::Algo::initAlgo (const AlgoThreadProperties &thread)
 Creates an algorithm thread. More...
 

Macro Definition Documentation

◆ REGISTER_ALGORITHM

#define REGISTER_ALGORITHM (   ID,
  CLASS 
)
Value:
if(thread.algoId == (ID)) { \
if(thread.status.id > 0) {\
return std::make_unique<CLASS>(\
thread.dbBase, \
thread.options, \
thread.status \
); \
}\
return std::make_unique<CLASS>(thread.dbBase, thread.options); \
}

Referenced by crawlservpp::Module::Analyzer::Algo::initAlgo().