crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
crawlservpp::Struct::WebsiteProperties Struct Reference

Website properties containing its domain, namespace, name, and data directory. More...

#include <WebsiteProperties.hpp>

Properties

std::string domain
 The domain of the website. More...
 
std::string nameSpace
 The namespace of the website. More...
 
std::string name
 The name of the website. More...
 
std::string dir
 The data directory to be used by the website. More...
 

Construction

 WebsiteProperties ()=default
 Default constructor. More...
 
 WebsiteProperties (const std::string &setDomain, const std::string &setNameSpace, const std::string &setName, const std::string &setDir)
 Constructor setting website properties. More...
 

Detailed Description

Website properties containing its domain, namespace, name, and data directory.

Constructor & Destructor Documentation

◆ WebsiteProperties() [1/2]

crawlservpp::Struct::WebsiteProperties::WebsiteProperties ( )
default

Default constructor.

◆ WebsiteProperties() [2/2]

crawlservpp::Struct::WebsiteProperties::WebsiteProperties ( const std::string &  setDomain,
const std::string &  setNameSpace,
const std::string &  setName,
const std::string &  setDir 
)
inline

Constructor setting website properties.

Parameters
setDomainConstant reference to a string containing the domain of the website. If the string is empty, the website is cross-domain.
setNameSpaceConstant reference to a string containing the namespace of the website.
setNameConstant reference to a string containing the name of the website.
setDirConstant reference to a string containing the data directory to be used by the website. If the string is empty, the default data directory will be used.

Member Data Documentation

◆ dir

std::string crawlservpp::Struct::WebsiteProperties::dir

The data directory to be used by the website.

If the directory is empty, the default data directory will be used.

Referenced by crawlservpp::Main::Database::addWebsite(), crawlservpp::Main::Database::moveWebsite(), and crawlservpp::Main::Database::updateWebsite().

◆ domain

std::string crawlservpp::Struct::WebsiteProperties::domain

◆ name

◆ nameSpace


The documentation for this struct was generated from the following file: