#ifndef XMLIDMLIB_HTMLTEMPLATE_SESSIONPOOL_NEW_HPP
#define XMLIDMLIB_HTMLTEMPLATE_SESSIONPOOL_NEW_HPP
/****************************************************************************

  module      : XMLIDMLib_HtmlTemplate_SessionPool_New.hpp

  -------------------------------------------------------------------------

  responsible : Daniel Kirmse

  special area: 
  description : 


  last changed: 2001-07-12  13:45
  see also    : 

  -------------------------------------------------------------------------


    ========== licence begin  GPL
    Copyright (c) 2001-2005 SAP AG

    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; either version 2
    of the License, or (at your option) any later version.

    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.
    ========== licence end


*****************************************************************************/

	/*===================================================================
	// Defines
	//===================================================================*/
	#define TEMPLATE_SESSIONPOOL_NEW						"XMLIDMLib_Html_SessionPool_New.htm"

	/*===================================================================
	// Template Keys
	//===================================================================*/
	#define TEMPLATE_KEY_SP_NEW_SERVICE						"Service*"
	#define TEMPLATE_KEY_SP_NEW_IDXSERVICE_ID				"ServiceID"
	#define TEMPLATE_KEY_SP_NEW_IDXSERVICE_NAME				"ServiceName"
	#define TEMPLATE_KEY_SP_NEW_IDXSERVICE_DESC				"ServiceDesc"
	#define TEMPLATE_KEY_SP_NEW_IDXSERVICE_STORE			"DocIdxStore"
	#define TEMPLATE_KEY_SP_NEW_IDXSERVICE_DSSP				"DocStore"
	#define TEMPLATE_KEY_SP_NEW_IDXSERVICE_ISSP				"IdxStore"
	#define TEMPLATE_KEY_SP_NEW_DBNODE						"DbNode"
	#define TEMPLATE_KEY_SP_NEW_DBNAME						"DbName"
	#define TEMPLATE_KEY_SP_NEW_DBUSER						"DbUser"
	#define TEMPLATE_KEY_SP_NEW_DBPWD						"DbPwd"
	#define TEMPLATE_KEY_SP_NEW_IDXSERVICE_DSSPNEW			"DSSPNew"
	#define TEMPLATE_KEY_SP_NEW_IDXSERVICE_ISSPNEW			"ISSPNew"
	#define TEMPLATE_KEY_SP_NEW_IDXSERVICE_DOCCLASS			"ADC"
	#define TEMPLATE_KEY_SP_NEW_HEADING						"Heading*"

	/*===================================================================
	// Template Values
	//===================================================================*/
	#define TEMPLATE_VALUE_SP_NEW_SERVICE					"Service"
	#define TEMPLATE_VALUE_SP_NEW_IDXSERVICE_ID				"ServiceID"
	#define TEMPLATE_VALUE_SP_NEW_IDXSERVICE_NAME			"ServiceName"
	#define TEMPLATE_VALUE_SP_NEW_IDXSERVICE_DESC			"ServiceDesc"
	#define TEMPLATE_VALUE_SP_NEW_IDXSERVICE_STORE			"DocIdxStore"
	#define TEMPLATE_VALUE_SP_NEW_IDXSERVICE_DSSP			"DocStore"
	#define TEMPLATE_VALUE_SP_NEW_IDXSERVICE_ISSP			"IdxStore"
	#define TEMPLATE_VALUE_SP_NEW_DBNODE					"DbNode"
	#define TEMPLATE_VALUE_SP_NEW_DBNAME					"DbName"
	#define TEMPLATE_VALUE_SP_NEW_DBUSER					"DbUser"
	#define TEMPLATE_VALUE_SP_NEW_DBPWD						"DbPwd"
	#define TEMPLATE_VALUE_SP_NEW_IDXSERVICE_DSSPNEW		"DSSPNew"
	#define TEMPLATE_VALUE_SP_NEW_IDXSERVICE_ISSPNEW		"ISSPNew"
	#define TEMPLATE_VALUE_SP_NEW_IDXSERVICE_DOCCLASS		"ADC"
	#define TEMPLATE_VALUE_SP_NEW_STORE						"store"

	/*===================================================================
	// Includes
	//===================================================================*/
	#include "SAPDB/XML/IndexingDeclarationLib/XMLIDMLib_Common_Include.hpp"
	#include "SAPDB/XML/IndexingDeclarationLib/XMLIDMLib_Common_Utils.hpp"


	/*===================================================================
	// Class XMLIDMLib_HtmlTemplate_SessionPool_New
	//===================================================================*/
	class XMLIDMLib_HtmlTemplate_SessionPool_New : public Tools_Template 
	{
		public:

			XMLIDMLib_HtmlTemplate_SessionPool_New(sapdbwa_WebAgent & wa, sapdbwa_HttpRequest req);

			~XMLIDMLib_HtmlTemplate_SessionPool_New();

		private:

			XMLIDMLIB_Int2 askForWriteCount(const Tools_DynamicUTF8String & szName);

			Tools_DynamicUTF8String askForValue (const Tools_DynamicUTF8String & szName);

			XMLIDMLIB_Char		_serviceName[512];
			XMLIDMLIB_Char		_idxServiceID[50];
			XMLIDMLIB_Char		_idxServiceName[130];
			XMLIDMLIB_Char		_idxServiceDesc[520];
			XMLIDMLIB_Char		_store[10];
			XMLIDMLIB_Char		_docstore[130];
			XMLIDMLIB_Char		_idxstore[130];
			XMLIDMLIB_Char		_dsspnew[3];
			XMLIDMLIB_Char		_isspnew[3];
			XMLIDMLIB_Char		_adc[130];
			sapdbwa_SessionPool	*_pSessionPool;

	}; 




#endif