Aspose.Tasks for C++
PrimaveraSaveOptions.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="PrimaveraSaveOptions.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/string.h>
9 #include <cstdint>
10 
11 #include "aspose.tasks.cpp/Saving/SimpleSaveOptions.h"
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
13 
14 namespace Aspose
15 {
16 namespace Tasks
17 {
18 class IWriter;
19 } // namespace Tasks
20 } // namespace Aspose
21 
22 namespace Aspose {
23 
24 namespace Tasks {
25 
26 namespace Saving {
27 
28 /// <summary>
29 /// Allows to specify additional options when saving project to Primavera XER format.
30 /// </summary>
31 class ASPOSE_TASKS_SHARED_CLASS PrimaveraSaveOptions : public Aspose::Tasks::Saving::SimpleSaveOptions
32 {
35 
36  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
37  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
38 
39 public:
40 
41  /// <summary>
42  /// Gets the increment used in renumbering of activity IDs.
43  /// </summary>
44  ASPOSE_TASKS_SHARED_API int32_t get_ActivityIdIncrement() const;
45  /// <summary>
46  /// Sets the increment used in renumbering of activity IDs.
47  /// </summary>
48  ASPOSE_TASKS_SHARED_API void set_ActivityIdIncrement(int32_t value);
49  /// <summary>
50  /// Gets the prefix used in renumbering of activity IDs.
51  /// </summary>
52  ASPOSE_TASKS_SHARED_API System::String get_ActivityIdPrefix() const;
53  /// <summary>
54  /// Sets the prefix used in renumbering of activity IDs.
55  /// </summary>
56  ASPOSE_TASKS_SHARED_API void set_ActivityIdPrefix(const System::String& value);
57  /// <summary>
58  /// Gets the suffix used in renumbering of activity IDs.
59  /// </summary>
60  ASPOSE_TASKS_SHARED_API int32_t get_ActivityIdSuffix() const;
61  /// <summary>
62  /// Sets the suffix used in renumbering of activity IDs.
63  /// </summary>
64  ASPOSE_TASKS_SHARED_API void set_ActivityIdSuffix(int32_t value);
65  /// <summary>
66  /// Gets a value indicating whether is need to renumbers activity IDs.
67  /// </summary>
68  ASPOSE_TASKS_SHARED_API bool get_RenumberActivityIds() const;
69  /// <summary>
70  /// Sets a value indicating whether is need to renumbers activity IDs.
71  /// </summary>
72  ASPOSE_TASKS_SHARED_API void set_RenumberActivityIds(bool value);
73 
74  /// <summary>
75  /// Initializes a new instance of the <see cref="PrimaveraSaveOptions"></see> class.
76  /// </summary>
77  ASPOSE_TASKS_SHARED_API PrimaveraSaveOptions();
78 
79 protected:
80 
81  ASPOSE_TASKS_SHARED_API System::SharedPtr<IWriter> GetWriter() override;
82 
83  virtual ASPOSE_TASKS_SHARED_API ~PrimaveraSaveOptions();
84 
85 private:
86 
87  int32_t pr_ActivityIdIncrement;
88  System::String pr_ActivityIdPrefix;
89  int32_t pr_ActivityIdSuffix;
90  bool pr_RenumberActivityIds;
91 
92 };
93 
94 } // namespace Saving
95 } // namespace Tasks
96 } // namespace Aspose
97 
98 
Allows to specify additional options when saving project to Primavera XER format.
Definition: PrimaveraSaveOptions.h:32
int32_t get_ActivityIdSuffix() const
Gets the suffix used in renumbering of activity IDs.
bool get_RenumberActivityIds() const
Gets a value indicating whether is need to renumbers activity IDs.
PrimaveraSaveOptions()
Initializes a new instance of the PrimaveraSaveOptions class.
void set_RenumberActivityIds(bool value)
Sets a value indicating whether is need to renumbers activity IDs.
System::String get_ActivityIdPrefix() const
Gets the prefix used in renumbering of activity IDs.
void set_ActivityIdPrefix(const System::String &value)
Sets the prefix used in renumbering of activity IDs.
void set_ActivityIdIncrement(int32_t value)
Sets the increment used in renumbering of activity IDs.
int32_t get_ActivityIdIncrement() const
Gets the increment used in renumbering of activity IDs.
void set_ActivityIdSuffix(int32_t value)
Sets the suffix used in renumbering of activity IDs.
This is an abstract base class that allow the user to specify basic options when saving a project int...
Definition: SimpleSaveOptions.h:52
Definition: Asn.h:13