1 #ifndef __EIENTPL_HPP__ 2 #define __EIENTPL_HPP__ 11 #ifdef EIENTPL_DLL_USE 12 #if defined(_MSC_VER) || defined(WIN32) 13 #pragma warning( disable: 4251 ) 14 #ifdef EIENTPL_DLL_EXPORTS 15 #define EIENTPL_DLL __declspec(dllexport) 17 #define EIENTPL_DLL __declspec(dllimport) 20 #define EIENTPL_API __stdcall 30 #define EIENTPL_FUNC_DECL(ret) EIENTPL_DLL ret EIENTPL_API 31 #define EIENTPL_FUNC_IMPL(ret) ret EIENTPL_API 132 virtual bool hasCache(
winux::String const & cacheName )
const = 0;
143 virtual void setLifeTime( time_t lifeTime = 0 ) = 0;
145 virtual time_t getLifeTime()
const = 0;
159 virtual bool hasCache(
winux::String const & cacheName )
const override;
165 virtual void setLifeTime( time_t lifeTime = 0 )
override;
166 virtual time_t getLifeTime()
const override;
175 time_t _cacheLifeTime;
201 virtual bool hasCache(
winux::String const & cacheName )
const override;
207 virtual void setLifeTime( time_t lifeTime = 0 )
override;
208 virtual time_t getLifeTime()
const override;
211 time_t _cacheLifeTime;
212 CacheItemsMap * _cacheItems;
217 #endif // __EIENTPL_HPP__ XString< char > AnsiString
String PathWithSep(String const &path)
路径分隔符整理
winux::String const & getTplDirPath() const
取得模板相对目录路径
TplError(int errNo, winux::AnsiString const &err)
winux::StringArray _loadFilesChains
防止load无穷递归,记录载入文件链
eienexpr::ExprPackage _exprPack
表达式包
eienml::ElemPackage _elemPack
模板语言元素包
eienexpr::VarContext * getVarContext()
访问内部变量场景对象,以便直接操作变量
void setCache(TemplateCache *cache=NULL)
设置缓存机制是否开启,NULL为关闭
winux::String const & getCacheDirPath() const
#define DISABLE_OBJECT_COPY(clsname)
winux::String const & getCacheExt() const
winux::String const & getLocalEncoding() const
winux::String const & getTargetEncoding() const
std::map< winux::String, CacheItemsMap > CacheStruct
map< webappname, cache_items >
std::map< winux::String, CacheItem > CacheItemsMap
map< name, cache_item >
void setTplDirPath(winux::String const &dirPath)
设置模板相对目录路径(末尾不是目录分隔符则加上分隔符)
XStringArray< tchar > StringArray