Aspose.Tasks for C++
FieldHelper.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="FieldHelper.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/aspose_tasks_api_defs.h"
11 
12 namespace Aspose
13 {
14 namespace Tasks
15 {
16 enum class Field;
17 enum class TaskKey : uint8_t;
18 } // namespace Tasks
19 } // namespace Aspose
20 namespace System
21 {
22 class String;
23 } // namespace System
24 
25 namespace Aspose {
26 
27 namespace Tasks {
28 
29 namespace Util {
30 
31 /// <summary>
32 /// Helper class which provides useful operations with fields.
33 /// </summary>
34 class ASPOSE_TASKS_SHARED_CLASS FieldHelper
35 {
36  typedef FieldHelper ThisType;
37 
38 public:
39 
40  /// <summary>
41  /// Returns a default title of the specific task field.
42  /// </summary>
43  /// <param name="taskKey">Task field to get a default title.</param>
44  /// <returns>A default title of the specific task field if the field can be displayed in MS Project's view, null otherwise.</returns>
45  static ASPOSE_TASKS_SHARED_API System::String GetDefaultTaskFieldTitle(TaskKey taskKey);
46  /// <summary>
47  /// Returns a default title of the specific field.
48  /// </summary>
49  /// <param name="field">Field to get a default title.</param>
50  /// <returns>A default title of the specific field if the field can be displayed in MS Project's view, null otherwise.</returns>
51  static ASPOSE_TASKS_SHARED_API System::String GetDefaultFieldTitle(Field field);
52 
53 public:
54  FieldHelper() = delete;
55 };
56 
57 } // namespace Util
58 } // namespace Tasks
59 } // namespace Aspose
60 
61 
Helper class which provides useful operations with fields.
Definition: FieldHelper.h:35
static System::String GetDefaultTaskFieldTitle(TaskKey taskKey)
Returns a default title of the specific task field.
static System::String GetDefaultFieldTitle(Field field)
Returns a default title of the specific field.
Definition: Asn.h:13