NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
NXOpen::Validate::XmlComparator类 参考

提供通用比较器,用于查找两个XML格式文件之间的差异。 比较器接受NXOpen::Validate::XmlComparator::Options 进一步控制比较过程。 它返回NXOpen::Validate::XmlComparator::Result,并在HTML文件中生成详细差异的报告,可通过Web浏览器查看。
要获取此类的实例,请参考NXOpen::Session

于NX6.0.2中创建。
更多...

#include <Validate_XmlComparator.hxx>

struct  Options

Public 类型

enum  Result { ResultIdentical , ResultDifferent }

Public 成员函数

NXOpen::Validate::XmlComparator::Result CompareXmlFiles (const char *workXmlFile, const char *masterXmlFile, const NXOpen::Validate::XmlComparator::Options &compareOptions)
NXOpen::Validate::XmlComparator::Result CompareXmlFiles (const NXString &workXmlFile, const NXString &masterXmlFile, const NXOpen::Validate::XmlComparator::Options &compareOptions)
tag_t Tag () const

详细描述

提供通用比较器,用于查找两个XML格式文件之间的差异。 比较器接受NXOpen::Validate::XmlComparator::Options 进一步控制比较过程。 它返回NXOpen::Validate::XmlComparator::Result,并在HTML文件中生成详细差异的报告,可通过Web浏览器查看。
要获取此类的实例,请参考NXOpen::Session

于NX6.0.2中创建。

XML比较器

成员枚举类型说明

◆ Result

指定比较结果

枚举值
ResultIdentical 

表示两个XML文件相同

ResultDifferent 

表示两个XML文件不同

成员函数说明

◆ CompareXmlFiles() [1/2]

NXOpen::Validate::XmlComparator::Result NXOpen::Validate::XmlComparator::CompareXmlFiles ( const char * workXmlFile,
const char * masterXmlFile,
const NXOpen::Validate::XmlComparator::Options & compareOptions )

比较两个XML格式文件。 您可以使用NXOpen::Validate::XmlComparator::Options 自定义比较过程。

返回
比较结果
于NX6.0.2中创建。

许可证要求:无
参数
workXmlFile要比较的第一个XML文件
masterXmlFile要比较的第二个XML文件
compareOptions比较选项

◆ CompareXmlFiles() [2/2]

NXOpen::Validate::XmlComparator::Result NXOpen::Validate::XmlComparator::CompareXmlFiles ( const NXString & workXmlFile,
const NXString & masterXmlFile,
const NXOpen::Validate::XmlComparator::Options & compareOptions )

比较两个XML格式文件。 您可以使用NXOpen::Validate::XmlComparator::Options 自定义比较过程。

返回
比较结果
于NX6.0.2中创建。

许可证要求:无
参数
workXmlFile要比较的第一个XML文件
masterXmlFile要比较的第二个XML文件
compareOptions比较选项

◆ Tag()

tag_t NXOpen::Validate::XmlComparator::Tag ( ) const

返回此对象的标签。