Aspose.Tasks for C++
PrimaveraSaveOptions.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="PrimaveraSaveOptions.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2025 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  /// <summary>
74  /// Gets a value indicating whether assignments of resources to summary tasks should be skipped during export.
75  /// </summary>
76  /// <remarks>Primavera software doesn't support assignments of resources to summary (WBS) tasks. Thus, export of such assignments can result in an invalid file according to Primavera's model.
77  /// If true, assignments to summary tasks are skipped during export.
78  /// If false (the default value), an exception will be thrown if assignment to a summary task is encountered during export.</remarks>
79  ASPOSE_TASKS_SHARED_API bool get_SkipSummaryAssignments() const;
80  /// <summary>
81  /// Sets a value indicating whether assignments of resources to summary tasks should be skipped during export.
82  /// </summary>
83  /// <remarks>Primavera software doesn't support assignments of resources to summary (WBS) tasks. Thus, export of such assignments can result in an invalid file according to Primavera's model.
84  /// If true, assignments to summary tasks are skipped during export.
85  /// If false (the default value), an exception will be thrown if assignment to a summary task is encountered during export.</remarks>
86  ASPOSE_TASKS_SHARED_API void set_SkipSummaryAssignments(bool value);
87 
88  /// <summary>
89  /// Initializes a new instance of the <see cref="PrimaveraSaveOptions"></see> class.
90  /// </summary>
91  ASPOSE_TASKS_SHARED_API PrimaveraSaveOptions();
92 
93 protected:
94 
95  ASPOSE_TASKS_SHARED_API System::SharedPtr<IWriter> GetWriter() override;
96 
97  virtual ASPOSE_TASKS_SHARED_API ~PrimaveraSaveOptions();
98 
99 private:
100 
101  int32_t pr_ActivityIdIncrement;
102  System::String pr_ActivityIdPrefix;
103  int32_t pr_ActivityIdSuffix;
104  bool pr_RenumberActivityIds;
105  bool pr_SkipSummaryAssignments;
106 
107 };
108 
109 } // namespace Saving
110 } // namespace Tasks
111 } // namespace Aspose
112 
113 
This is an abstract base class that allow the user to specify basic options when saving a project int...
Definition: SimpleSaveOptions.h:51
Definition: Asn.h:12
Allows to specify additional options when saving project to Primavera XER format.
Definition: PrimaveraSaveOptions.h:31