本文整理汇总了C++中DbXmlConfiguration::getFlags方法的典型用法代码示例。如果您正苦于以下问题:C++ DbXmlConfiguration::getFlags方法的具体用法?C++ DbXmlConfiguration::getFlags怎么用?C++ DbXmlConfiguration::getFlags使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DbXmlConfiguration
的用法示例。
在下文中一共展示了DbXmlConfiguration::getFlags方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: fetchDocument
void DocID::fetchDocument(const ContainerBase *container, DbXmlConfiguration &conf,
XmlDocument &doc, ReferenceMinder *minder) const
{
fetchDocument(container, conf.getOperationContext(),
conf.getFlags(), doc, minder);
if(container->getContainerID() == 0 && doc.isNull()) {
// Just make a new XmlDocument
XmlManager &mgr = conf.getManager();
doc = mgr.createDocument();
// get the temp DB for construction (container id 0)
CacheDatabase *cdb = conf.getDbMinder().findOrAllocate((Manager&)mgr, 0);
// Tell the document to use this database, and that it's
// content is "NsDom"
// TBD GMF: at some point, Document and NsDocument objects will not
// be required by DbXmlNodeImpl, so creation/init of Document
// objects is not required.
Document &tdoc = (Document&)doc;
tdoc.setDbMinder(conf.getDbMinder());
tdoc.setContentAsNsDom(*this, cdb);
if(minder != 0) minder->addDocument(doc);
}
// tell the document to use the shared databases in
// the DbXmlConfiguration's CacheDatabaseMinder
// If necessary, initialize the configuration's minder
// TBD GMF -- figure out how to avoid using Container * here
Container *cont = const_cast<ContainerBase*>(container)->getContainer();
if (cont != 0 && !cont->isNodeContainer()) {
Manager &mgr = (Manager&)cont->getManager();
CacheDatabaseMinder &dbminder = conf.getDbMinder();
dbminder.init(mgr);
((Document&)doc).setDbMinder(dbminder);
}
}