Aspose.Tasks for C++
PrimaveraDbSettings.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="PrimaveraDbSettings.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 } // namespace Connectivity
23 } // namespace Tasks
24 } // namespace Aspose
25 namespace System
26 {
27 class String;
28 } // namespace System
29 
30 namespace Aspose {
31 
32 namespace Tasks {
33 
34 namespace Connectivity {
35 
36 /// <summary>
37 /// Allows to set necessary options to read project data from Primavera database.
38 /// </summary>
39 class ASPOSE_TASKS_SHARED_CLASS PrimaveraDbSettings : public Aspose::Tasks::Connectivity::DbSettings
40 {
43 
44  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
45  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
46 
47  template<typename FT0, typename FT1> friend class Aspose::Tasks::Connectivity::DbMapper;
48 
49 public:
50 
51  /// <summary>
52  /// Gets id of the project to read.
53  /// </summary>
54  ASPOSE_TASKS_SHARED_API int32_t get_ProjectId() const;
55 
56  /// <summary>
57  /// Initializes a new instance of the <see cref="PrimaveraDbSettings"></see> class.
58  /// </summary>
59  /// <param name="connectionString">the specified connection string.</param>
60  /// <param name="projectId">the specified id of a project to read.</param>
61  ASPOSE_TASKS_SHARED_API PrimaveraDbSettings(const System::String& connectionString, int32_t projectId);
62 
63 protected:
64 
65  ASPOSE_TASKS_SHARED_API System::SharedPtr<DbReader> GetDbReader() override;
66  ASPOSE_TASKS_SHARED_API System::SharedPtr<DbTypeConverter> GetTypeConverter() override;
67 
68  virtual ASPOSE_TASKS_SHARED_API ~PrimaveraDbSettings();
69 
70 private:
71 
72  int32_t projectId;
73 
74 };
75 
76 } // namespace Connectivity
77 } // namespace Tasks
78 } // namespace Aspose
79 
80 
Allows to specify settings to read from project database.
Definition: DbSettings.h:71
Allows to set necessary options to read project data from Primavera database.
Definition: PrimaveraDbSettings.h:40
int32_t get_ProjectId() const
Gets id of the project to read.
PrimaveraDbSettings(const System::String &connectionString, int32_t projectId)
Initializes a new instance of the PrimaveraDbSettings class.
Definition: Asn.h:13