#include <ncc.h>
Inheritance diagram for freedaisy::NCC:
Public Member Functions | |
NCC () | |
Create an empty NCC object. | |
NCC (std::string filename) | |
Create an NCC object from an XML file. | |
void | createDoc (std::string title="Default title", std::string lang="en") |
Create the NCC document. | |
std::string | getTitle () |
Get the document title. | |
void | setTitle (std::string newtitle) |
Set the document title. | |
void | setLang (std::string lang) |
Set the document language. | |
std::string | getLang () |
Get the document language. | |
std::vector< Meta > | getMeta (std::string name) |
Get a meta (like dc or ncc). | |
void | addMeta (Meta *m) |
Add a meta. | |
XMLNode | getPage (std::string number) |
Get a page. | |
XMLNode | getBody () |
Get body node. | |
std::vector< XMLNode > | getHeadings () |
Get headings (h1 to h6). |
Definition at line 12 of file ncc.h.
|
Create an NCC object from an XML file.
|
|
Create the NCC document.
Definition at line 12 of file ncc.cpp. References freedaisy::XMLDoc::_createDoc(), freedaisy::XMLNode::addChild(), freedaisy::XMLDoc::createRootNode(), freedaisy::XMLNode::setAttr(), freedaisy::XMLNode::setContent(), and setLang(). |
|
Get the document language. Code shared with Discinfo Definition at line 60 of file ncc.cpp. References freedaisy::XMLNode::hasAttr(), and freedaisy::XMLDoc::xpathEval(). |
|
Get a meta (like dc or ncc).
Definition at line 71 of file ncc.cpp. References freedaisy::XMLDoc::xpathEval(). |
|
Get a page.
Definition at line 109 of file ncc.cpp. References freedaisy::XMLDoc::xpathEval(). |
|
Set the document language.
Definition at line 52 of file ncc.cpp. References freedaisy::XMLNode::setAttr(), and freedaisy::XMLDoc::xpathEval(). Referenced by createDoc(). |
|
Set the document title.
Definition at line 46 of file ncc.cpp. References freedaisy::XMLNode::setContent(), and freedaisy::XMLDoc::xpathEval(). |