stuff
This commit is contained in:
parent
9a8fb2f600
commit
2d4a8dc2bf
|
@ -1,20 +1,21 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <mongoose.h>
|
|
||||||
#include "Routerin.H"
|
#include "Routerin.H"
|
||||||
|
#include "sicccPersister.H"
|
||||||
#include "sicccobject.H"
|
#include "sicccobject.H"
|
||||||
|
#include <mongoose.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class Routerin;
|
//class Routerin;
|
||||||
|
|
||||||
class DynamicObjects
|
class DynamicObjects
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
std::string render_object_list();
|
std::string render_object_list();
|
||||||
std::string cleanpath(const char * const);
|
std::string cleanpath(const char * const);
|
||||||
DynamicObjects(Routerin * merouterin) : m_merouterin(merouterin){ };
|
DynamicObjects(Routerin * merouterin);
|
||||||
~DynamicObjects() {};
|
~DynamicObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _cleanpath (const char * const path);
|
std::string _cleanpath (const char * const path);
|
||||||
|
|
|
@ -25,4 +25,18 @@ std::string DynamicObjects::render_object_list(){
|
||||||
//<a href="/file/23/Foobar.jpg">Foobar.jpg</a> <span class="size">80 KB</span>
|
//<a href="/file/23/Foobar.jpg">Foobar.jpg</a> <span class="size">80 KB</span>
|
||||||
//<span class="stats"><b>42×</b> seit 1.1.1970 0:00 Uhr</span> //<--- TODO
|
//<span class="stats"><b>42×</b> seit 1.1.1970 0:00 Uhr</span> //<--- TODO
|
||||||
//</li>
|
//</li>
|
||||||
|
//
|
||||||
|
|
||||||
|
DynamicObjects::DynamicObjects(Routerin * merouterin) :
|
||||||
|
m_merouterin(merouterin)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DynamicObjects::~DynamicObjects()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,9 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <mongoose.h>
|
#include <mongoose.h>
|
||||||
|
|
||||||
#include "StaticFileHandler.H"
|
#include "StaticFileHandler.H"
|
||||||
#include "DynamicObjects.H"
|
//#include "DynamicObjects.H"
|
||||||
|
|
||||||
class DynamicObjects;
|
class DynamicObjects;
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "Foohash.H"
|
#include "Foohash.H"
|
||||||
#include "Routerin.H"
|
#include "Routerin.H"
|
||||||
|
#include "DynamicObjects.H"
|
||||||
|
|
||||||
using std::strcmp;
|
using std::strcmp;
|
||||||
using std::cout;
|
using std::cout;
|
||||||
|
|
|
@ -106,7 +106,6 @@ class SicccPersister
|
||||||
merouter(merouter)
|
merouter(merouter)
|
||||||
{
|
{
|
||||||
root = json_object();
|
root = json_object();
|
||||||
perists_path = "./";
|
|
||||||
json_file_name = "foo.json"; // not the best default
|
json_file_name = "foo.json"; // not the best default
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -114,7 +113,6 @@ class SicccPersister
|
||||||
merouter(merouter)
|
merouter(merouter)
|
||||||
{
|
{
|
||||||
root = get_json_from_sicccobject(so);
|
root = get_json_from_sicccobject(so);
|
||||||
perists_path =
|
|
||||||
json_file_name = so.get_filename();
|
json_file_name = so.get_filename();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue