search/mag_sel search/close
WarningInfoCollection.h
1 // Copyright 2001-2021 Aspose Pty Ltd. All Rights Reserved.
3 //
4 // This file is part of Aspose.Words. The source code in this file
5 // is only intended as a supplement to the documentation, and is provided
6 // "as is", without warranty of any kind, either expressed or implied.
9 #pragma once
10 
11 #include <system/shared_ptr.h>
12 #include <system/collections/list.h>
13 #include <system/collections/ienumerable.h>
14 #include <cstdint>
15 
16 #include <Aspose.Words.Cpp/IWarningCallback.h>
17 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
18 
19 namespace System { namespace Collections { namespace Generic { template <typename> class IEnumerator; } } }
20 namespace Aspose { namespace Words { class WarningInfo; } }
21 
22 namespace Aspose {
23 
24 namespace Words {
25 
97 class ASPOSE_WORDS_SHARED_CLASS WarningInfoCollection : public Aspose::Words::IWarningCallback, public System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Words::WarningInfo>>
98 {
102 
103  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
104  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
105 
106 public:
107 
109 
111 
113 
114 public:
115 
117  ASPOSE_WORDS_SHARED_API int32_t get_Count();
118 
122  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::WarningInfo> idx_get(int32_t index);
123 
189 
254  ASPOSE_WORDS_SHARED_API void Clear();
255 
320  ASPOSE_WORDS_SHARED_API void Warning(System::SharedPtr<Aspose::Words::WarningInfo> info) override;
321 
322  ASPOSE_WORDS_SHARED_API WarningInfoCollection();
323 
324  ASPOSE_WORDS_SHARED_API iterator begin() noexcept;
325 
326  ASPOSE_WORDS_SHARED_API iterator end() noexcept;
327 
328  ASPOSE_WORDS_SHARED_API const_iterator begin() const noexcept;
329 
330  ASPOSE_WORDS_SHARED_API const_iterator end() const noexcept;
331 
332  ASPOSE_WORDS_SHARED_API const_iterator cbegin() const noexcept;
333 
334  ASPOSE_WORDS_SHARED_API const_iterator cend() const noexcept;
335 
336 protected:
337 
338  virtual ASPOSE_WORDS_SHARED_API ~WarningInfoCollection();
339 
340 private:
341 
342  System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Words::WarningInfo>>> mItems;
343 
344 };
345 
346 }
347 }