text: /**
  	* \file PnlWdbeVarList.cpp
  	* API code for job PnlWdbeVarList (implementation)
  	* \copyright (C) 2016-2020 MPSI Technologies GmbH
  	* \author Alexander Wirthmueller (auto-generation)
  	* \date created: 5 Dec 2020
  	*/
  // IP header --- ABOVE
  
  #include "PnlWdbeVarList.h"
  
  using namespace std;
  using namespace Sbecore;
  using namespace Xmlio;
  
  /******************************************************************************
   class PnlWdbeVarList::VecVDo
   ******************************************************************************/
  
  uint PnlWdbeVarList::VecVDo::getIx(
  			const string& sref
  		) {
  	string s = StrMod::lc(sref);
  
  	if (s == "butminimizeclick") return BUTMINIMIZECLICK;
  	if (s == "butregularizeclick") return BUTREGULARIZECLICK;
  	if (s == "butnewclick") return BUTNEWCLICK;
  	if (s == "butdeleteclick") return BUTDELETECLICK;
  	if (s == "butfilterclick") return BUTFILTERCLICK;
  	if (s == "butrefreshclick") return BUTREFRESHCLICK;
  
  	return(0);
  };
  
  string PnlWdbeVarList::VecVDo::getSref(
  			const uint ix
  		) {
  	if (ix == BUTMINIMIZECLICK) return("ButMinimizeClick");
  	if (ix == BUTREGULARIZECLICK) return("ButRegularizeClick");
  	if (ix == BUTNEWCLICK) return("ButNewClick");
  	if (ix == BUTDELETECLICK) return("ButDeleteClick");
  	if (ix == BUTFILTERCLICK) return("ButFilterClick");
  	if (ix == BUTREFRESHCLICK) return("ButRefreshClick");
  
  	return("");
  };
  
  /******************************************************************************
   class PnlWdbeVarList::ContIac
   ******************************************************************************/
  
  PnlWdbeVarList::ContIac::ContIac(
  			const uint numFTos
  		) :
  			Block()
  		{
  	this->numFTos = numFTos;
  
  	mask = {NUMFTOS};
  };
  
  bool PnlWdbeVarList::ContIac::readXML(
  			xmlXPathContext* docctx
  			, string basexpath
  			, bool addbasetag
  		) {
  	clear();
  
  	bool basefound;
  
  	if (addbasetag)
  		basefound = checkUclcXPaths(docctx, basexpath, basexpath, "ContIacWdbeVarList");
  	else
  		basefound = checkXPath(docctx, basexpath);
  
  	string itemtag = "ContitemIacWdbeVarList";
  
  	if (basefound) {
  		if (extractUintAttrUclc(docctx, basexpath, itemtag, "Ci", "sref", "numFTos", numFTos)) add(NUMFTOS);
  	};
  
  	return basefound;
  };
  
  void PnlWdbeVarList::ContIac::writeXML(
  			xmlTextWriter* wr
  			, string difftag
  			, bool shorttags
  		) {
  	if (difftag.length() == 0) difftag = "ContIacWdbeVarList";
  
  	string itemtag;
  	if (shorttags) itemtag = "Ci";
  	else itemtag = "ContitemIacWdbeVarList";
  
  	xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
  		writeUintAttr(wr, itemtag, "sref", "numFTos", numFTos);
  	xmlTextWriterEndElement(wr);
  };
  
  set<uint> PnlWdbeVarList::ContIac::comm(
  			const ContIac* comp
  		) {
  	set<uint> items;
  
  	if (numFTos == comp->numFTos) insert(items, NUMFTOS);
  
  	return(items);
  };
  
  set<uint> PnlWdbeVarList::ContIac::diff(
  			const ContIac* comp
  		) {
  	set<uint> commitems;
  	set<uint> diffitems;
  
  	commitems = comm(comp);
  
  	diffitems = {NUMFTOS};
  	for (auto it = commitems.begin(); it != commitems.end(); it++) diffitems.erase(*it);
  
  	return(diffitems);
  };
  
  /******************************************************************************
   class PnlWdbeVarList::ContInf
   ******************************************************************************/
  
  PnlWdbeVarList::ContInf::ContInf(
  			const string& TxtFor
  			, const string& TxtPre
  			, const bool ButFilterOn
  			, const uint numFCsiQst
  		) :
  			Block()
  		{
  	this->TxtFor = TxtFor;
  	this->TxtPre = TxtPre;
  	this->ButFilterOn = ButFilterOn;
  	this->numFCsiQst = numFCsiQst;
  
  	mask = {TXTFOR, TXTPRE, BUTFILTERON, NUMFCSIQST};
  };
  
  bool PnlWdbeVarList::ContInf::readXML(
  			xmlXPathContext* docctx
  			, string basexpath
  			, bool addbasetag
  		) {
  	clear();
  
  	bool basefound;
  
  	if (addbasetag)
  		basefound = checkUclcXPaths(docctx, basexpath, basexpath, "ContInfWdbeVarList");
  	else
  		basefound = checkXPath(docctx, basexpath);
  
  	string itemtag = "ContitemInfWdbeVarList";
  
  	if (basefound) {
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ci", "sref", "TxtFor", TxtFor)) add(TXTFOR);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ci", "sref", "TxtPre", TxtPre)) add(TXTPRE);
  		if (extractBoolAttrUclc(docctx, basexpath, itemtag, "Ci", "sref", "ButFilterOn", ButFilterOn)) add(BUTFILTERON);
  		if (extractUintAttrUclc(docctx, basexpath, itemtag, "Ci", "sref", "numFCsiQst", numFCsiQst)) add(NUMFCSIQST);
  	};
  
  	return basefound;
  };
  
  set<uint> PnlWdbeVarList::ContInf::comm(
  			const ContInf* comp
  		) {
  	set<uint> items;
  
  	if (TxtFor == comp->TxtFor) insert(items, TXTFOR);
  	if (TxtPre == comp->TxtPre) insert(items, TXTPRE);
  	if (ButFilterOn == comp->ButFilterOn) insert(items, BUTFILTERON);
  	if (numFCsiQst == comp->numFCsiQst) insert(items, NUMFCSIQST);
  
  	return(items);
  };
  
  set<uint> PnlWdbeVarList::ContInf::diff(
  			const ContInf* comp
  		) {
  	set<uint> commitems;
  	set<uint> diffitems;
  
  	commitems = comm(comp);
  
  	diffitems = {TXTFOR, TXTPRE, BUTFILTERON, NUMFCSIQST};
  	for (auto it = commitems.begin(); it != commitems.end(); it++) diffitems.erase(*it);
  
  	return(diffitems);
  };
  
  /******************************************************************************
   class PnlWdbeVarList::StatShr
   ******************************************************************************/
  
  PnlWdbeVarList::StatShr::StatShr(
  			const uint ixWdbeVExpstate
  			, const bool ButDeleteActive
  		) :
  			Block()
  		{
  	this->ixWdbeVExpstate = ixWdbeVExpstate;
  	this->ButDeleteActive = ButDeleteActive;
  
  	mask = {IXWDBEVEXPSTATE, BUTDELETEACTIVE};
  };
  
  bool PnlWdbeVarList::StatShr::readXML(
  			xmlXPathContext* docctx
  			, string basexpath
  			, bool addbasetag
  		) {
  	clear();
  
  	string srefIxWdbeVExpstate;
  
  	bool basefound;
  
  	if (addbasetag)
  		basefound = checkUclcXPaths(docctx, basexpath, basexpath, "StatShrWdbeVarList");
  	else
  		basefound = checkXPath(docctx, basexpath);
  
  	string itemtag = "StatitemShrWdbeVarList";
  
  	if (basefound) {
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "srefIxWdbeVExpstate", srefIxWdbeVExpstate)) {
  			ixWdbeVExpstate = VecWdbeVExpstate::getIx(srefIxWdbeVExpstate);
  			add(IXWDBEVEXPSTATE);
  		};
  		if (extractBoolAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "ButDeleteActive", ButDeleteActive)) add(BUTDELETEACTIVE);
  	};
  
  	return basefound;
  };
  
  set<uint> PnlWdbeVarList::StatShr::comm(
  			const StatShr* comp
  		) {
  	set<uint> items;
  
  	if (ixWdbeVExpstate == comp->ixWdbeVExpstate) insert(items, IXWDBEVEXPSTATE);
  	if (ButDeleteActive == comp->ButDeleteActive) insert(items, BUTDELETEACTIVE);
  
  	return(items);
  };
  
  set<uint> PnlWdbeVarList::StatShr::diff(
  			const StatShr* comp
  		) {
  	set<uint> commitems;
  	set<uint> diffitems;
  
  	commitems = comm(comp);
  
  	diffitems = {IXWDBEVEXPSTATE, BUTDELETEACTIVE};
  	for (auto it = commitems.begin(); it != commitems.end(); it++) diffitems.erase(*it);
  
  	return(diffitems);
  };
  
  /******************************************************************************
   class PnlWdbeVarList::StgIac
   ******************************************************************************/
  
  PnlWdbeVarList::StgIac::StgIac(
  			const uint TcoSrfWidth
  			, const uint TcoPrcWidth
  			, const uint TcoConWidth
  			, const uint TcoFalWidth
  			, const uint TcoHtyWidth
  			, const uint TcoWidWidth
  			, const uint TcoMmxWidth
  		) :
  			Block()
  		{
  	this->TcoSrfWidth = TcoSrfWidth;
  	this->TcoPrcWidth = TcoPrcWidth;
  	this->TcoConWidth = TcoConWidth;
  	this->TcoFalWidth = TcoFalWidth;
  	this->TcoHtyWidth = TcoHtyWidth;
  	this->TcoWidWidth = TcoWidWidth;
  	this->TcoMmxWidth = TcoMmxWidth;
  
  	mask = {TCOSRFWIDTH, TCOPRCWIDTH, TCOCONWIDTH, TCOFALWIDTH, TCOHTYWIDTH, TCOWIDWIDTH, TCOMMXWIDTH};
  };
  
  bool PnlWdbeVarList::StgIac::readXML(
  			xmlXPathContext* docctx
  			, string basexpath
  			, bool addbasetag
  		) {
  	clear();
  
  	bool basefound;
  
  	if (addbasetag)
  		basefound = checkUclcXPaths(docctx, basexpath, basexpath, "StgIacWdbeVarList");
  	else
  		basefound = checkXPath(docctx, basexpath);
  
  	string itemtag = "StgitemIacWdbeVarList";
  
  	if (basefound) {
  		if (extractUintAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "TcoSrfWidth", TcoSrfWidth)) add(TCOSRFWIDTH);
  		if (extractUintAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "TcoPrcWidth", TcoPrcWidth)) add(TCOPRCWIDTH);
  		if (extractUintAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "TcoConWidth", TcoConWidth)) add(TCOCONWIDTH);
  		if (extractUintAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "TcoFalWidth", TcoFalWidth)) add(TCOFALWIDTH);
  		if (extractUintAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "TcoHtyWidth", TcoHtyWidth)) add(TCOHTYWIDTH);
  		if (extractUintAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "TcoWidWidth", TcoWidWidth)) add(TCOWIDWIDTH);
  		if (extractUintAttrUclc(docctx, basexpath, itemtag, "Si", "sref", "TcoMmxWidth", TcoMmxWidth)) add(TCOMMXWIDTH);
  	};
  
  	return basefound;
  };
  
  void PnlWdbeVarList::StgIac::writeXML(
  			xmlTextWriter* wr
  			, string difftag
  			, bool shorttags
  		) {
  	if (difftag.length() == 0) difftag = "StgIacWdbeVarList";
  
  	string itemtag;
  	if (shorttags) itemtag = "Si";
  	else itemtag = "StgitemIacWdbeVarList";
  
  	xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
  		writeUintAttr(wr, itemtag, "sref", "TcoSrfWidth", TcoSrfWidth);
  		writeUintAttr(wr, itemtag, "sref", "TcoPrcWidth", TcoPrcWidth);
  		writeUintAttr(wr, itemtag, "sref", "TcoConWidth", TcoConWidth);
  		writeUintAttr(wr, itemtag, "sref", "TcoFalWidth", TcoFalWidth);
  		writeUintAttr(wr, itemtag, "sref", "TcoHtyWidth", TcoHtyWidth);
  		writeUintAttr(wr, itemtag, "sref", "TcoWidWidth", TcoWidWidth);
  		writeUintAttr(wr, itemtag, "sref", "TcoMmxWidth", TcoMmxWidth);
  	xmlTextWriterEndElement(wr);
  };
  
  set<uint> PnlWdbeVarList::StgIac::comm(
  			const StgIac* comp
  		) {
  	set<uint> items;
  
  	if (TcoSrfWidth == comp->TcoSrfWidth) insert(items, TCOSRFWIDTH);
  	if (TcoPrcWidth == comp->TcoPrcWidth) insert(items, TCOPRCWIDTH);
  	if (TcoConWidth == comp->TcoConWidth) insert(items, TCOCONWIDTH);
  	if (TcoFalWidth == comp->TcoFalWidth) insert(items, TCOFALWIDTH);
  	if (TcoHtyWidth == comp->TcoHtyWidth) insert(items, TCOHTYWIDTH);
  	if (TcoWidWidth == comp->TcoWidWidth) insert(items, TCOWIDWIDTH);
  	if (TcoMmxWidth == comp->TcoMmxWidth) insert(items, TCOMMXWIDTH);
  
  	return(items);
  };
  
  set<uint> PnlWdbeVarList::StgIac::diff(
  			const StgIac* comp
  		) {
  	set<uint> commitems;
  	set<uint> diffitems;
  
  	commitems = comm(comp);
  
  	diffitems = {TCOSRFWIDTH, TCOPRCWIDTH, TCOCONWIDTH, TCOFALWIDTH, TCOHTYWIDTH, TCOWIDWIDTH, TCOMMXWIDTH};
  	for (auto it = commitems.begin(); it != commitems.end(); it++) diffitems.erase(*it);
  
  	return(diffitems);
  };
  
  /******************************************************************************
   class PnlWdbeVarList::Tag
   ******************************************************************************/
  
  PnlWdbeVarList::Tag::Tag(
  			const string& Cpt
  			, const string& TxtFor
  			, const string& TxtRecord1
  			, const string& TxtRecord2
  			, const string& Trs
  			, const string& TxtShowing1
  			, const string& TxtShowing2
  			, const string& TcoSrf
  			, const string& TcoPrc
  			, const string& TcoCon
  			, const string& TcoFal
  			, const string& TcoHty
  			, const string& TcoWid
  			, const string& TcoMmx
  		) :
  			Block()
  		{
  	this->Cpt = Cpt;
  	this->TxtFor = TxtFor;
  	this->TxtRecord1 = TxtRecord1;
  	this->TxtRecord2 = TxtRecord2;
  	this->Trs = Trs;
  	this->TxtShowing1 = TxtShowing1;
  	this->TxtShowing2 = TxtShowing2;
  	this->TcoSrf = TcoSrf;
  	this->TcoPrc = TcoPrc;
  	this->TcoCon = TcoCon;
  	this->TcoFal = TcoFal;
  	this->TcoHty = TcoHty;
  	this->TcoWid = TcoWid;
  	this->TcoMmx = TcoMmx;
  
  	mask = {CPT, TXTFOR, TXTRECORD1, TXTRECORD2, TRS, TXTSHOWING1, TXTSHOWING2, TCOSRF, TCOPRC, TCOCON, TCOFAL, TCOHTY, TCOWID, TCOMMX};
  };
  
  bool PnlWdbeVarList::Tag::readXML(
  			xmlXPathContext* docctx
  			, string basexpath
  			, bool addbasetag
  		) {
  	clear();
  
  	bool basefound;
  
  	if (addbasetag)
  		basefound = checkUclcXPaths(docctx, basexpath, basexpath, "TagWdbeVarList");
  	else
  		basefound = checkXPath(docctx, basexpath);
  
  	string itemtag = "TagitemWdbeVarList";
  
  	if (basefound) {
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "Cpt", Cpt)) add(CPT);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TxtFor", TxtFor)) add(TXTFOR);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TxtRecord1", TxtRecord1)) add(TXTRECORD1);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TxtRecord2", TxtRecord2)) add(TXTRECORD2);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "Trs", Trs)) add(TRS);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TxtShowing1", TxtShowing1)) add(TXTSHOWING1);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TxtShowing2", TxtShowing2)) add(TXTSHOWING2);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TcoSrf", TcoSrf)) add(TCOSRF);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TcoPrc", TcoPrc)) add(TCOPRC);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TcoCon", TcoCon)) add(TCOCON);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TcoFal", TcoFal)) add(TCOFAL);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TcoHty", TcoHty)) add(TCOHTY);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TcoWid", TcoWid)) add(TCOWID);
  		if (extractStringAttrUclc(docctx, basexpath, itemtag, "Ti", "sref", "TcoMmx", TcoMmx)) add(TCOMMX);
  	};
  
  	return basefound;
  };
  
  /******************************************************************************
   class PnlWdbeVarList::DpchAppData
   ******************************************************************************/
  
  PnlWdbeVarList::DpchAppData::DpchAppData(
  			const string& scrJref
  			, ContIac* contiac
  			, StgIac* stgiac
  			, QryWdbeVarList::StgIac* stgiacqry
  			, const set<uint>& mask
  		) :
  			DpchAppWdbe(VecWdbeVDpch::DPCHAPPWDBEVARLISTDATA, scrJref)
  		{
  	if (find(mask, ALL)) this->mask = {SCRJREF, CONTIAC, STGIAC, STGIACQRY};
  	else this->mask = mask;
  
  		if (find(this->mask, CONTIAC) && contiac) this->contiac = *contiac;
  		if (find(this->mask, STGIAC) && stgiac) this->stgiac = *stgiac;
  		if (find(this->mask, STGIACQRY) && stgiacqry) this->stgiacqry = *stgiacqry;
  };
  
  string PnlWdbeVarList::DpchAppData::getSrefsMask() {
  	vector<string> ss;
  	string srefs;
  
  	if (has(SCRJREF)) ss.push_back("scrJref");
  	if (has(CONTIAC)) ss.push_back("contiac");
  	if (has(STGIAC)) ss.push_back("stgiac");
  	if (has(STGIACQRY)) ss.push_back("stgiacqry");
  
  	StrMod::vectorToString(ss, srefs);
  
  	return(srefs);
  };
  
  void PnlWdbeVarList::DpchAppData::writeXML(
  			xmlTextWriter* wr
  		) {
  	xmlTextWriterStartElement(wr, BAD_CAST "DpchAppWdbeVarListData");
  	xmlTextWriterWriteAttribute(wr, BAD_CAST "xmlns", BAD_CAST "http://www.mpsitech.com/wdbe");
  		if (has(SCRJREF)) writeString(wr, "scrJref", scrJref);
  		if (has(CONTIAC)) contiac.writeXML(wr);
  		if (has(STGIAC)) stgiac.writeXML(wr);
  		if (has(STGIACQRY)) stgiacqry.writeXML(wr);
  	xmlTextWriterEndElement(wr);
  };
  
  /******************************************************************************
   class PnlWdbeVarList::DpchAppDo
   ******************************************************************************/
  
  PnlWdbeVarList::DpchAppDo::DpchAppDo(
  			const string& scrJref
  			, const uint ixVDo
  			, const set<uint>& mask
  		) :
  			DpchAppWdbe(VecWdbeVDpch::DPCHAPPWDBEVARLISTDO, scrJref)
  		{
  	if (find(mask, ALL)) this->mask = {SCRJREF, IXVDO};
  	else this->mask = mask;
  
  	this->ixVDo = ixVDo;
  };
  
  string PnlWdbeVarList::DpchAppDo::getSrefsMask() {
  	vector<string> ss;
  	string srefs;
  
  	if (has(SCRJREF)) ss.push_back("scrJref");
  	if (has(IXVDO)) ss.push_back("ixVDo");
  
  	StrMod::vectorToString(ss, srefs);
  
  	return(srefs);
  };
  
  void PnlWdbeVarList::DpchAppDo::writeXML(
  			xmlTextWriter* wr
  		) {
  	xmlTextWriterStartElement(wr, BAD_CAST "DpchAppWdbeVarListDo");
  	xmlTextWriterWriteAttribute(wr, BAD_CAST "xmlns", BAD_CAST "http://www.mpsitech.com/wdbe");
  		if (has(SCRJREF)) writeString(wr, "scrJref", scrJref);
  		if (has(IXVDO)) writeString(wr, "srefIxVDo", VecVDo::getSref(ixVDo));
  	xmlTextWriterEndElement(wr);
  };
  
  /******************************************************************************
   class PnlWdbeVarList::DpchEngData
   ******************************************************************************/
  
  PnlWdbeVarList::DpchEngData::DpchEngData() :
  			DpchEngWdbe(VecWdbeVDpch::DPCHENGWDBEVARLISTDATA)
  		{
  	feedFCsiQst.tag = "FeedFCsiQst";
  	feedFTos.tag = "FeedFTos";
  };
  
  string PnlWdbeVarList::DpchEngData::getSrefsMask() {
  	vector<string> ss;
  	string srefs;
  
  	if (has(SCRJREF)) ss.push_back("scrJref");
  	if (has(CONTIAC)) ss.push_back("contiac");
  	if (has(CONTINF)) ss.push_back("continf");
  	if (has(FEEDFCSIQST)) ss.push_back("feedFCsiQst");
  	if (has(FEEDFTOS)) ss.push_back("feedFTos");
  	if (has(STATSHR)) ss.push_back("statshr");
  	if (has(STGIAC)) ss.push_back("stgiac");
  	if (has(TAG)) ss.push_back("tag");
  	if (has(RST)) ss.push_back("rst");
  	if (has(STATAPPQRY)) ss.push_back("statappqry");
  	if (has(STATSHRQRY)) ss.push_back("statshrqry");
  	if (has(STGIACQRY)) ss.push_back("stgiacqry");
  
  	StrMod::vectorToString(ss, srefs);
  
  	return(srefs);
  };
  
  void PnlWdbeVarList::DpchEngData::readXML(
  			xmlXPathContext* docctx
  			, string basexpath
  			, bool addbasetag
  		) {
  	clear();
  
  	bool basefound;
  
  	if (addbasetag)
  		basefound = checkUclcXPaths(docctx, basexpath, basexpath, "DpchEngWdbeVarListData");
  	else
  		basefound = checkXPath(docctx, basexpath);
  
  	if (basefound) {
  		if (extractStringUclc(docctx, basexpath, "scrJref", "", scrJref)) add(SCRJREF);
  		if (contiac.readXML(docctx, basexpath, true)) add(CONTIAC);
  		if (continf.readXML(docctx, basexpath, true)) add(CONTINF);
  		if (feedFCsiQst.readXML(docctx, basexpath, true)) add(FEEDFCSIQST);
  		if (feedFTos.readXML(docctx, basexpath, true)) add(FEEDFTOS);
  		if (statshr.readXML(docctx, basexpath, true)) add(STATSHR);
  		if (stgiac.readXML(docctx, basexpath, true)) add(STGIAC);
  		if (tag.readXML(docctx, basexpath, true)) add(TAG);
  		if (rst.readXML(docctx, basexpath, true)) add(RST);
  		if (statappqry.readXML(docctx, basexpath, true)) add(STATAPPQRY);
  		if (statshrqry.readXML(docctx, basexpath, true)) add(STATSHRQRY);
  		if (stgiacqry.readXML(docctx, basexpath, true)) add(STGIACQRY);
  	} else {
  		contiac = ContIac();
  		continf = ContInf();
  		feedFCsiQst.clear();
  		feedFTos.clear();
  		statshr = StatShr();
  		stgiac = StgIac();
  		tag = Tag();
  		rst.clear();
  		statappqry = QryWdbeVarList::StatApp();
  		statshrqry = QryWdbeVarList::StatShr();
  		stgiacqry = QryWdbeVarList::StgIac();
  	};
  };
  