本文整理汇总了C++中writeStringAttr函数的典型用法代码示例。如果您正苦于以下问题:C++ writeStringAttr函数的具体用法?C++ writeStringAttr怎么用?C++ writeStringAttr使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了writeStringAttr函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xmlTextWriterStartElement
void CrdPlnrArr::StatApp::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
, const uint ixPlnrVReqitmode
, const usmallint latency
, const string& shortMenu
, const uint widthMenu
, const bool initdoneHeadbar
, const bool initdoneList
, const bool initdoneRec
) {
if (difftag.length() == 0) difftag = "StatAppPlnrArr";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StatitemAppPlnrArr";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeStringAttr(wr, itemtag, "sref", "srefIxPlnrVReqitmode", VecPlnrVReqitmode::getSref(ixPlnrVReqitmode));
writeUsmallintAttr(wr, itemtag, "sref", "latency", latency);
writeStringAttr(wr, itemtag, "sref", "shortMenu", shortMenu);
writeUintAttr(wr, itemtag, "sref", "widthMenu", widthMenu);
writeBoolAttr(wr, itemtag, "sref", "initdoneHeadbar", initdoneHeadbar);
writeBoolAttr(wr, itemtag, "sref", "initdoneList", initdoneList);
writeBoolAttr(wr, itemtag, "sref", "initdoneRec", initdoneRec);
xmlTextWriterEndElement(wr);
};
示例2: xmlTextWriterStartElement
void PnlFmncFabList::Tag::writeXML(
const uint ixFmncVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagFmncFabList";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemFmncFabList";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixFmncVLocale == VecFmncVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Fabs");
writeStringAttr(wr, itemtag, "sref", "TcoOrg", "Organization");
} else if (ixFmncVLocale == VecFmncVLocale::DECH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Reinr\\u00e4ume");
writeStringAttr(wr, itemtag, "sref", "TcoOrg", "Organisation");
} else if (ixFmncVLocale == VecFmncVLocale::FRCH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Salles blanches");
writeStringAttr(wr, itemtag, "sref", "TcoOrg", "Organisme");
};
writeStringAttr(wr, itemtag, "sref", "Trs", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::GOTO, ixFmncVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "TxtShowing1", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::SHOWLONG, ixFmncVLocale)));
writeStringAttr(wr, itemtag, "sref", "TxtShowing2", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::EMPLONG, ixFmncVLocale)));
xmlTextWriterEndElement(wr);
};
示例3: xmlTextWriterStartElement
void PnlFmncOrgSup1NOrg::Tag::writeXML(
const uint ixFmncVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagFmncOrgSup1NOrg";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemFmncOrgSup1NOrg";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixFmncVLocale == VecFmncVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Sub-organizations");
writeStringAttr(wr, itemtag, "sref", "TcoRef", "Organization");
} else if (ixFmncVLocale == VecFmncVLocale::DECH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Unterorganisationen");
writeStringAttr(wr, itemtag, "sref", "TcoRef", "Organisation");
} else if (ixFmncVLocale == VecFmncVLocale::FRCH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Organismes inferieurs");
writeStringAttr(wr, itemtag, "sref", "TcoRef", "Organisme");
};
writeStringAttr(wr, itemtag, "sref", "Trs", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::GOTO, ixFmncVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "TxtShowing1", VecFmncVTag::getTitle(VecFmncVTag::SHOWSHORT, ixFmncVLocale));
writeStringAttr(wr, itemtag, "sref", "TxtShowing2", VecFmncVTag::getTitle(VecFmncVTag::EMPSHORT, ixFmncVLocale));
xmlTextWriterEndElement(wr);
};
示例4: xmlTextWriterStartElement
void CrdFmncOrg::Tag::writeXML(
const uint ixFmncVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagFmncOrg";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemFmncOrg";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixFmncVLocale == VecFmncVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "MitCrdImo", "Import organizational structure ...");
writeStringAttr(wr, itemtag, "sref", "MitCrdExo", "Export organizational structure ...");
} else if (ixFmncVLocale == VecFmncVLocale::DECH) {
writeStringAttr(wr, itemtag, "sref", "MitCrdImo", "Organisationsstruktur importieren ...");
writeStringAttr(wr, itemtag, "sref", "MitCrdExo", "Organisationsstruktur exportieren ...");
} else if (ixFmncVLocale == VecFmncVLocale::FRCH) {
writeStringAttr(wr, itemtag, "sref", "MitCrdImo", "Importer structure organisationelle ...");
writeStringAttr(wr, itemtag, "sref", "MitCrdExo", "Exporter structure organisationelle ...");
};
writeStringAttr(wr, itemtag, "sref", "MitAppAbt", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::ABOUT, ixFmncVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "MrlAppHlp", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::HELP, ixFmncVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "MitCrdNew", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::NEW, ixFmncVLocale)) + " ...");
xmlTextWriterEndElement(wr);
};
示例5: xmlTextWriterStartElement
void PnlFmncOrgPco1NPurchorder::Tag::writeXML(
const uint ixFmncVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagFmncOrgPco1NPurchorder";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemFmncOrgPco1NPurchorder";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixFmncVLocale == VecFmncVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Purchase orders");
writeStringAttr(wr, itemtag, "sref", "TcoRef", "Purchase order");
} else if (ixFmncVLocale == VecFmncVLocale::DECH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Bestellungen");
writeStringAttr(wr, itemtag, "sref", "TcoRef", "Bestellung");
} else if (ixFmncVLocale == VecFmncVLocale::FRCH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Commandes");
writeStringAttr(wr, itemtag, "sref", "TcoRef", "Commande");
};
writeStringAttr(wr, itemtag, "sref", "Trs", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::GOTO, ixFmncVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "TxtShowing1", VecFmncVTag::getTitle(VecFmncVTag::SHOWSHORT, ixFmncVLocale));
writeStringAttr(wr, itemtag, "sref", "TxtShowing2", VecFmncVTag::getTitle(VecFmncVTag::EMPSHORT, ixFmncVLocale));
xmlTextWriterEndElement(wr);
};
示例6: xmlTextWriterStartElement
void PnlFmncSepMNSample::Tag::writeXML(
const uint ixFmncVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagFmncSepMNSample";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemFmncSepMNSample";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixFmncVLocale == VecFmncVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Samples");
writeStringAttr(wr, itemtag, "sref", "TcoMref", "Sample");
} else if (ixFmncVLocale == VecFmncVLocale::DECH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Samples");
writeStringAttr(wr, itemtag, "sref", "TcoMref", "Sample");
} else if (ixFmncVLocale == VecFmncVLocale::FRCH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "\\u00e9chantillons");
writeStringAttr(wr, itemtag, "sref", "TcoMref", "\\u00e9chantillon");
};
writeStringAttr(wr, itemtag, "sref", "Trs", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::GOTO, ixFmncVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "TxtShowing1", VecFmncVTag::getTitle(VecFmncVTag::SHOWSHORT, ixFmncVLocale));
writeStringAttr(wr, itemtag, "sref", "TxtShowing2", VecFmncVTag::getTitle(VecFmncVTag::EMPSHORT, ixFmncVLocale));
xmlTextWriterEndElement(wr);
};
示例7: xmlTextWriterStartElement
void PnlFmncPrsMNRun::Tag::writeXML(
const uint ixFmncVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagFmncPrsMNRun";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemFmncPrsMNRun";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixFmncVLocale == VecFmncVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Runs involved in");
writeStringAttr(wr, itemtag, "sref", "TcoMref", "Run");
} else if (ixFmncVLocale == VecFmncVLocale::DECH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Mitwirkung an L\\u00e4ufen");
writeStringAttr(wr, itemtag, "sref", "TcoMref", "Lauf");
} else if (ixFmncVLocale == VecFmncVLocale::FRCH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Implication en d\\u00e9roulements");
writeStringAttr(wr, itemtag, "sref", "TcoMref", "D\\u00e9roulement");
};
writeStringAttr(wr, itemtag, "sref", "Trs", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::GOTO, ixFmncVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "TxtShowing1", VecFmncVTag::getTitle(VecFmncVTag::SHOWSHORT, ixFmncVLocale));
writeStringAttr(wr, itemtag, "sref", "TxtShowing2", VecFmncVTag::getTitle(VecFmncVTag::EMPSHORT, ixFmncVLocale));
xmlTextWriterEndElement(wr);
};
示例8: xmlTextWriterStartElement
void DlgFmncPrjNew::Tag::writeXML(
const uint ixFmncVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagDlgFmncPrjNew";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemDlgFmncPrjNew";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixFmncVLocale == VecFmncVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Create new project");
writeStringAttr(wr, itemtag, "sref", "DetCptTit", "Name");
} else if (ixFmncVLocale == VecFmncVLocale::DECH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Neues Projekt erstellen");
writeStringAttr(wr, itemtag, "sref", "DetCptTit", "Name");
} else if (ixFmncVLocale == VecFmncVLocale::FRCH) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Cr\\u00e9er nouveau projet");
writeStringAttr(wr, itemtag, "sref", "DetCptTit", "Nom");
};
writeStringAttr(wr, itemtag, "sref", "ButCnc", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::CANCEL, ixFmncVLocale)));
writeStringAttr(wr, itemtag, "sref", "ButCre", StrMod::cap(VecFmncVTag::getTitle(VecFmncVTag::CREATE, ixFmncVLocale)));
xmlTextWriterEndElement(wr);
};
示例9: xmlTextWriterStartElement
void PnlFmncSmpRec::StatShr::writeXML(
pthread_mutex_t* mScr
, map<ubigint,string>& scr
, map<string,ubigint>& descr
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "StatShrFmncSmpRec";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StatitemShrFmncSmpRec";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeStringAttr(wr, itemtag, "sref", "srefIxFmncVExpstate", VecFmncVExpstate::getSref(ixFmncVExpstate));
writeStringAttr(wr, itemtag, "sref", "scrJrefDetail", Scr::scramble(mScr, scr, descr, jrefDetail));
writeStringAttr(wr, itemtag, "sref", "scrJrefAPar", Scr::scramble(mScr, scr, descr, jrefAPar));
writeStringAttr(wr, itemtag, "sref", "scrJrefSup1NSample", Scr::scramble(mScr, scr, descr, jrefSup1NSample));
writeStringAttr(wr, itemtag, "sref", "scrJrefRef1NFile", Scr::scramble(mScr, scr, descr, jrefRef1NFile));
writeStringAttr(wr, itemtag, "sref", "scrJrefMNStep", Scr::scramble(mScr, scr, descr, jrefMNStep));
writeStringAttr(wr, itemtag, "sref", "scrJrefMNFile", Scr::scramble(mScr, scr, descr, jrefMNFile));
writeStringAttr(wr, itemtag, "sref", "scrJrefMNRun", Scr::scramble(mScr, scr, descr, jrefMNRun));
writeBoolAttr(wr, itemtag, "sref", "ButRegularizeActive", ButRegularizeActive);
xmlTextWriterEndElement(wr);
};
示例10: xmlTextWriterStartElement
void PnlPlnrDvcAPar::Tag::writeXML(
const uint ixPlnrVLocale
, xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "TagPlnrDvcAPar";
string itemtag;
if (shorttags) itemtag = "Ti";
else itemtag = "TagitemPlnrDvcAPar";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
if (ixPlnrVLocale == VecPlnrVLocale::ENUS) {
writeStringAttr(wr, itemtag, "sref", "Cpt", "Parameters");
writeStringAttr(wr, itemtag, "sref", "TcoDsn", "Design mod.");
writeStringAttr(wr, itemtag, "sref", "TcoKey", "Parameter key");
writeStringAttr(wr, itemtag, "sref", "TcoFil", "File");
writeStringAttr(wr, itemtag, "sref", "TcoVal", "Value");
};
writeStringAttr(wr, itemtag, "sref", "Trs", StrMod::cap(VecPlnrVTag::getTitle(VecPlnrVTag::GOTO, ixPlnrVLocale)) + " ...");
writeStringAttr(wr, itemtag, "sref", "TxtShowing1", VecPlnrVTag::getTitle(VecPlnrVTag::SHOWSHORT, ixPlnrVLocale));
writeStringAttr(wr, itemtag, "sref", "TxtShowing2", VecPlnrVTag::getTitle(VecPlnrVTag::EMPSHORT, ixPlnrVLocale));
xmlTextWriterEndElement(wr);
};
示例11: xmlTextWriterStartElement
void PnlFmncAdrDetail::ContIac::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
) {
if (difftag.length() == 0) difftag = "ContIacFmncAdrDetail";
string itemtag;
if (shorttags) itemtag = "Ci";
else itemtag = "ContitemIacFmncAdrDetail";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeStringAttr(wr, itemtag, "sref", "TxfAd1", TxfAd1);
writeStringAttr(wr, itemtag, "sref", "TxfCty", TxfCty);
writeStringAttr(wr, itemtag, "sref", "TxfSta", TxfSta);
writeUintAttr(wr, itemtag, "sref", "numFPupHkt", numFPupHkt);
writeUintAttr(wr, itemtag, "sref", "numFPupAty", numFPupAty);
writeStringAttr(wr, itemtag, "sref", "TxfAty", TxfAty);
writeStringAttr(wr, itemtag, "sref", "TxfAd2", TxfAd2);
writeStringAttr(wr, itemtag, "sref", "TxfZip", TxfZip);
writeStringAttr(wr, itemtag, "sref", "TxfSte", TxfSte);
writeUintAttr(wr, itemtag, "sref", "numFPupCry", numFPupCry);
writeStringAttr(wr, itemtag, "sref", "TxfCry", TxfCry);
xmlTextWriterEndElement(wr);
};
示例12: xmlTextWriterStartElement
void PnlPlnrNavGlobal::StatApp::writeXML(
xmlTextWriter* wr
, string difftag
, bool shorttags
, const uint ixPlnrVExpstate
, const bool LstDtpAlt
, const bool LstCtpAlt
, const bool LstMatAlt
, const uint LstDtpNumFirstdisp
, const uint LstCtpNumFirstdisp
, const uint LstMatNumFirstdisp
) {
if (difftag.length() == 0) difftag = "StatAppPlnrNavGlobal";
string itemtag;
if (shorttags) itemtag = "Si";
else itemtag = "StatitemAppPlnrNavGlobal";
xmlTextWriterStartElement(wr, BAD_CAST difftag.c_str());
writeStringAttr(wr, itemtag, "sref", "srefIxPlnrVExpstate", VecPlnrVExpstate::getSref(ixPlnrVExpstate));
writeBoolAttr(wr, itemtag, "sref", "LstDtpAlt", LstDtpAlt);
writeBoolAttr(wr, itemtag, "sref", "LstCtpAlt", LstCtpAlt);
writeBoolAttr(wr, itemtag, "sref", "LstMatAlt", LstMatAlt);
writeUintAttr(wr, itemtag, "sref", "LstDtpNumFirstdisp", LstDtpNumFirstdisp);
writeUintAttr(wr, itemtag, "sref", "LstCtpNumFirstdisp", LstCtpNumFirstdisp);
writeUintAttr(wr, itemtag, "sref", "LstMatNumFirstdisp", LstMatNumFirstdisp);
xmlTextWriterEndElement(wr);
};
示例13: addIntAttr
char HField::save(AField * fld)
{
if(fld->numChannels() < 1) {
std::cout<<"\n field has no channel";
return 0;
}
if(!hasNamedAttr(".fieldType"))
addIntAttr(".fieldType");
int t = fld->fieldType();
writeIntAttr(".fieldType", &t);
std::vector<std::string > names;
fld->getChannelNames(names);
int nc = names.size();
if(!hasNamedAttr(".fieldNumChannels"))
addIntAttr(".fieldNumChannels");
writeIntAttr(".fieldNumChannels", &nc);
std::string combined = SHelper::Combine(names);
if(!hasNamedAttr(".fieldChannelNames"))
addStringAttr(".fieldChannelNames", combined.size());
writeStringAttr(".fieldChannelNames", combined);
std::vector<std::string >::const_iterator it = names.begin();
for(; it!= names.end();++it) saveAChannel(*it, fld->namedChannel(*it));
return 1;
}
示例14: addStringAttr
char HNumericBundle::save(const ABundleAttribute * d)
{
if(!hasNamedAttr(".longname"))
addStringAttr(".longname", d->longName().size());
writeStringAttr(".longname", d->longName());
int sz = d->size();
if(!hasNamedAttr(".bundle_sz"))
addIntAttr(".bundle_sz");
writeIntAttr(".bundle_sz", &sz);
int nt = d->numericType();
if(!hasNamedAttr(".bundle_num_typ"))
addIntAttr(".bundle_num_typ");
writeIntAttr(".bundle_num_typ", &nt);
int l = d->dataLength();
if(!hasNamedData(".raw"))
addCharData(".raw", l);
writeCharData(".raw", l, (char *)d->value());
return 1;
}
示例15: addIntAttr
void HAttributeGroup::writeEnum(AEnumAttribute * data)
{
short a, b;
int v = data->value(a, b);
if(!hasNamedAttr(".val"))
addIntAttr(".val");
writeIntAttr(".val", &v);
int r[2];
r[0] = a;
r[1] = b;
if(!hasNamedAttr(".range"))
addIntAttr(".range", 2);
writeIntAttr(".range", r);
// std::cout<<" value "<<v;
// std::cout<<" range "<<a<<":"<<b;
short i;
std::stringstream sst;
for(i=a; i<=b; i++) {
std::string fn = data->fieldName(i);
sst.str("");
sst<<i;
if(!hasNamedAttr(sst.str().c_str()))
addStringAttr(sst.str().c_str(), fn.size());
writeStringAttr(sst.str().c_str(), fn);
// std::cout<<" field "<<i<<":"<<fn;
}
}