00001
00002
00003 #ifndef __NCC_H__
00004 #define __NCC_H__
00005
00006 #include "xmldoc.h"
00007 #include "meta.h"
00008 #include <vector>
00009
00010 namespace freedaisy {
00012 class NCC : public XMLDoc {
00013 public:
00015 NCC();
00017
00020 NCC(std::string filename) : XMLDoc(filename) {}
00022
00026 void createDoc(std::string title = "Default title", std::string lang = "en");
00028 std::string getTitle();
00030
00033 void setTitle(std::string newtitle);
00035
00040 void setLang(std::string lang);
00042
00045 std::string getLang();
00047
00050 std::vector<Meta> getMeta(std::string name);
00052 void addMeta(Meta *m);
00054
00057 XMLNode getPage(std::string number);
00059 XMLNode getBody();
00061 std::vector<XMLNode> getHeadings();
00062 };
00063 }
00064
00065 #endif