NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Validation.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Validation.ja
9//
10// 生成工具:
11// apiwrap
12//
13// 警告:
14// 此文件为自动生成 - 请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <vector>
19#include <NXOpen/NXString.hxx>
20#include <NXOpen/Callback.hxx>
21#include <NXOpen/NXObject.hxx>
22#include <NXOpen/libnxopencpp_exports.hxx>
23#ifdef _MSC_VER
24#pragma warning(push)
25#pragma warning(disable:4996)
26#endif
27#ifdef __GNUC__
28#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
29#endif
30namespace NXOpen
31{
32 class Validation;
33 class NXObject;
34 class _ValidationBuilder;
35 class ValidationImpl;
41 class NXOPENCPPEXPORT Validation : public NXOpen::NXObject
42 {
53
66
72
82 private: ValidationImpl * m_validation_impl;
83 private: friend class _ValidationBuilder;
84 protected: Validation();
85 public: ~Validation();
89 public: void SetUpdateControl
90 (
92 );
96 public: void Add
97 (
98 const NXString & key ,
99 const std::vector<NXOpen::NXObject *> & objs
100 );
104 void Add
105 (
106 const char * key ,
107 const std::vector<NXOpen::NXObject *> & objs
108 );
112 public: void Replace
113 (
114 const NXString & key ,
115 const std::vector<NXOpen::NXObject *> & objs
116 );
121 (
122 const char * key ,
123 const std::vector<NXOpen::NXObject *> & objs
124 );
128 public: void Add
129 (
130 const NXString & key ,
131 const NXString & text
132 );
136 void Add
137 (
138 const char * key ,
139 const char * text
140 );
144 public: void Add
145 (
146 const NXString & key ,
147 double number
148 );
152 void Add
153 (
154 const char * key ,
155 double number
156 );
160 public: void Add
161 (
162 const NXString & key ,
163 int number
164 );
168 void Add
169 (
170 const char * key ,
171 int number
172 );
176 public: void Add
177 (
178 const NXString & key ,
179 int day ,
180 int time
181 );
185 void Add
186 (
187 const char * key ,
188 int day ,
189 int time
190 );
195 (
196 );
208 (
209 );
219 public: void SetCheckResult
220 (
222 );
226 public: std::vector<NXString> GetKeys
227 (
228 );
233 (
234 const NXString & key
235 );
240 (
241 const char * key
242 );
246 public: void SetUserClassName
247 (
248 const NXString & name
249 );
254 (
255 const char * name
256 );
260 public: std::vector<NXOpen::NXObject *> Lookup
261 (
262 const NXString & key
263 );
267 std::vector<NXOpen::NXObject *> Lookup
268 (
269 const char * key
270 );
274 public: void LookupNumber
275 (
276 const NXString & key ,
277 double* number ,
278 bool* found
279 );
284 (
285 const char * key ,
286 double* number ,
287 bool* found
288 );
292 public: void LookupText
293 (
294 const NXString & key ,
295 NXString* text ,
296 bool* found
297 );
302 (
303 const char * key ,
304 NXString* text ,
305 bool* found
306 );
310 public: void LookupInteger
311 (
312 const NXString & key ,
313 int* number ,
314 bool* found
315 );
320 (
321 const char * key ,
322 int* number ,
323 bool* found
324 );
328 public: void LookupTime
329 (
330 const NXString & key ,
331 int* day ,
332 int* time ,
333 bool* found
334 );
339 (
340 const char * key ,
341 int* day ,
342 int* time ,
343 bool* found
344 );
348 public: void Remove
349 (
350 const NXString & key
351 );
356 (
357 const char * key
358 );
362 public: bool GetSuppressed
363 (
364 );
368 public: void SetSuppressed
369 (
370 bool suppress
371 );
376 (
377 );
381 public: void Delete
382 (
383 );
387 public: void Information
388 (
389 );
394 (
395 );
399 public: void SetRequirement
400 (
401 const NXString & requirement
402 );
407 (
408 const char * requirement
409 );
414 (
415 std::vector<NXOpen::NXObject *> & objects
416 );
421 (
422 const std::vector<NXOpen::NXObject *> & objects
423 );
424 };
425}
426#ifdef _MSC_VER
427#pragma warning(pop)
428#endif
429#ifdef __GNUC__
430#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
431#pragma GCC diagnostic warning "-Wdeprecated-declarations"
432#endif
433#endif
434#undef EXPORTLIBRARY