Aspose.Tasks for C++
MspDbSettings.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="MspDbSettings.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 <system/guid.h>
10 
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 #include "aspose.tasks.cpp/IO/DB/DbSettings.h"
13 
14 namespace Aspose
15 {
16 namespace Tasks
17 {
18 namespace Connectivity
19 {
20 template <typename, typename> class DbMapper;
21 class DbReader;
22 class DbTypeConverter;
23 } // namespace Connectivity
24 } // namespace Tasks
25 } // namespace Aspose
26 
27 namespace Aspose {
28 
29 namespace Tasks {
30 
31 namespace Connectivity {
32 
33 /// <summary>
34 /// Allows to set necessary options to read project data from MS Project Server database.
35 /// </summary>
36 class ASPOSE_TASKS_SHARED_CLASS MspDbSettings : public DbSettings
37 {
38  typedef MspDbSettings ThisType;
39  typedef DbSettings BaseType;
40 
41  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
42  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
43 
44  template<typename FT0, typename FT1> friend class DbMapper;
45 
46 public:
47 
48  /// <summary>
49  /// Gets the guid of the project to read.
50  /// </summary>
51  ASPOSE_TASKS_SHARED_API System::Guid get_ProjectGuid() const;
52  /// <summary>
53  /// Gets the schema of the MS Project Server.
54  /// The default value is "pub".
55  /// </summary>
56  ASPOSE_TASKS_SHARED_API System::String get_Schema() const;
57  /// <summary>
58  /// Sets the schema of the MS Project Server.
59  /// The default value is "pub".
60  /// </summary>
61  ASPOSE_TASKS_SHARED_API void set_Schema(const System::String& value);
62 
63  /// <summary>
64  /// Initializes a new instance of the <see cref="MspDbSettings"></see> class.
65  /// </summary>
66  /// <param name="connectionString">the specified connection string.</param>
67  /// <param name="projectGuid">the specified guid of a project to read.</param>
68  ASPOSE_TASKS_SHARED_API MspDbSettings(const System::String& connectionString, System::Guid projectGuid);
69 
70 protected:
71 
72  ASPOSE_TASKS_SHARED_API System::SharedPtr<DbReader> GetDbReader() override;
73  ASPOSE_TASKS_SHARED_API System::SharedPtr<DbTypeConverter> GetTypeConverter() override;
74 
75  ASPOSE_TASKS_SHARED_API virtual ~MspDbSettings();
76 
77  #ifdef ASPOSE_GET_SHARED_MEMBERS
78  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
79  #endif
80 
81 
82 private:
83 
84  System::Guid projectGuid;
85  System::String pr_Schema;
86 
87 };
88 
89 } // namespace Connectivity
90 } // namespace Tasks
91 } // namespace Aspose
92 
93 
Allows to specify settings to read from project database.
Definition: DbSettings.h:71
Allows to set necessary options to read project data from MS Project Server database.
Definition: MspDbSettings.h:37
System::String get_Schema() const
Gets the schema of the MS Project Server. The default value is "pub".
void set_Schema(const System::String &value)
Sets the schema of the MS Project Server. The default value is "pub".
MspDbSettings(const System::String &connectionString, System::Guid projectGuid)
Initializes a new instance of the MspDbSettings class.
System::Guid get_ProjectGuid() const
Gets the guid of the project to read.
Aspose.
Definition: Asn.h:13