15#include <rapidxml/rapidxml_utils.hpp>
17using namespace rapidxml;
47 void parse(xml_node<>* imgNode);
size_t getHeight()
Returning a 'height' attribute of image.
Definition: WAImage.cpp:62
void parse(xml_node<> *imgNode)
Parsing a input 'img' xml node.
Definition: WAImage.cpp:72
std::string getSrc()
Returning a 'src' attribute of image.
Definition: WAImage.cpp:26
size_t getWidth()
Returning a 'width' attribute of image.
Definition: WAImage.cpp:53
std::string getAlt()
Returning a 'alt' attribute of image.
Definition: WAImage.cpp:35
std::string getTitle()
Returning a 'title' attribute of image.
Definition: WAImage.cpp:44
WAImage(const WAImage &old)=default
Copy constructor.
Wolfram API image.
Definition: WAImage.h:24
size_t _width
The width of the image in pixels.
Definition: WAImage.h:44
size_t _height
The height of the image in pixels. Scales depending on width setting.
Definition: WAImage.h:45
std::string _src
The exact URL of the image being displayed.
Definition: WAImage.h:41
std::string _title
Descriptive title for internal identification of an image.
Definition: WAImage.h:43
std::string _alt
Alternate text to display in case the image does not render correctly.
Definition: WAImage.h:42