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