Index: ext/libicpf/src/libicpf/cfg_xml.h =================================================================== diff -u -N -r6eab6a2aa6bb49edaf1fcbcb9c9d8bc2d7795bb0 -r21847bff9bc6958b98f3fe8bac319590b790fc0f --- ext/libicpf/src/libicpf/cfg_xml.h (.../cfg_xml.h) (revision 6eab6a2aa6bb49edaf1fcbcb9c9d8bc2d7795bb0) +++ ext/libicpf/src/libicpf/cfg_xml.h (.../cfg_xml.h) (revision 21847bff9bc6958b98f3fe8bac319590b790fc0f) @@ -17,7 +17,7 @@ /** \name Construction/destruction/operators */ /**@{*/ xml_cfg(); ///< Standard constructor - xml_cfg(const xml_cfg& rSrc); ///< Copy construtor + xml_cfg(const xml_cfg& rSrc); ///< Copy constructor virtual ~xml_cfg(); ///< Standard destructor /**@}*/ @@ -42,28 +42,29 @@ virtual void set_value(const tchar_t* pszName, const tchar_t* pszValue, actions a=action_add); /// Clear values for a given property name virtual void clear(const tchar_t* pszName); + /// Clears all entries + virtual void clear(); /**@}*/ private: /// Find helper - recursively searches for a specific key node ptr_t find(ptr_t pNodePtr, const tchar_t* pszName); /// Set value helper - searches for a specific node and sets the value void set_value(ptr_t pNodePtr, const tchar_t* pszName, const tchar_t* pszValue, actions a=action_add); - /// Clear helper - clears the appropriate attribures + /// Clear helper - clears the appropriate attributes void clear(ptr_t pNodePtr, const tchar_t* pszName); /// Saves the specific node into the file void save_node(FILE* pFile, ptr_t pNodePtr); /// Stores the string to the file converted to utf8 - void fprintf_utf8(FILE* pFile, const tchar_t* pszFmt, ...); + void fprintf_encoded(FILE* pFile, const tchar_t* pszFmt, ...); static void element_start(void *userData, const tchar_t *name, const tchar_t **attrs); - static void element_end(void *userData, const tchar_t* /*name*/); + static void element_end(void *userData, const tchar_t* name); protected: ptr_t m_hMainNode; ///< Handle to the internal xml storage - tchar_t* m_pszBuffer; ///< Internal buffer to use for formatting data }; END_ICPF_NAMESPACE