SyndicationDomination
0.0
An RSS/Atom parser, because there's nothing else out there.
Loading...
Searching...
No Matches
src
extraction_param.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <pugixml.hpp>
4
#include <string>
5
#include <vector>
6
7
8
using namespace
pugi;
9
13
struct
ExtractionParam
{
17
enum
ParamType
{
18
CHILD
,
19
ATTRIBUTE
20
};
21
22
ParamType
type
{
CHILD
};
23
29
std::vector<std::string>
tags
{};
30
35
std::string
attribute
{
""
};
36
};
ExtractionParam
A parameter to be used in SynDomUtils::extract_from_node.
Definition
extraction_param.hpp:13
ExtractionParam::ParamType
ParamType
Describes where the target value has to be searched.
Definition
extraction_param.hpp:17
ExtractionParam::ATTRIBUTE
@ ATTRIBUTE
Definition
extraction_param.hpp:19
ExtractionParam::CHILD
@ CHILD
Definition
extraction_param.hpp:18
ExtractionParam::tags
std::vector< std::string > tags
The node hierarchy to be traversed.
Definition
extraction_param.hpp:29
ExtractionParam::attribute
std::string attribute
In case ExtractionParam::type is ATTRIBUTE, the name of the attribute.
Definition
extraction_param.hpp:35
ExtractionParam::type
ParamType type
Definition
extraction_param.hpp:22
Generated by
1.9.8