warsvrproperties.h

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

H
122
字号
/** */#ifndef WAR_SVR_PROPERTIES_H#define WAR_SVR_PROPERTIES_H/* SYSTEM INCLUDES */#ifndef WAR_SET_INCLUDED#   define WAR_SET_INCLUDED#   include <set>#endif/* PROJECT INCLUDES */#ifndef WAR_SVR_PATH_H#   include "WarSvrPath.h"#endif#ifndef WAR_OPTION_LIST_H#   include "WarOptionList.h"#endif#ifndef WAR_IP_ACCESS_LIST_H#   include "WarIpAccessList.h"#endif#ifndef WAR_COLLECTOR_H#	include "WarCollector.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 WarSvrProperties : public WarSvrEnums{public:    typedef war_svr_pathset_t path_set_t;	typedef std::basic_string<war_sysch_t> filename_t;        // LIFECYCLE        /**    * Default constructor.    */    WarSvrProperties(void);        /**    * Copy constructor.    *    * @param from The value to copy to this object.    */    WarSvrProperties(const WarSvrProperties& from);        /**    * Destructor.    */    ~WarSvrProperties(void);        // OPERATORS    /** Add values in 'from' where the keys don't exist      * in the original object.      *      * Ie. If an path or option already is defined in      * the object, it is not changed.      */    WarSvrProperties& operator += (const WarSvrProperties& from);        /**    * Assignment operator.    *    * @param from THe value to assign to this object.    *    * @return A reference to this object.    */    WarSvrProperties& operator=(const WarSvrProperties& from);        // OPERATIONS                           // ACCESS    // INQUIRY    WarSvrPath ResolvPath(const WarSvrPath::path_t srchPath) const        throw(WarException);        path_set_t mPaths;    WarOptionList mOptions;    WarIpAccessList mIpAccessList;private:};/* INLINE METHODS *//* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif  /* WAR_SVR_PROPERTIES_H_ */

⌨️ 快捷键说明

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