📄 datafarm_configure.hpp
字号:
/* Copy Left/Right : OTHER ,Amfproject * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; version 2 of the License. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA* **************************************************************************** * Project: kdddatafarm * Programmer: lucy * Created On: Jan 24, 2009 ****************************************************************************/#ifndef DATAFARM_CONFIGURE_HPP_#define DATAFARM_CONFIGURE_HPP_/*-- Compiler Controls -----------------------------------------------------*//*-- Includes --------------------------------------------------------------*/#include <string>#include <xercesc/sax2/DefaultHandler.hpp>#include <kdd/xmlutil.hpp>XERCES_CPP_NAMESPACE_USE/*-- Namespace Controller --------------------------------------------------*/namespace kdd{/*-- Extern Types ----------------------------------------------------------*//*--------------------------------------------------------------------------*/struct datafarm_configure{ std::string server; std::string database; std::string user; std::string pass; size_t PoolSize;};class datafarm_configure_handler : public DefaultHandler{private: xstring text; datafarm_configure conf;public: const datafarm_configure& getConf() const { return conf; } virtual void startDocument(); virtual void endDocument(); virtual void startElement(const XMLCh* const uri, const XMLCh* const localname, const XMLCh* const qname, const Attributes& attrs); virtual void endElement(const XMLCh * const uri, const XMLCh * const localname, const XMLCh * const qname); virtual void characters(const XMLCh* const chars, const unsigned int length);};/*-- Namespace Ender -------------------------------------------------------*/}/*--------------------------------------------------------------------------*/#endif /* DATAFARM_CONFIGURE_HPP_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -