#include <cpps/cpps.h>#include "xml.hpp"using namespace cpps;cpps_export_void cpps_attach(C* c){cpps_init_cpps_class(c);_module(c, "xml")[_class<xml_document>("document").def("parse",&xml_document::parse).def("clear",&xml_document::clear).def_inside("children", &xml_document::children).def_inside("children_by_name", &xml_document::children_by_name),_class<xml_node>("node").def("type",&xml_node::type).def("name",&xml_node::name).def("value",&xml_node::value).def_inside("children", &xml_node::children).def_inside("children_by_name", &xml_node::children_by_name).def_inside("attributes", &xml_node::attributes).def_inside("attributes_by_name", &xml_node::attributes_by_name),_class<xml_attribute>("attribute").def("name",&xml_attribute::name).def("value",&xml_attribute::value)];}cpps_export_void cpps_detach(C * c){}cpps_export_finish
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型