8 #include <system/string.h>
9 #include <system/decimal.h>
10 #include <system/date_time.h>
12 #include "aspose.tasks.cpp/Duration.h"
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
19 namespace Connectivity
21 template <
typename>
class MpdField;
22 class MspExtendedAttribute;
23 class MspTaskExtendedAttributeReader;
25 enum class CustomFieldType;
26 class ExtendedAttributeCollection;
27 class ExtendedAttributeDefinition;
30 class ExtendedAttributeIdFilter;
32 class FormulaCalculator;
33 class FormulaOperatorToken;
34 class FormulaRelationalOperator;
35 class IExtendedAttributeParent;
40 class HtmlReadingUtils;
48 class CustomFieldTypeReader;
49 class ExtendedAttributeValueConverter;
50 class MPP12AssignmentExtendedAttributeReader;
51 class MPP12AssignmentExtendedAttributeWriter;
52 class MPP12ExtendedAttributeWriter;
53 class MPP12ResourceWriter;
54 class MPP12TaskWriter;
55 class MPP14ResourceWriter;
56 class MPP14TaskWriter;
57 class MPP9AssignmentExtendedAttributeWriter;
58 class MPP9ResourceWriter;
59 class MPPAssignmentExtendedAttributeReader;
60 class MPPAssignmentExtendedAttributeWriter;
61 class MPPExtendedAttributeReader;
71 class CustomFieldContainerWriter;
74 class ExtendedAttributeDefinitionToRawValuesMapper;
75 template <
typename>
class ExtendedAttributeParentEntityToRawValuesMapper;
76 template <
typename>
class ProjectCoreEntityMapperBase;
82 class PrimaveraExtendedAttributeBuilder;
86 class ExtendedAttributeFactory;
87 class ExtendedAttributeNodeReader;
88 class ExtendedAttributeNodeWriter;
89 class ResourceAssignmentNodeReader;
90 class ResourceAssignmentNodeWriter;
93 class ProjectIntegrityValidator;
96 class AverageFirstSublevelRollupCalculator;
97 class AverageRollupCalculator;
98 class ChildrenCountFirstSublevelRollupCalculator;
99 class ChildrenCountNonSummariesRollupCalculator;
100 class ChildrenCountRollupCalculator;
101 class DurationExtendedAttributeComparer;
102 class MinMaxRollupCalculator;
103 template <
typename>
class RollupCalculatorBase;
104 class SumRollupCalculator;
109 class MpxSavingUtils;
113 class ExtendedAttributeChecker;
116 class FieldHelperInternal;
119 namespace Visualization
121 template <
typename>
class FieldToColumnText;
140 typedef System::Object BaseType;
142 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
143 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
145 friend class Aspose::Tasks::Filters::ExtendedAttributeIdFilter;
146 friend class Aspose::Tasks::IO::Pwa::InternalApi::CustomFieldContainerWriter;
147 template<
typename FT0>
friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ExtendedAttributeParentEntityToRawValuesMapper;
148 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ExtendedAttributeDefinitionToRawValuesMapper;
149 friend class Aspose::Tasks::IO::Xml::ExtendedAttributeFactory;
153 friend class Aspose::Tasks::FormulaCalculator;
154 friend class Aspose::Tasks::FormulaOperatorToken;
155 friend class Aspose::Tasks::FormulaRelationalOperator;
156 template<
typename FT0>
friend class Aspose::Tasks::Connectivity::MpdField;
157 friend class Aspose::Tasks::Connectivity::MspExtendedAttribute;
158 friend class Aspose::Tasks::Connectivity::MspTaskExtendedAttributeReader;
159 friend class Aspose::Tasks::IO::Html::HtmlReadingUtils;
160 friend class Aspose::Tasks::IO::MSProject::CustomFieldTypeReader;
161 friend class Aspose::Tasks::IO::MSProject::ExtendedAttributeValueConverter;
162 friend class Aspose::Tasks::IO::MSProject::MPP12AssignmentExtendedAttributeReader;
163 friend class Aspose::Tasks::IO::MSProject::MPPAssignmentExtendedAttributeReader;
164 friend class Aspose::Tasks::IO::MSProject::MPP12ResourceWriter;
165 friend class Aspose::Tasks::IO::MSProject::MPP9ResourceWriter;
166 friend class Aspose::Tasks::IO::MSProject::MPP14ResourceWriter;
167 friend class Aspose::Tasks::IO::MSProject::MPP14TaskWriter;
168 friend class Aspose::Tasks::IO::MSProject::MPPExtendedAttributeReader;
169 friend class Aspose::Tasks::IO::MSProject::MPP12AssignmentExtendedAttributeWriter;
170 friend class Aspose::Tasks::IO::MSProject::MPPAssignmentExtendedAttributeWriter;
171 friend class Aspose::Tasks::IO::MSProject::MPP12ExtendedAttributeWriter;
172 friend class Aspose::Tasks::IO::MSProject::MPP12TaskWriter;
173 friend class Aspose::Tasks::IO::MSProject::Writers::MPP9TaskWriter;
174 friend class Aspose::Tasks::IO::MSProject::MPP9AssignmentExtendedAttributeWriter;
175 friend class Aspose::Tasks::IO::Mpx::MpxUtils;
176 friend class Aspose::Tasks::IO::Xer::PrimaveraExtendedAttributeBuilder;
177 template<
typename FT0>
friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ProjectCoreEntityMapperBase;
178 friend class Aspose::Tasks::IO::Xml::ExtendedAttributeNodeReader;
179 friend class Aspose::Tasks::IO::Xml::ExtendedAttributeNodeWriter;
180 friend class Aspose::Tasks::IO::Xml::ResourceAssignmentNodeReader;
181 friend class Aspose::Tasks::IO::Xml::ResourceAssignmentNodeWriter;
182 friend class Aspose::Tasks::ProjectIntegrityValidator;
183 friend class Aspose::Tasks::Rollup::AverageFirstSublevelRollupCalculator;
184 friend class Aspose::Tasks::Rollup::AverageRollupCalculator;
185 friend class Aspose::Tasks::Rollup::ChildrenCountFirstSublevelRollupCalculator;
186 template<
typename FT0>
friend class Aspose::Tasks::Rollup::RollupCalculatorBase;
187 friend class Aspose::Tasks::Rollup::ChildrenCountNonSummariesRollupCalculator;
188 friend class Aspose::Tasks::Rollup::ChildrenCountRollupCalculator;
189 friend class Aspose::Tasks::Rollup::DurationExtendedAttributeComparer;
190 friend class Aspose::Tasks::Rollup::MinMaxRollupCalculator;
191 friend class Aspose::Tasks::Rollup::SumRollupCalculator;
192 friend class Aspose::Tasks::Saving::HtmlUtils;
193 friend class Aspose::Tasks::Saving::MpxSavingUtils;
194 friend class Aspose::Tasks::Util::ExtendedAttributeChecker;
195 friend class Aspose::Tasks::Util::Fields::FieldHelperInternal;
196 template<
typename FT0>
friend class Aspose::Tasks::Visualization::FieldToColumnText;
279 ASPOSE_TASKS_SHARED_API System::String
ToString()
const override;
286 ASPOSE_TASKS_SHARED_API
void set_AttributeDefinition(
const System::SharedPtr<ExtendedAttributeDefinition>& value);
290 ASPOSE_TASKS_SHARED_API
void set_FieldId(
const System::String& value);
297 ASPOSE_TASKS_SHARED_API
void set_ValueGuid(
const System::String& value);
298 static ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Object> get_ErrorValue();
302 ASPOSE_TASKS_SHARED_API System::String get_Value();
306 ASPOSE_TASKS_SHARED_API
void set_Value(
const System::String& value);
307 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<IExtendedAttributeParent>& get_Parent()
const;
308 ASPOSE_TASKS_SHARED_API
void set_Parent(
const System::SharedPtr<IExtendedAttributeParent>& value);
309 ASPOSE_TASKS_SHARED_API int32_t get_ValueId()
const;
310 ASPOSE_TASKS_SHARED_API
void set_ValueId(int32_t value);
311 ASPOSE_TASKS_SHARED_API
bool get_IsEmpty();
312 ASPOSE_TASKS_SHARED_API
bool get_IsNumeric();
319 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
ExtendedAttribute, CODEPORTING_ARGS());
320 ASPOSE_TASKS_SHARED_API
void CopyValueFrom(
const System::SharedPtr<ExtendedAttribute>& sourceAttribute);
321 ASPOSE_TASKS_SHARED_API
void SetFromCalculatedValue(
const System::SharedPtr<System::Object>& calculatedValue);
322 static ASPOSE_TASKS_SHARED_API
bool IsValueError(
const System::SharedPtr<System::Object>& val);
323 #ifdef ASPOSE_GET_SHARED_MEMBERS
324 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
330 static const System::String& ErrorValueDisplayText();
331 static System::SharedPtr<System::Object>& errorValue();
333 mutable System::String value;
335 System::Decimal numericValue;
336 System::DateTime dateValue;
338 System::SharedPtr<ExtendedAttributeDefinition> attributeDefinition;
339 System::String pr_FieldId;
340 System::String pr_ValueGuid;
341 System::WeakPtr<IExtendedAttributeParent> pr_Parent;
344 bool get_IsValueCalculated()
const;
345 bool get_HasFormula()
const;
346 bool get_HasRollup()
const;
348 System::String ToString_NonConst();
349 System::SharedPtr<System::Object> GetCalculatedValue()
const;
350 System::String GetCalculatedStringValue(
const System::SharedPtr<System::Object>& calculatedValue)
const;
351 System::Decimal GetCalculatedValueAsDecimal(
const System::SharedPtr<System::Object>& calculatedValue);
352 System::SharedPtr<System::Object> GetFormulaResult()
const;
353 void CheckDefinitionAndAttributeProperty(CustomFieldType expectedFieldType);
354 void CheckDefinitionAndAttributeProperty(CustomFieldType expectedFieldType1, CustomFieldType expectedFieldType2);
355 void CheckDefinitionAndAttributeProperty(CustomFieldType expectedFieldType1, CustomFieldType expectedFieldType2, CustomFieldType expectedFieldType3);
358 System::Decimal ParseNumeric(
const System::SharedPtr<System::Object>& val);
359 System::DateTime ParseDateTime(
const System::SharedPtr<System::Object>& val);
360 Duration ParseDuration(
const System::SharedPtr<System::Object>& val);
361 static System::String ValueAsString(
const System::SharedPtr<System::Object>& calculatedValue);
Represents duration in a project.
Definition: Duration.h:163
Represents a collection of ExtendedAttribute objects.
Definition: ExtendedAttributeCollection.h:80
Represents an extended attribute definition associated with a project.
Definition: ExtendedAttributeDefinition.h:182
Represents extended attributes.
Definition: ExtendedAttribute.h:138
void set_NumericValue(System::Decimal value)
Sets a value for attributes with numeric types (Cost, Number).
System::String get_TextValue()
Gets a value for attributes with 'Text' type.
System::Decimal get_NumericValue()
Gets a value for attributes with numeric types (Cost, Number).
System::String get_ValueGuid() const
Gets the guid of a lookup value.
System::DateTime get_DateValue()
Gets a value for attributes with date types (Date, Start, Finish).
Duration get_DurationValue()
Gets value for attributes with 'Duration' type.
void set_FlagValue(bool value)
Sets a value indicating whether a flag is set for an attribute with 'Flag' type.
bool get_FlagValue()
Gets a value indicating whether a flag is set for an attribute with 'Flag' type.
System::String ToString() const override
Returns short string representation of an extended attribute.
bool get_ValueReadOnly() const
Gets a value indicating whether a value of this ExtendedAttribute instance is read-only....
System::SharedPtr< ExtendedAttributeDefinition > get_AttributeDefinition() const
Gets the attribute definition.
System::String get_FieldId() const
Gets the id of a field.
bool get_IsErrorValue()
Gets whether calculation of extended attribute's value resulted in an error.
void set_TextValue(const System::String &value)
Sets a value for attributes with 'Text' type.
void set_DurationValue(Duration value)
Sets value for attributes with 'Duration' type.
void set_DateValue(System::DateTime value)
Sets a value for attributes with date types (Date, Start, Finish).