finalises first pass of work on BlogPageBuilder.
Project can now build the webpages required! additionally adds some example blog posts from my old website
This commit is contained in:
parent
d7a080b47a
commit
d0298d9493
133 changed files with 2355 additions and 3808 deletions
19
Src/Page.h
19
Src/Page.h
|
@ -25,19 +25,30 @@ public:
|
|||
class Page
|
||||
{
|
||||
private:
|
||||
std::string fileUrl;
|
||||
std::string fileContents;
|
||||
std::string sourceFileUrl;
|
||||
std::string sourceFileContents;
|
||||
|
||||
std::string outFileUrl;
|
||||
std::string outFileContents;
|
||||
std::string title;
|
||||
FileFlags flags;
|
||||
// file date should be added here
|
||||
|
||||
void calculatePageFlags();
|
||||
void calculatePageTitle();
|
||||
std::string readFile(std::string fileUrl);
|
||||
std::string findAndReplace(std::string text, std::string find, std::string replace);
|
||||
|
||||
public:
|
||||
Page(std::string fileUrl);
|
||||
std::string getPageContents();
|
||||
Page(std::string sourceFileUrl, std::string outFolderUrl);
|
||||
|
||||
std::string getSourceFileContents();
|
||||
std::string getOutFileUrl();
|
||||
std::string getPageTitle();
|
||||
FileFlags getPageFlags();
|
||||
|
||||
void setOutFileContents(std::string contents);
|
||||
|
||||
void writePageToFile();
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue