2014-09-27 09:25:14 +02:00
|
|
|
#ifndef __TEMPLATELOOPFUNCTION_H
|
|
|
|
#define __TEMPLATELOOPFUNCTION_H
|
|
|
|
|
|
|
|
#include "templatefunction.h"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
// --- cTemplateLoopFunction -------------------------------------------------------------
|
|
|
|
|
|
|
|
class cTemplateLoopFunction : public cTemplateFunction {
|
|
|
|
private:
|
|
|
|
vector<cTemplateFunction*> functions;
|
|
|
|
vector<cTemplateFunction*>::iterator funcIt;
|
2015-03-31 05:34:41 +02:00
|
|
|
bool ReplaceWidthFunctions(void);
|
|
|
|
bool ReplaceHeightFunctions(void);
|
2014-09-27 09:25:14 +02:00
|
|
|
public:
|
|
|
|
cTemplateLoopFunction(void);
|
|
|
|
virtual ~cTemplateLoopFunction(void);
|
|
|
|
void AddFunction(string name, vector<pair<string, string> > ¶ms);
|
|
|
|
void CalculateLoopFuncParameters(void);
|
|
|
|
void InitIterator(void);
|
|
|
|
cTemplateFunction *GetNextFunction(void);
|
|
|
|
void ClearDynamicParameters(void);
|
|
|
|
void ParseDynamicParameters(map <string,string> *tokens);
|
|
|
|
int GetLoopElementsWidth(void);
|
|
|
|
int GetLoopElementsHeight(void);
|
|
|
|
int GetContainerWidth(void) { return containerWidth; };
|
|
|
|
int GetContainerHeight(void) { return containerHeight; };
|
|
|
|
bool Ready(void);
|
|
|
|
void Debug(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__TEMPLATELOOPFUNCTION_H
|