📄 warlngtextengine.h
字号:
/** */#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -