Aspose.Tasks for C++
PrimaveraXmlSaveOptions.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="PrimaveraXmlSaveOptions.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2025 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include "aspose.tasks.cpp/Saving/SimpleSaveOptions.h"
9 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
10 
11 namespace Aspose
12 {
13 namespace Tasks
14 {
15 class IWriter;
16 } // namespace Tasks
17 } // namespace Aspose
18 
19 namespace Aspose {
20 
21 namespace Tasks {
22 
23 namespace Saving {
24 
25 /// <summary>
26 /// Allows to specify additional options when saving project to Primavera xml format.
27 /// </summary>
28 class ASPOSE_TASKS_SHARED_CLASS PrimaveraXmlSaveOptions : public Aspose::Tasks::Saving::SimpleSaveOptions
29 {
32 
33  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
34  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
35 
36 public:
37 
38  /// <summary>
39  /// Gets a value indicating whether to save a root task or not.
40  /// </summary>
41  ASPOSE_TASKS_SHARED_API bool get_SaveRootTask() const;
42  /// <summary>
43  /// Sets a value indicating whether to save a root task or not.
44  /// </summary>
45  ASPOSE_TASKS_SHARED_API void set_SaveRootTask(bool value);
46  /// <summary>
47  /// Gets a value indicating whether assignments of resources to summary tasks should be skipped during export.
48  /// </summary>
49  /// <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.
50  /// If true, assignments to summary tasks are skipped during export.
51  /// If false (the default value), an exception will be thrown if assignment to a summary task is encountered during export.</remarks>
52  ASPOSE_TASKS_SHARED_API bool get_SkipSummaryAssignments() const;
53  /// <summary>
54  /// Sets a value indicating whether assignments of resources to summary tasks should be skipped during export.
55  /// </summary>
56  /// <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.
57  /// If true, assignments to summary tasks are skipped during export.
58  /// If false (the default value), an exception will be thrown if assignment to a summary task is encountered during export.</remarks>
59  ASPOSE_TASKS_SHARED_API void set_SkipSummaryAssignments(bool value);
60 
61  /// <summary>
62  /// Initializes a new instance of the <see cref="PrimaveraXmlSaveOptions"></see> class.
63  /// </summary>
64  ASPOSE_TASKS_SHARED_API PrimaveraXmlSaveOptions();
65 
66 protected:
67 
68  ASPOSE_TASKS_SHARED_API System::SharedPtr<IWriter> GetWriter() override;
69 
70  virtual ASPOSE_TASKS_SHARED_API ~PrimaveraXmlSaveOptions();
71 
72 private:
73 
74  bool pr_SaveRootTask;
75  bool pr_SkipSummaryAssignments;
76 
77 };
78 
79 } // namespace Saving
80 } // namespace Tasks
81 } // namespace Aspose
82 
83 
This is an abstract base class that allow the user to specify basic options when saving a project int...
Definition: SimpleSaveOptions.h:51
Allows to specify additional options when saving project to Primavera xml format.
Definition: PrimaveraXmlSaveOptions.h:28
Definition: Asn.h:12