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 headerfilefunctions
|
|
|
|
#define headerfilefunctions
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
#include "function.h"
|
2009-01-26 21:49:28 +01:00
|
|
|
#include "functioncodeparser.h"
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Functions
|
|
|
|
{
|
|
|
|
|
|
|
|
typedef std::map<std::string, Function> Table;
|
|
|
|
Table table;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Clear();
|
|
|
|
void ReadFunctions();
|
|
|
|
|
|
|
|
Function * GetFunction(const std::string & name);
|
2009-01-26 21:49:28 +01:00
|
|
|
Function * GetFunction(int code);
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|