warregistrybase.h

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

H
116
字号
/** */#ifndef WAR_REGISTRY_BASE_H#define WAR_REGISTRY_BASE_H/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_COLLECTOR_H#   include "WarCollector.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 WarRegistryBase :public WarSmartPointer{public:    typedef std::basic_string<war_sysch_t> name_t;    typedef std::basic_string<war_sysch_t> text_t;    typedef std::basic_string<war_sysch_t> value_t;    typedef const war_sysch_t *name_ccstr_t;    typedef const war_sysch_t *text_ccstr_t;    typedef const war_sysch_t *val_ccstr_t;    // LIFECYCLE        /**    * Default constructor.    */    WarRegistryBase(name_ccstr_t name, text_ccstr_t comment);        /**    * Copy constructor.    *    * @param from The value to copy to this object.    */    WarRegistryBase(const WarRegistryBase& from);        /**    * Destructor.    */    ~WarRegistryBase();        // OPERATORS    bool operator == (const WarRegistryBase& from);    bool operator < (const WarRegistryBase& from);        /**    * Assignment operator.    *    * @param from THe value to assign to this object.    *    * @return A reference to this object.    */    WarRegistryBase& operator = (const WarRegistryBase& from);        // OPERATIONS    // CALLBACK    // ACCESS        const name_t& GetName() const throw(WarException);    const text_t& GetComment() const throw(WarException);    // INQUIRY    protected:    name_t mName;     text_t mComment; // Original comment from fileprivate:};/* INLINE METHODS *//* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif  /* WAR_REGISTRY_BASE_H_ */

⌨️ 快捷键说明

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