📄 warlngtext.h
字号:
/** */#ifndef WAR_LNG_TEXT_H#define WAR_LNG_TEXT_H/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_TYPES_H# include "WarTypes.h"#endif#ifndef WAR_EXCEPTION# include "WarException.h"#endif#ifndef WAR_SMART_POINTER_H# include "WarSmartPointer.h"#endif#ifndef WAR_PTR_WRAPPER_H# include "WarPtrWrapper.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 WarLngText : public WarSmartPointer{public: typedef std::vector<war_ccstr_t> array_t; // LIFECYCLE /** * Default constructor. */ WarLngText(size_t numStrings); /** Key constructor */ WarLngText(war_ccstr_t name, war_ccstr_t lngCode); /** * Destructor. */ virtual ~WarLngText(); // OPERATORS bool operator < (const WarLngText& from) const; bool operator == (const WarLngText& from) const; // OPERATIONS virtual WarLngText *CreateInstance() throw(WarException); // CALLBACK // ACCESS war_ccstr_t GetText(unsigned textIndex) const throw(WarException); // INQUIRY const std::string& GetName() const; const std::string& GetCharset() const; const std::string& GetLngCode() const; protected: std::string mName; // "webadm" std::string mCharset; // iso8859-1/utf-8 etc. std::string mLngCode; // "en-us", "no" etc.. array_t mStrings; const char **mStrNames; const char **mDefaultStrings;private:};/* INLINE METHODS *//* EXTERNAL REFERENCES */typedef WarPtrWrapper<WarLngText> war_lngtext_ptr_t;#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif /* WarLngText_h_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -