#ifndef _xdcTest_
#define _xdcTest_
/*<<<***************************************************************************
The MIT License (MIT)

Copyright(C) 2013 - 2015 Marc Mirti Mancinelli, Christophe Lardau and Philippe Pamart (xdcube.org)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

!!IMPORTANT!!
This software(mcTool) uses parts of sources owned by Microchip Technology, Inc, 
and so these parts are not covered by this licence. 
See header of concerned files (mpfs2dynVar.cpp, mpfs2lib.cpp) for their own licence. 
////////////////////////////////////////////////////////////////////////////////
#Title: mcTool
#Project: mcTool
////////////////////////////////////////////////////////////////////////////////
#Author: Marc MIRTI MANCINELLI
#History:
<30/12/2013: creation.
12/02/2014: this notice inserted.
***************************************************************************>>>*/

#include <xbApp.h>
#include "mpfs2lib.h"

#define MCTOOL_TABSIZE_DEFAULT 4
#define MCTOOL_TOKEN_ARGTYPE_STRING		"ROM char *"
#define MCTOOL_TOKEN_ARGTYPE_NUMBER		"WORD"

class mcTool:public xbAppConsole,public IMPFSBuilderUI
{
public:
	mcTool(int _cArg,const char **_pArg,bool _bSilent,bool _bMbox)
		:xbAppConsole("mcTool",_cArg,_pArg,_bSilent,_bMbox)
	{
		questionAnswer = 0;
		m_bDynaVarChangesOk = false;
		m_cWarning=0;
		m_tabSize=0;
	}

	virtual void buildStart(const xbString &msg);
	virtual void dynaVarStart(bool bHttpPrintIdxLoaded);
	virtual bool confirmDynaVarAdd(const xbString &varName, MPFSvarType varType,const FileLoc &fileLoc);
	virtual bool confirmDynaVarDel(const xbString &varName, MPFSvarType varType);
	virtual void infoLog(const xbString &log);
	virtual void warningLog(const xbString &log,const FileLoc &fileLoc);
	virtual uint32 getTabSize() const {return m_tabSize;}
	virtual xbString HTTPPrint_getHeaderAdd() const;
	virtual xbString HTTPPrint_TokenArgType_Number() const {return m_HTTPPrint_TokenArgType_Number;}
	virtual xbString HTTPPrint_TokenArgType_String() const {return m_HTTPPrint_TokenArgType_String;}

	bool m_bDynaVarChangesOk;
	int questionAnswer;
	uint32 m_cWarning;
	uint32 m_tabSize;
	xbString m_HTTPPrint_headerAdd,m_HTTPPrint_TokenArgType_Number,m_HTTPPrint_TokenArgType_String;
    xbString m_htmlTypes;
    xbString m_htmlTypes2m;
	xbString m_utf8types;
	xbString m_utf8types2m;
    xbString m_noGZipTypes;
    xbString m_hexTypes;
    xbString m_excludeTypes;
};


#endif
