adds rss feed support to blog
This commit is contained in:
parent
6d627aa9b4
commit
d8253d3333
117 changed files with 5336 additions and 326 deletions
25
Src/AtomBuilder.h
Normal file
25
Src/AtomBuilder.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#include <string>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <ctime>
|
||||
#include <stdio.h>
|
||||
#include <ctime>
|
||||
|
||||
class AtomBuilder
|
||||
{
|
||||
private:
|
||||
std::string feed;
|
||||
|
||||
|
||||
std::string readFile(std::string fileUrl);
|
||||
int calculateStartOfIdentifierLocation(std::string id, std::string text);
|
||||
|
||||
std::string getFeedHeader(std::string title, std::string link, std::string timestamp);
|
||||
std::string getTimeString();
|
||||
|
||||
public:
|
||||
void addHTMLEntry(std::string article, std::string title, std::string link, std::string timestamp);
|
||||
void writeToFile(std::string outFolderUrl);
|
||||
|
||||
AtomBuilder(std::string templateUrl);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue