My first try/project about getting my websites generated dinamically in C++ and a library. https://git.thepra.dev/thepra/MyWebsitesGenerator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

53 lines
1.2 KiB

// TestWebGen.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include "GeneralBuilder.h"
#include <stdio.h>
#include <experimental\filesystem>
#include "Utilities.h"
#include "ThePraDev.h"
using namespace std::experimental::filesystem::v1;
using namespace std;
using namespace CTML;
int main()
{
ThePraDev n{ThePraDev()};
string cDevOutputPath{Utilities::GetCurrentPath()+ "\\output_thepradev\\"};
string postcDevOutputPath{cDevOutputPath + "postsContent\\"};
path dir = canonical(".");
cout << dir.append("thepradev").append("a")<<endl;
auto entries{list<directory_entry>()};
for (auto& p : directory_iterator(dir))
{
if (is_regular_file(p))
{
entries.push_front(p);
cout << p.path() << endl;
}
}
for (list<directory_entry>::const_iterator iterator = entries.begin(), end = entries.end(); iterator != end; ++iterator)
{
cout << *iterator;
}
/*int i = 0;
list<Document> wholeSite = list<Document>();
GeneralBuilder dev;
wholeSite = dev.BuildThePraSite(Utilities::DEV);
for each (Document page in wholeSite)
{
page.WriteToFile(cDevOutputPath + n.pages[i++], Readability::MULTILINE);
}*/
cout << "DONE";
getchar();
return 0;
}