NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Annotations_DraftingImageCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口访问 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Annotations_DraftingImageCollection.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_DraftingImage.hxx>
23#include <NXOpen/Annotations_DraftingImageBuilder.hxx>
24#include <NXOpen/Annotations_RasterImage.hxx>
25#include <NXOpen/Annotations_RasterImageBuilder.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 Annotations
44 {
46 }
47 namespace Annotations
48 {
49 class DraftingImage;
50 }
51 namespace Annotations
52 {
54 }
55 namespace Annotations
56 {
57 class RasterImage;
58 }
59 namespace Annotations
60 {
62 }
63 namespace Annotations
64 {
65 class DraftingImageCollectionImpl;
69 class NXOPENCPP_ANNOTATIONSEXPORT DraftingImageCollection : public NXOpen::TaggedObjectCollection
70 {
71 private: DraftingImageCollectionImpl * m_draftingimagecollection_impl;
76 public:
78 tag_t Tag() const;
81 //lint -sem(NXOpen::Annotations::DraftingImageCollection::iterator::copy,initializer)
82 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Annotations::DraftingImage *>
83 {
84 public:
86 iterator() : m_context(nullptr), m_current(NULL_TAG)
87 {
88 // coverity[uninit_member]
89 } //lint !e1401 m_state is not initialized
90
91 explicit iterator(NXOpen::Annotations::DraftingImageCollection *context) : m_context(context), m_current(NULL_TAG)
92 {
93 // coverity[uninit_member]
94 }//lint !e1401 m_state is not initialized
96
97 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
98 {
99 copy(other);
100 }
101
102 iterator &operator =(const iterator &other)
103 {
104 if (&other != this)
105 copy(other);
106 return *this;
107 }
108
109 bool operator ==(const iterator &other) const
110 {
111 return m_current == other.m_current && m_context == other.m_context;
112 }
113
114 bool operator !=(const iterator &other) const
115 {
116 return !operator == (other);
117 }
118
119 NXOPENCPP_ANNOTATIONSEXPORT value_type operator * () const;
121 iterator & operator ++()
122 {
123 next();
124 return *this;
125 }
126
127 iterator operator ++(int)
128 {
129 iterator tmp(*this);
130 ++*this;
131 return tmp;
132 }
133 private:
134 void copy(const iterator &other)
135 {
136 m_context = other.m_context;
137 m_current = other.m_current;
138 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
139 m_state[i] = other.m_state[i];
140 }
141 NXOPENCPP_ANNOTATIONSEXPORT void next();
143 tag_t m_current;
144 unsigned int m_state[8];
145 };
146
150 {
151 return iterator(this);
152 }
153
157 (
158 const NXString & journalIdentifier
159 );
164 (
165 const char * journalIdentifier
166 );
172 (
175 );
181 (
184 );
185 }; //lint !e1712 default constructor not defined for class
186 }
187}
188#ifdef _MSC_VER
189#pragma warning(pop)
190#endif
191#ifdef __GNUC__
192#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
193#pragma GCC diagnostic warning "-Wdeprecated-declarations"
194#endif
195#endif
196#undef EXPORTLIBRARY