Aspose.Tasks for C++
MpdSettings.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="MpdSettings.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <cstdint>
9 
10 #include "aspose.tasks.cpp/IO/DB/DbSettings.h"
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 namespace Connectivity
18 {
19 template <typename, typename> class DbMapper;
20 class DbReader;
21 class DbTypeConverter;
22 class MpdAssignmentBaselineMapper;
23 class MpdAssignmentMapper;
24 class MpdCalendarDataMapper;
25 class MpdCalendarMapper;
26 class MpdDateFieldMapper;
27 class MpdDurationFieldMapper;
28 class MpdExtendedAttributeDefinitionMapper;
29 class MpdFlagFieldMapper;
30 class MpdNumberFieldMapper;
31 class MpdOutlineCodeDefinitionMapper;
32 class MpdOutlineCodeFieldMapper;
33 class MpdProjectPropsMapper;
34 class MpdResourceBaselineMapper;
35 class MpdResourceMapper;
36 class MpdResourceRateMapper;
37 class MpdTaskBaselineMapper;
38 class MpdTaskLinkMapper;
39 class MpdTaskMapper;
40 class MpdTextFieldMapper;
41 class MpdValueMapper;
42 } // namespace Connectivity
43 } // namespace Tasks
44 } // namespace Aspose
45 
46 namespace Aspose {
47 
48 namespace Tasks {
49 
50 namespace Connectivity {
51 
52 /// <summary>
53 /// Allows to set necessary options to read project data from MPD format (MS Access database file format).
54 /// </summary>
55 class ASPOSE_TASKS_SHARED_CLASS MpdSettings : public Aspose::Tasks::Connectivity::DbSettings
56 {
57  typedef MpdSettings ThisType;
59 
60  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
61  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
62 
63  template<typename FT0, typename FT1> friend class Aspose::Tasks::Connectivity::DbMapper;
64  friend class Aspose::Tasks::Connectivity::MpdAssignmentBaselineMapper;
65  friend class Aspose::Tasks::Connectivity::MpdAssignmentMapper;
66  friend class Aspose::Tasks::Connectivity::MpdCalendarDataMapper;
67  friend class Aspose::Tasks::Connectivity::MpdCalendarMapper;
68  friend class Aspose::Tasks::Connectivity::MpdDateFieldMapper;
69  friend class Aspose::Tasks::Connectivity::MpdDurationFieldMapper;
70  friend class Aspose::Tasks::Connectivity::MpdExtendedAttributeDefinitionMapper;
71  friend class Aspose::Tasks::Connectivity::MpdFlagFieldMapper;
72  friend class Aspose::Tasks::Connectivity::MpdNumberFieldMapper;
73  friend class Aspose::Tasks::Connectivity::MpdOutlineCodeDefinitionMapper;
74  friend class Aspose::Tasks::Connectivity::MpdOutlineCodeFieldMapper;
75  friend class Aspose::Tasks::Connectivity::MpdProjectPropsMapper;
76  friend class Aspose::Tasks::Connectivity::MpdResourceBaselineMapper;
77  friend class Aspose::Tasks::Connectivity::MpdResourceMapper;
78  friend class Aspose::Tasks::Connectivity::MpdResourceRateMapper;
79  friend class Aspose::Tasks::Connectivity::MpdTaskBaselineMapper;
80  friend class Aspose::Tasks::Connectivity::MpdTaskLinkMapper;
81  friend class Aspose::Tasks::Connectivity::MpdTaskMapper;
82  friend class Aspose::Tasks::Connectivity::MpdTextFieldMapper;
83  friend class Aspose::Tasks::Connectivity::MpdValueMapper;
84 
85 public:
86 
87  /// <summary>
88  /// Gets id of the project to read.
89  /// </summary>
90  ASPOSE_TASKS_SHARED_API int32_t get_ProjectId() const;
91 
92  /// <summary>
93  /// Initializes a new instance of the <see cref="MpdSettings"></see> class.
94  /// </summary>
95  /// <param name="connectionString">the specified connection string.</param>
96  /// <param name="projectId">the specified id of a project to read.</param>
97  ASPOSE_TASKS_SHARED_API MpdSettings(const System::String& connectionString, int32_t projectId);
98 
99 protected:
100 
101  ASPOSE_TASKS_SHARED_API System::SharedPtr<DbReader> GetDbReader() override;
102  ASPOSE_TASKS_SHARED_API System::SharedPtr<DbTypeConverter> GetTypeConverter() override;
103  ASPOSE_TASKS_SHARED_API System::String GetWhereClause();
104 
105  virtual ASPOSE_TASKS_SHARED_API ~MpdSettings();
106 
107 private:
108 
109  int32_t projectId;
110  System::String where;
111 
112 };
113 
114 } // namespace Connectivity
115 } // namespace Tasks
116 } // namespace Aspose
117 
118 
Allows to specify settings to read from project database.
Definition: DbSettings.h:71
Allows to set necessary options to read project data from MPD format (MS Access database file format)...
Definition: MpdSettings.h:56
int32_t get_ProjectId() const
Gets id of the project to read.
MpdSettings(const System::String &connectionString, int32_t projectId)
Initializes a new instance of the MpdSettings class.
Definition: Asn.h:13