2008-12-30 02:05:03 +01:00
|
|
|
/*
|
2010-02-28 01:08:10 +01:00
|
|
|
* This file is a part of Winix
|
2008-12-30 02:05:03 +01:00
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
2010-02-28 22:33:06 +01:00
|
|
|
* Copyright (c) 2008-2010, Tomasz Sowa
|
2008-12-30 02:05:03 +01:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2009-04-21 22:50:55 +02:00
|
|
|
#ifndef headerfilecmslucorefunctionparser
|
|
|
|
#define headerfilecmslucorefunctionparser
|
|
|
|
|
2010-08-10 18:12:50 +02:00
|
|
|
#include "core/request.h"
|
|
|
|
#include "core/db.h"
|
|
|
|
#include "core/system.h"
|
|
|
|
|
|
|
|
|
|
|
|
class Functions;
|
|
|
|
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
class FunctionParser
|
|
|
|
{
|
2010-08-10 18:12:50 +02:00
|
|
|
Request * request;
|
|
|
|
Db * db;
|
|
|
|
Functions * functions;
|
|
|
|
System * system;
|
|
|
|
|
2008-12-30 02:05:03 +01:00
|
|
|
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();
|
2010-07-04 22:27:14 +02:00
|
|
|
void ParseParams(const std::string & par);
|
2008-12-30 02:05:03 +01:00
|
|
|
void ParseParams();
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2010-08-10 18:12:50 +02:00
|
|
|
void Parse(Request * prequest, Db * pdb, Functions * pfunctions, System * psystem);
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|