NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Annotations_TitleBlockCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Annotations_TitleBlockCollection.ja
9//
10// 生成方式:
11// apiwrap
12//
13// 警告:
14// 此文件为自动生成 - 请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <iterator>
19#include <vector>
20#include <NXOpen/NXString.hxx>
21#include <NXOpen/Callback.hxx>
22#include <NXOpen/Annotations_DefineTitleBlockBuilder.hxx>
23#include <NXOpen/Annotations_EditTitleBlockBuilder.hxx>
24#include <NXOpen/Annotations_TitleBlock.hxx>
25#include <NXOpen/Annotations_TitleBlockCellBuilder.hxx>
26#include <NXOpen/BasePart.hxx>
27#include <NXOpen/TaggedObjectCollection.hxx>
28#include <NXOpen/TaggedObject.hxx>
29#include <NXOpen/libnxopencpp_annotations_exports.hxx>
30#ifdef _MSC_VER
31#pragma warning(push)
32#pragma warning(disable:4996)
33#endif
34#ifdef __GNUC__
35#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
36#endif
37namespace NXOpen
38{
39 namespace Annotations
40 {
42 }
43 namespace Drafting
44 {
46 }
47 namespace Annotations
48 {
49 class TitleBlock;
50 }
51 namespace Annotations
52 {
54 }
55 namespace Annotations
56 {
58 }
59 namespace Annotations
60 {
62 }
64 namespace Annotations
65 {
66 class TitleBlockCollectionImpl;
70 class NXOPENCPP_ANNOTATIONSEXPORT TitleBlockCollection : public NXOpen::TaggedObjectCollection
71 {
72 private: TitleBlockCollectionImpl * m_titleblockcollection_impl;
77 public:
79 tag_t Tag() const;
80 public: ~TitleBlockCollection();
82 //lint -sem(NXOpen::Annotations::TitleBlockCollection::iterator::copy,initializer)
83 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Annotations::TitleBlock *>
84 {
85 public:
87 iterator() : m_context(nullptr), m_current(NULL_TAG)
88 {
89 // coverity[uninit_member]
90 } //lint !e1401 m_state is not initialized
91
92 explicit iterator(NXOpen::Annotations::TitleBlockCollection *context) : m_context(context), m_current(NULL_TAG)
93 {
94 // coverity[uninit_member]
95 }//lint !e1401 m_state is not initialized
97
98 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
99 {
100 copy(other);
101 }
102
103 iterator &operator =(const iterator &other)
104 {
105 if (&other != this)
106 copy(other);
107 return *this;
108 }
109
110 bool operator ==(const iterator &other) const
111 {
112 return m_current == other.m_current && m_context == other.m_context;
113 }
114
115 bool operator !=(const iterator &other) const
116 {
117 return !operator == (other);
118 }
119
120 NXOPENCPP_ANNOTATIONSEXPORT value_type operator * () const;
122 iterator & operator ++()
123 {
124 next();
125 return *this;
126 }
127
128 iterator operator ++(int)
129 {
130 iterator tmp(*this);
131 ++*this;
132 return tmp;
133 }
134 private:
135 void copy(const iterator &other)
136 {
137 m_context = other.m_context;
138 m_current = other.m_current;
139 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
140 m_state[i] = other.m_state[i];
141 }
142 NXOPENCPP_ANNOTATIONSEXPORT void next();
144 tag_t m_current;
145 unsigned int m_state[8];
146 };
147
151 {
152 return iterator(this);
153 }
154
161 (
162 const std::vector<NXOpen::Annotations::TitleBlock *> & titleBlocks
163 );
171 (
173 );
178 public: NX_DEPRECATED("Deprecated in NX12.0.1. Use overloaded NXOpen::Annotations::TitleBlockCollection::CreateCellBuilder instead.") NXOpen::Annotations::TitleBlockCellBuilder * CreateCellBuilder
179 (
180 NXOpen::DisplayableObject * object ,
181 bool isLocked ,
182 int contentType ,
183 const NXString & value ,
184 const NXString & label ,
185 bool canLockStatusChange
186 );
192 (
193 NXOpen::DisplayableObject * object ,
194 bool isLocked ,
195 int contentType ,
196 const char * value ,
197 const char * label ,
198 bool canLockStatusChange
199 );
204 (
205 NXOpen::DisplayableObject * tableCell ,
206 bool lockStatus ,
207 const NXString & label
208 );
213 (
214 NXOpen::DisplayableObject * tableCell ,
215 bool lockStatus ,
216 const char * label
217 );
218 }; //lint !e1712 类未定义默认构造函数
219 }
220}
221#ifdef _MSC_VER
222#pragma warning(pop)
223#endif
224#ifdef __GNUC__
225#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
226#pragma GCC diagnostic warning "-Wdeprecated-declarations"
227#endif
228#endif
229#undef EXPORTLIBRARY