Aspose.Tasks for C++
PrimaveraProjectInfo.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="PrimaveraProjectInfo.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/aspose_tasks_api_defs.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 class PrimaveraXerReader;
18 class PrimaveraXmlReader;
19 } // namespace Tasks
20 } // namespace Aspose
21 
22 namespace Aspose {
23 
24 namespace Tasks {
25 
26 namespace Primavera {
27 
28 /// <summary>
29 /// Represents short info about a project loaded from Primavera format.
30 /// </summary>
31 class ASPOSE_TASKS_SHARED_CLASS PrimaveraProjectInfo final : public System::Object
32 {
34  typedef System::Object BaseType;
35 
36  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
37  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
38 
41 
42 public:
43 
44  /// <summary>
45  /// Gets project's Uid.
46  /// </summary>
47  ASPOSE_TASKS_SHARED_API int32_t get_Uid() const;
48  /// <summary>
49  /// Gets project's name.
50  /// </summary>
51  ASPOSE_TASKS_SHARED_API System::String get_Name() const;
52  /// <summary>
53  /// Gets project's export flag. When a project is selected for export in Primavera, its ExportFlag is true.
54  /// Some projects not explicitly selected for export may be exported to an XER file due to their relationship to the exported project.
55  /// </summary>
56  ASPOSE_TASKS_SHARED_API bool get_ExportFlag() const;
57 
58 protected:
59 
60  ASPOSE_TASKS_SHARED_API PrimaveraProjectInfo(int32_t uid, const System::String& name, bool exportFlag);
61 
62  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(PrimaveraProjectInfo, CODEPORTING_ARGS(int32_t uid, const System::String& name, bool exportFlag));
63 
64 private:
65 
66  int32_t pr_Uid;
67 
68  /// <summary>
69  /// Gets project's Uid.
70  /// </summary>
71  ASPOSE_TASKS_SHARED_API void set_Uid(int32_t value);
72 
73  System::String pr_Name;
74 
75  /// <summary>
76  /// Gets project's name.
77  /// </summary>
78  ASPOSE_TASKS_SHARED_API void set_Name(const System::String& value);
79 
80  bool pr_ExportFlag;
81 
82  /// <summary>
83  /// Gets project's export flag. When a project is selected for export in Primavera, its ExportFlag is true.
84  /// Some projects not explicitly selected for export may be exported to an XER file due to their relationship to the exported project.
85  /// </summary>
86  ASPOSE_TASKS_SHARED_API void set_ExportFlag(bool value);
87 
88 };
89 
90 } // namespace Primavera
91 } // namespace Tasks
92 } // namespace Aspose
93 
94 
Represents short info about a project loaded from Primavera format.
Definition: PrimaveraProjectInfo.h:32
bool get_ExportFlag() const
Gets project's export flag. When a project is selected for export in Primavera, its ExportFlag is tru...
int32_t get_Uid() const
Gets project's Uid.
System::String get_Name() const
Gets project's name.
Represents a reader to read Project UIDs from Primavera XER file
Definition: PrimaveraXerReader.h:45
Represents a reader which allows to retrieve Project UIDs from Primavera Xml file.
Definition: PrimaveraXmlReader.h:45
Definition: Asn.h:13