FDO API Reference | Feature Data Objects |
00001 #ifndef FDO_XML_UTILXRCS_H 00002 #define FDO_XML_UTILXRCS_H 00003 // 00004 00005 // 00006 // Copyright (C) 2004-2006 Autodesk, Inc. 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of version 2.1 of the GNU Lesser 00010 // General Public License as published by the Free Software Foundation. 00011 // 00012 // This library is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 // Lesser General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU Lesser General Public 00018 // License along with this library; if not, write to the Free Software 00019 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00020 // 00021 00022 #include <FdoCommon.h> 00023 00024 /// \cond DOXYGEN-IGNORE 00025 // This class provides some utility functions for using Xerces to parse XML 00026 // documents. 00027 class FdoXmlUtilXrcs { 00028 public: 00029 /// Do one-time initialization of Xerces package. This function can be called 00030 /// multiple times. It only initializes Xerces once. 00031 FDO_API_COMMON static void Initialize(); 00032 /// Xerces wide characters are always 2 bytes. FDO wide character size varies between 00033 /// operating systems: 00034 00035 /// Converts Xerces wide char string to FDO wide chars. 00036 /// 00037 FDO_API_COMMON static FdoStringP Xrcs2Unicode( const XMLCh* chars, const unsigned int length = 0 ); 00038 /// Converts FDO wide char string to Xerces wide chars. 00039 /// Caller is responsible for freeing returned string. The string must be freed using 00040 /// XERCES_CPP_NAMESPACE::XMLString::release(). 00041 FDO_API_COMMON static XMLCh* Unicode2Xrcs( const FdoString* chars ); 00042 }; 00043 /// \endcond 00044 00045 #endif 00046 00047
Comments or suggestions? Send us feedback. |