2008-12-30 02:05:03 +01:00
|
|
|
/*
|
|
|
|
* This file is a part of CMSLU -- Content Management System like Unix
|
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
|
|
|
* Copyright (c) 2008, Tomasz Sowa
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef headerfilefunctionparser
|
|
|
|
#define headerfilefunctionparser
|
|
|
|
|
|
|
|
#include "request.h"
|
|
|
|
#include "log.h"
|
|
|
|
#include "item.h"
|
|
|
|
#include "error.h"
|
|
|
|
#include "data.h"
|
|
|
|
#include "db.h"
|
|
|
|
|
2009-01-26 21:49:28 +01:00
|
|
|
#ifdef APPFUNCTIONS
|
|
|
|
#include "../app/content.h"
|
|
|
|
#endif
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
class FunctionParser
|
|
|
|
{
|
|
|
|
GetTable::size_type get_index;
|
|
|
|
GetTable::size_type get_table_len;
|
|
|
|
|
|
|
|
void SkipEmptyString(const char * msg);
|
|
|
|
|
|
|
|
void ParseDirectories();
|
|
|
|
void ParseItem();
|
2009-01-26 21:49:28 +01:00
|
|
|
bool IsAppFunction();
|
2008-12-30 02:05:03 +01:00
|
|
|
void ParseFunction();
|
|
|
|
void ParseParams();
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
void Parse();
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|