• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ VXml类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中VXml的典型用法代码示例。如果您正苦于以下问题:C++ VXml类的具体用法?C++ VXml怎么用?C++ VXml使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了VXml类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: load

void SnoopDump::load(VXml xml)
{
  SnoopProcess::load(xml);

  filePath = xml.getStr("filePath", filePath);
  linkType = xml.getInt("linkType", linkType);
}
开发者ID:gilgil1973,项目名称:snoop90,代码行数:7,代码来源:snoopdump.cpp


示例2: save

void SnoopDump::save(VXml xml)
{
  SnoopProcess::save(xml);

  xml.setStr("filePath", filePath);
  xml.setInt("linkType", linkType);
}
开发者ID:gilgil1973,项目名称:snoop90,代码行数:7,代码来源:snoopdump.cpp


示例3: save

void SnoopDelay::save(VXml xml)
{
  SnoopProcess::save(xml);

  QString writerName = writer == NULL ? "" : writer->name;
  xml.setStr("writer", writerName);
  xml.setULong("timeout", timeout);
}
开发者ID:gilgil1973,项目名称:snoop90,代码行数:8,代码来源:snoopdelay.cpp


示例4: load

void VLogFile::load(VXml xml)
{
  VLog::load(xml);

  QString _folder = xml.getStr("folder", folder()); setFolder(_folder);
  fileName        = xml.getStr("fileName", fileName);
  closeOnWrite    = xml.getBool("closeOnWrite", closeOnWrite);
}
开发者ID:gilgil1973,项目名称:vdream90,代码行数:8,代码来源:vlogfile.cpp


示例5: load

void SnoopDelay::load(VXml xml)
{
  SnoopProcess::load(xml);

  QString writerName = xml.getStr("writer", "");
  if (writerName != "") writer = (SnoopCapture*)(((VGraph*)owner)->objectList.findByName(writerName));
  timeout = xml.getULong("timeout", timeout);
}
开发者ID:gilgil1973,项目名称:snoop90,代码行数:8,代码来源:snoopdelay.cpp


示例6: save

void VLogFile::save(VXml xml)
{
  VLog::save(xml);

  xml.setStr("folder",        folder());
  xml.setStr("fileName",      fileName);
  xml.setBool("closeOnWrite", closeOnWrite);
}
开发者ID:gilgil1973,项目名称:vdream90,代码行数:8,代码来源:vlogfile.cpp


示例7: load

void VSslServer::load(VXml xml)
{
  VTcpServer::load(xml);

  methodType            = xml.getInt("methodType", (int)methodType);
  certificatePath       = xml.getStr("certificatePath", certificatePath);
  defaultKeyCrtFileName = xml.getStr("defaultKeyCrtFileName", defaultKeyCrtFileName);
  processConnectMessage  = xml.getBool("processConnectMessage", processConnectMessage);
}
开发者ID:AmesianX,项目名称:vdream,代码行数:9,代码来源:vsslserver.cpp


示例8: save

void VSslServer::save(VXml xml)
{
  VTcpServer::save(xml);

  xml.setInt("methodType", (int)methodType);
  xml.setStr("certificatePath", certificatePath);
  xml.setStr("defaultKeyCrtFileName", defaultKeyCrtFileName);
  xml.setBool("processConnectMessage", processConnectMessage);
}
开发者ID:AmesianX,项目名称:vdream,代码行数:9,代码来源:vsslserver.cpp


示例9: root

VXml VXmlDoc::root()
{
  //QDomElement element = this->documentElement(); // gilgil temp 2012.05.31
  //VXml res = *((VXml*)&element);
  VXml res = QDomDocument::documentElement();
#ifdef _DEBUG
  if (res.isNull())
  {
    LOG_WARN("root is NULL");
  }
#endif // _DEBUG
  return res;
}
开发者ID:idkwim,项目名称:vdream90,代码行数:13,代码来源:vxmldoc.cpp


示例10: load

void VLogHttp::load(VXml xml)
{
  VLog::load(xml);

  port = xml.getInt("port", port);
  close();
  open();
}
开发者ID:AmesianX,项目名称:vdream,代码行数:8,代码来源:vloghttp.cpp


示例11: save

void MainWindow::save(VXml xml)
{
  {
    VXml coordXml = xml.gotoChild("coord");
    QRect rect = geometry();
    coordXml.setInt("left",   rect.left());
    coordXml.setInt("top",    rect.top());
    coordXml.setInt("width",  rect.width());
    coordXml.setInt("height", rect.height());
  }

  xml.setBool("showLog", ui->actionShowLog->isChecked());
  xml.setBool("alwaysOnTop", ui->actionAlwaysOnTop->isChecked());
  xml.setBool("wordWrap", ui->actionWordWrap->isChecked());
}
开发者ID:gilgil1973,项目名称:vdream90,代码行数:15,代码来源:mainwindow.cpp


示例12: createObjectByDefaultDoc

QObject* VFactory::createObjectByDefaultDoc(const QString& path)
{
  VXmlDoc& doc = VXmlDoc::instance();
  VXml xml = doc.root().findChilds(path);
  if (xml.isNull()) return NULL;

  QString className = xml.getStr("_class", "");
  if (className == "")
  {
    return NULL;
  }
  VObject* obj = dynamic_cast<VObject*>(VFactory::instance().createObjectByClassName(className));
  if (obj == NULL)
  {
    return NULL;
  }
  obj->load(xml);
  return obj;
}
开发者ID:AmesianX,项目名称:vdream,代码行数:19,代码来源:vfactory.cpp


示例13: load

void SnoopWinDivert::load(VXml xml)
{
  SnoopCapture::load(xml);

  filter              = xml.getStr("filter", filter);
  priority            = (UINT16)xml.getInt("priority", (int)priority);
  layer               = (DIVERT_LAYER)xml.getInt("layer", (int)layer);
  flags               = (UINT64)xml.getInt("flags", (int)flags);
  queueLen            = (UINT64)xml.getInt("queueLen", (int)queueLen);
  queueTime           = (UINT64)xml.getInt("queueTime", (int)queueTime);
  autoCorrectChecksum = xml.getBool("autoCorrectChecksum", autoCorrectChecksum);
}
开发者ID:idkwim,项目名称:snoop90,代码行数:12,代码来源:snoopwindivert.cpp


示例14: save

void SnoopWinDivert::save(VXml xml)
{
  SnoopCapture::save(xml);

  xml.setStr("filter", filter);
  xml.setInt("priority", (int)priority);
  xml.setInt("layer", (int)layer);
  xml.setInt("flags", (int)flags);
  xml.setInt("queueLen", (int)queueLen);
  xml.setInt("queueTime", (int)queueTime);
  xml.setBool("autoCorrectChecksum", autoCorrectChecksum);
}
开发者ID:idkwim,项目名称:snoop90,代码行数:12,代码来源:snoopwindivert.cpp


示例15: load

void MainWindow::load(VXml xml)
{
  {
    VXml coordXml = xml.findChild("coord");
    if (!coordXml.isNull())
    {
      QRect rect = geometry();
      rect.setLeft  ((coordXml.getInt("left",   0)));
      rect.setTop   ((coordXml.getInt("top",    0)));
      rect.setWidth ((coordXml.getInt("width",  640)));
      rect.setHeight((coordXml.getInt("height", 480)));
      setGeometry(rect);
    }
  }

  ui->actionShowLog->setChecked(xml.getBool("showLog", ui->actionShowLog->isChecked()));
  ui->actionAlwaysOnTop->setChecked(xml.getBool("alwaysOnTop", ui->actionAlwaysOnTop->isChecked()));
  ui->actionWordWrap->setChecked(xml.getBool("wordWrap", ui->actionWordWrap->isChecked()));
}
开发者ID:gilgil1973,项目名称:vdream90,代码行数:19,代码来源:mainwindow.cpp


示例16: save

void SnoopInterface::save(VXml xml)
{
	xml.setInt("index", index);
	xml.setStr("name", name);
	xml.setStr("description", description);
}
开发者ID:snoopspy,项目名称:_backup_snoop91_20141126,代码行数:6,代码来源:snoopinterface.cpp


示例17: load

void SnoopInterface::load(VXml xml)
{
	index = xml.getInt("index", index);
	name = xml.getStr("name", name);
	description = xml.getStr("description", description);
}
开发者ID:snoopspy,项目名称:_backup_snoop91_20141126,代码行数:6,代码来源:snoopinterface.cpp


示例18: save

void VLogStdout::save(VXml xml)
{
  VLog::save(xml);

  xml.setBool("autoFlush", autoFlush);
}
开发者ID:gilgil1973,项目名称:vdream90,代码行数:6,代码来源:vlogstdout.cpp


示例19: load

void VLogStdout::load(VXml xml)
{
  VLog::load(xml);

  autoFlush = xml.getBool("autoFlush", autoFlush);
}
开发者ID:gilgil1973,项目名称:vdream90,代码行数:6,代码来源:vlogstdout.cpp


示例20: load

void SnoopAdapter::load(VXml xml)
{
  SnoopPcap::load(xml);

  adapterIndex = xml.getInt("adapterIndex", adapterIndex);
}
开发者ID:gilgil1973,项目名称:snoop90,代码行数:6,代码来源:snoopadapter.cpp



注:本文中的VXml类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ V_Vector3类代码示例发布时间:2022-05-31
下一篇:
C++ VValueBag类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap