📄 warregistrykey.h
字号:
/** */#ifndef WAR_REGISTRY_KEY_H#define WAR_REGISTRY_KEY_H/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_REGISTRY_BASE_H# include "WarRegistryBase.h"#endif#ifndef WAR_REGISTRY_VALUE_H# include "WarRegistryValue.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 WarRegistryKey :public WarRegistryBase{public: typedef WarPtrWrapper<WarRegistryKey> key_ptr_t; typedef WarPtrWrapper<WarRegistryValue> value_ptr_t; typedef std::set<key_ptr_t> key_set_t; typedef std::set<value_ptr_t> value_set_t; // LIFECYCLE /** * Default constructor. */ WarRegistryKey(name_ccstr_t name, text_ccstr_t comment); /** * Copy constructor. * * @param from The value to copy to this object. */ WarRegistryKey(const WarRegistryKey& from); /** * Destructor. */ ~WarRegistryKey(); // OPERATORS /** * Assignment operator. * * @param from THe value to assign to this object. * * @return A reference to this object. */ WarRegistryKey& operator = (const WarRegistryKey& from); // OPERATIONS void SetValue(name_ccstr_t name, name_ccstr_t value) throw(WarException); key_ptr_t Open(name_ccstr_t name) throw(WarException); key_ptr_t Create(name_ccstr_t name) throw(WarException); // CALLBACK // ACCESS const WarRegistryValue::value_t& GetValue(name_ccstr_t name) const throw(WarException); // INQUIRY bool IsValue(name_ccstr_t name) const; bool IsKey(name_ccstr_t name) const; protected: friend class WarRegistry; key_set_t mChildren; value_set_t mValues; key_set_t::const_iterator LookupKey(name_ccstr_t name) const throw(WarException); value_set_t::const_iterator LookupValue(name_ccstr_t name) const throw(WarException);private:};/* INLINE METHODS */typedef WarRegistryKey::key_ptr_t war_registry_key_ptr_t;typedef WarRegistryKey::value_ptr_t war_registry_value_ptr_t;/* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif /* WAR_REGISTRY_KEY_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -