MyWebsitesGenerator/TestWebGen/TestWebGen.cpp

48 lines
1.0 KiB
C++
Raw Normal View History

2017-04-02 18:07:06 +02:00
// 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;
/*for (auto& p : directory_iterator(dir))
{
path asd = p.path();
if (!is_directory(p))
cout << asd.append("thepradev") << endl;
}*/
/*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;
}