libwolfram20
WASubpod.h
Go to the documentation of this file.
1
10#ifndef WASUBPOD_H
11#define WASUBPOD_H
12
13#include <string>
14
15#include <rapidxml/rapidxml_utils.hpp>
16
17#include "WAImage.h"
18
19using namespace rapidxml;
20
26{
27public:
28 WASubpod(const WASubpod &old);
29 WASubpod(xml_node<>* subpod);
30 ~WASubpod();
31
32 std::string getTitle();
33 std::string getPlainText();
34
36 bool hasImage();
37
38private:
39 std::string _title;
40 std::string _plain;
42
43 void parse(xml_node<>* subpod);
44};
45
46#endif // WASUBPOD_H
Wolfram image.
Wolfram API image.
Definition: WAImage.h:24
WAImage * getImage()
Returns the subpod's image.
Definition: WASubpod.cpp:64
std::string getTitle()
Returns a 'title' attribute of subpod.
Definition: WASubpod.cpp:45
~WASubpod()
Destructor.
Definition: WASubpod.cpp:36
WASubpod(const WASubpod &old)
Copy constructor.
Definition: WASubpod.cpp:17
std::string getPlainText()
Returns a plain-text data, included on subpod.
Definition: WASubpod.cpp:54
bool hasImage()
Returns if the subpod contains an image.
Definition: WASubpod.cpp:74
void parse(xml_node<> *subpod)
Parsing the input subpod.
Definition: WASubpod.cpp:84
Wolfram API element.
Definition: WASubpod.h:26
WAImage * _img
Included img block.
Definition: WASubpod.h:41
std::string _title
TODO.
Definition: WASubpod.h:39
std::string _plain
TODO.
Definition: WASubpod.h:40