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()
|
|
|
|
{
|
2017-04-09 18:38:01 +02:00
|
|
|
path dir{current_path()};
|
|
|
|
cout << dir << endl;
|
2017-04-02 22:31:53 +02:00
|
|
|
auto entries{list<directory_entry>()};
|
2017-04-09 18:38:01 +02:00
|
|
|
for (auto p : directory_iterator(dir))
|
2017-04-02 18:07:06 +02:00
|
|
|
{
|
2017-04-02 22:31:53 +02:00
|
|
|
if (is_regular_file(p))
|
|
|
|
{
|
2017-04-09 18:38:01 +02:00
|
|
|
entries.push_back(p);
|
|
|
|
cout << p.path().string() << endl;
|
2017-04-02 22:31:53 +02:00
|
|
|
}
|
|
|
|
}
|
2017-04-09 18:38:01 +02:00
|
|
|
for (list<directory_entry>::iterator iterator = entries.begin(), end = entries.end(); iterator != end; ++iterator)
|
2017-04-02 22:31:53 +02:00
|
|
|
{
|
2017-04-09 18:38:01 +02:00
|
|
|
directory_entry a{*iterator};
|
|
|
|
|
|
|
|
cout << a.path().filename() << " *" << endl;
|
2017-04-02 22:31:53 +02:00
|
|
|
}
|
2017-04-02 18:07:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
/*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;
|
|
|
|
}
|
|
|
|
|