putting dynamics to life
This commit is contained in:
parent
aa6c74c15e
commit
715ccc0f22
|
@ -0,0 +1,22 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <mongoose.h>
|
||||||
|
#include "Sicmaster.H"
|
||||||
|
#include "Sicobject.H"
|
||||||
|
#include <string>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
class DynamicObjects
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
std::string render_object_list();
|
||||||
|
std::string cleanpath(const char * const);
|
||||||
|
DynamicObjects(Sicmaster & sicmaster):sicmaster(sicmaster) {};
|
||||||
|
~DynamicObjects() {};
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string _cleanpath (const char * const path);
|
||||||
|
std::map<unsigned int, Sicobject *> _themap;
|
||||||
|
Sicmaster & sicmaster;
|
||||||
|
|
||||||
|
};
|
|
@ -1,5 +1,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <ctime>
|
||||||
|
|
||||||
#include "Sicmaster.H"
|
#include "Sicmaster.H"
|
||||||
|
|
||||||
class Sicobject
|
class Sicobject
|
||||||
|
@ -13,11 +16,12 @@ class Sicobject
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
Sicobject(Sicmaster &master, unsigned int idnum, std::string fname,size_t objsize) :
|
Sicobject(Sicmaster &master, unsigned int idnum, std::string fname,size_t objsize,time_t upl_date) :
|
||||||
_size(objsize),
|
_size(objsize),
|
||||||
_idnum(idnum),
|
_idnum(idnum),
|
||||||
_sicmaster(master),
|
_sicmaster(master),
|
||||||
_isvalid(true),
|
_isvalid(true),
|
||||||
|
_upl_date(upl_date),
|
||||||
_fname(fname)
|
_fname(fname)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -36,5 +40,6 @@ class Sicobject
|
||||||
unsigned int _idnum;
|
unsigned int _idnum;
|
||||||
Sicmaster & _sicmaster;
|
Sicmaster & _sicmaster;
|
||||||
bool _isvalid;
|
bool _isvalid;
|
||||||
|
time_t _upl_date;
|
||||||
std::string _fname;
|
std::string _fname;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue