some improvement in templates
(now we have O(1) time for selecting the right html template) added: winix function: template for selecting a template for an item (file or dir) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@636 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include "subject.h"
|
||||
#include "funthread.h"
|
||||
#include "funticket.h"
|
||||
#include "template.h"
|
||||
#include "tinymce.h"
|
||||
#include "uname.h"
|
||||
#include "upload.h"
|
||||
@@ -80,16 +81,22 @@ public:
|
||||
Fun::Subject fun_subject;
|
||||
Fun::FunThread fun_thread;
|
||||
Fun::FunTicket fun_ticket;
|
||||
Fun::Template fun_template;
|
||||
Fun::Tinymce fun_tinymce;
|
||||
Fun::Uname fun_uname;
|
||||
Fun::Upload fun_upload;
|
||||
Fun::Uptime fun_uptime;
|
||||
Fun::Who fun_who;
|
||||
|
||||
|
||||
typedef std::map<std::string, FunctionBase*> Table;
|
||||
typedef Table::iterator Iterator;
|
||||
|
||||
void Create();
|
||||
void Parse();
|
||||
size_t FunctionsSize();
|
||||
|
||||
Iterator Begin();
|
||||
Iterator End();
|
||||
|
||||
void MakeGet();
|
||||
void MakePost();
|
||||
@@ -133,7 +140,6 @@ private:
|
||||
|
||||
bool ReadItemUrlSubject(Item & item, Item::Type item_type);
|
||||
|
||||
typedef std::map<std::string, FunctionBase*> Table;
|
||||
Table table;
|
||||
|
||||
FunctionParser function_parser;
|
||||
|
||||
Reference in New Issue
Block a user