fs/ut/fsXmlDoc.h

Go to the documentation of this file.
00001 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
00002 /*                          _______      ______    ______          __      */
00003 /*  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~    / ____(_)___ / ___ /)  / ____/___  ____/ /__    */
00004 /*     [fsXmlDoc]         / /_  / / __ \\__ \|/  / /   / __ \/ __  / _ \   */
00005 /*       rev. 4          / __/ / / /_/ /__/ /   / /___/ /_/ / /_/ /  __/   */
00006 /*    13th Jan 2007     /_/   /_/ ,___/____/    \____/\____/\__,_/\___/    */
00007 /*     [x] stable              /_/ (c) 2005-7 Filip STOKLAS (FipS)         */
00008 /*  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~       http://HOLE.4FipS.com/fips_code.php          */
00009 /*                                                                         */
00010 /* This code is free for personal and commercial use. You may redistribute */
00011 /* it by any means. If you use the code for your own projects please give  */
00012 /* me credit. Please send a bug report. Don't alter or remove this header! */
00013 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
00014 #ifndef FS_UT_FSXMLDOC_H
00015 #define FS_UT_FSXMLDOC_H
00016 //---------------------------------------------------------------------------
00017 #if defined(FS_INCLUDE_USERDEFS) // inject user definition file on request
00018 #   include <fs/fsUserDefs.h>
00019 #endif
00020 //---------------------------------------------------------------------------
00021 namespace fs { namespace ut {
00022 //---------------------------------------------------------------------------
00024 
00036 class XmlDoc_t
00037 {
00038  public:
00039  
00041     explicit XmlDoc_t(const char *pszFile);
00043     XmlDoc_t(const char *pszData, bool bUnused);
00045     ~XmlDoc_t();
00047     bool IsValid() const;
00048     
00050     bool Query(const char *pszQuery, int &nValue) const;
00052     bool Query(const char *pszQuery, const char *&pszText) const;
00053      
00054  private:
00055  
00056     XmlDoc_t(); 
00057     XmlDoc_t(const XmlDoc_t &); 
00058     XmlDoc_t & operator = (const XmlDoc_t &); 
00059 
00060     void *m_pImpl; 
00061 };
00062 //---------------------------------------------------------------------------
00063 }} // namespace fs::ut
00064 //---------------------------------------------------------------------------
00065 #endif // FS_UT_FSXMLDOC_H

FipS' Code (Thu Feb 15 22:43:35 2007) - (c) Filip STOKLAS (FipS) - [ www ] [ Guest Book ]