warlngtextengine.h

来自「ftpserver very good sample」· C头文件 代码 · 共 94 行

H
94
字号
/** */#ifndef WarLngTextEngine_h#define WarLngTextEngine_h/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_LNG_TEXT_H#   include "WarLngText.h"#endif#ifndef WAR_CRITICAL_SECTION_H#   include "WarCriticalSection.h"#endif/* LOCAL INCLUDES *//* FORWARD REFERENCES */#ifdef __cplusplusextern "C" {#endif/****************** BEGIN OLD STYLE C spesific ********//****************** END OLD STYLE C spesific **********/#ifdef __cplusplus }#endif/****************** BEGIN C++ spesific ****************/#ifdef __cplusplusclass WarLngTextEngine {public:	typedef std::set<war_lngtext_ptr_t> lngtext_set_t;    // LIFECYCLE        /**    * Default constructor.    */    WarLngTextEngine();        /**    * Destructor.    */    ~WarLngTextEngine();        // OPERATORS    // OPERATIONS	void AddLngHandler(war_lngtext_ptr_t& lngPtr);		war_lngtext_ptr_t GetLngText(war_ccstr_t name, 		war_ccstr_t lngCode = NULL)  		throw(WarException);	    // CALLBACK    // ACCESS	static WarLngTextEngine& GetEngine();    // INQUIRY    protected:	WarCriticalSection mLock;	lngtext_set_t mLngHandlers;private:	static WarLngTextEngine *mpEngine;};/* INLINE METHODS *//* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif  /* WarLngTextEngine_h_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?