SyndicationDomination 0.0
An RSS/Atom parser, because there's nothing else out there.
Loading...
Searching...
No Matches
Public Types | Public Attributes | List of all members
ExtractionParam Struct Reference

A parameter to be used in SynDomUtils::extract_from_node. More...

#include <extraction_param.hpp>

Public Types

enum  ParamType { CHILD , ATTRIBUTE }
 Describes where the target value has to be searched. More...
 

Public Attributes

ParamType type {CHILD}
 
std::vector< std::string > tags {}
 The node hierarchy to be traversed.
 
std::string attribute {""}
 In case ExtractionParam::type is ATTRIBUTE, the name of the attribute.
 

Detailed Description

A parameter to be used in SynDomUtils::extract_from_node.

Member Enumeration Documentation

◆ ParamType

Describes where the target value has to be searched.

Enumerator
CHILD 

The target value is inside the content of a node

ATTRIBUTE 

The target value is the attribute value of a node

Member Data Documentation

◆ attribute

std::string ExtractionParam::attribute {""}

In case ExtractionParam::type is ATTRIBUTE, the name of the attribute.

◆ tags

std::vector<std::string> ExtractionParam::tags {}

The node hierarchy to be traversed.

Can be an empty std::vector, in which case it means that there's no need to traverse any other node other than the root node.

◆ type

ParamType ExtractionParam::type {CHILD}

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