NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Features_CustomAttribute.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口到JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Features_CustomAttribute.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/TransientObject.hxx>
22
#include <NXOpen/libnxopencpp_features_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
30
namespace
NXOpen
31
{
32
namespace
Features
33
{
34
class
CustomAttribute
;
35
}
36
namespace
Features
37
{
38
}
39
namespace
Features
40
{
41
class
CustomAttributeImpl;
47
class
NXOPENCPP_FEATURESEXPORT
CustomAttribute
:
public
NXOpen::TransientObject
48
{
50
public
:
enum
Type
51
{
52
TypeUnknown
,
53
TypeExpression
,
54
TypeExpressionVla
,
55
TypeTag
,
56
TypeTagVla
,
57
TypeBool
,
58
TypeBoolVla
,
59
TypeInteger
,
60
TypeIntegerVla
,
61
TypeDouble
,
62
TypeDoubleVla
,
63
TypeString
,
64
TypeStringVla
65
};
66
67
public
:
enum
Property
68
{
69
PropertyIsOutputAttribute
= 1,
70
PropertyIsOwnedAttribute
,
71
PropertyIsReferencingTargetBody
= 4,
72
PropertyMandatoryInput
= 8
73
};
74
private
:
CustomAttributeImpl
* m_customattribute_impl;
76
public
:
explicit
CustomAttribute
(
void
*ptr);
78
81
public
:
virtual
~CustomAttribute
();
85
public
:
NXString
Name
86
(
87
);
91
public
:
void
SetName
92
(
93
const
NXString
& attributeName
94
);
98
void
SetName
99
(
100
const
char
* attributeName
101
);
105
public
:
void
AddProperty
106
(
107
NXOpen::Features::CustomAttribute::Property
attributeProperty
108
);
112
public
:
void
RemoveProperty
113
(
114
NXOpen::Features::CustomAttribute::Property
attributeProperty
115
);
119
public
:
bool
HasProperty
120
(
121
NXOpen::Features::CustomAttribute::Property
attributeProperty
122
);
126
public
: std::vector<NXOpen::Features::CustomAttribute::Property>
GetProperties
127
(
128
);
132
public
:
NXOpen::Features::CustomAttribute::Type
TypeValue
133
(
134
);
135
};
//lint !e1712 class未定义默认构造函数
136
}
137
}
138
#ifdef _MSC_VER
139
#pragma warning(pop)
140
#endif
141
#ifdef __GNUC__
142
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
143
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
144
#endif
145
#endif
146
#undef EXPORTLIBRARY