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

Configuration item containing its category, name, and JSON value. More...

#include <ConfigItem.hpp>

Properties

std::string category
 Category of the configuration item. More...
 
std::string name
 Name of the configuration item. More...
 
const rapidjson::Value * value {nullptr}
 JSON value of the configuration item, or nullptr if not initialized. More...
 

Getter

std::string str () const
 Combines category and name into one string. More...
 

Construction and Destruction

 ConfigItem ()=default
 Default constructor. More...
 
virtual ~ConfigItem ()=default
 Default destructor. More...
 

Copy and Move

The class is not copyable, only (default) moveable.

 ConfigItem (ConfigItem &)=delete
 Deleted copy constructor. More...
 
ConfigItemoperator= (ConfigItem &)=delete
 Deleted copy assignment operator. More...
 
 ConfigItem (ConfigItem &&)=default
 Default move constructor. More...
 
ConfigItemoperator= (ConfigItem &&)=default
 Default move assignment operator. More...
 

Detailed Description

Configuration item containing its category, name, and JSON value.

Constructor & Destructor Documentation

◆ ConfigItem() [1/3]

crawlservpp::Struct::ConfigItem::ConfigItem ( )
default

Default constructor.

Referenced by str().

◆ ~ConfigItem()

virtual crawlservpp::Struct::ConfigItem::~ConfigItem ( )
virtualdefault

Default destructor.

Referenced by str().

◆ ConfigItem() [2/3]

crawlservpp::Struct::ConfigItem::ConfigItem ( ConfigItem )
delete

Deleted copy constructor.

◆ ConfigItem() [3/3]

crawlservpp::Struct::ConfigItem::ConfigItem ( ConfigItem &&  )
default

Default move constructor.

Member Function Documentation

◆ operator=() [1/2]

ConfigItem& crawlservpp::Struct::ConfigItem::operator= ( ConfigItem )
delete

Deleted copy assignment operator.

Referenced by str().

◆ operator=() [2/2]

ConfigItem& crawlservpp::Struct::ConfigItem::operator= ( ConfigItem &&  )
default

Default move assignment operator.

◆ str()

std::string crawlservpp::Struct::ConfigItem::str ( ) const
inline

Combines category and name into one string.

Returns
New std::string containing both category and name, separated by a dot, i.e. category.name.

References ConfigItem(), operator=(), and ~ConfigItem().

Referenced by crawlservpp::Module::Config::loadConfig(), and crawlservpp::Module::Config::option().

Member Data Documentation

◆ category

std::string crawlservpp::Struct::ConfigItem::category

Category of the configuration item.

Referenced by crawlservpp::Module::Config::category(), and crawlservpp::Module::Config::loadConfig().

◆ name

std::string crawlservpp::Struct::ConfigItem::name

Name of the configuration item.

Referenced by crawlservpp::Module::Config::loadConfig(), and crawlservpp::Module::Config::option().

◆ value

const rapidjson::Value* crawlservpp::Struct::ConfigItem::value {nullptr}

JSON value of the configuration item, or nullptr if not initialized.

Referenced by crawlservpp::Module::Config::loadConfig(), and crawlservpp::Module::Config::option().


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