Represents XMP value More...

Inherits System::Object.

Public Member Functions

bool get_IsString ()
 Returns true if value is string. More...
 
bool get_IsInteger ()
 Returns true if value is integer. More...
 
bool get_IsDouble ()
 Returns true if value is floating point value. More...
 
bool get_IsDateTime ()
 Returns true if value is DateTime. More...
 
bool get_IsField ()
 Returns true if XmpValue is field. More...
 
bool get_IsNamedValue ()
 Returns true if XmpValue is named value. More...
 
bool get_IsNamedValues ()
 Returns true is XmpValue represents named values. More...
 
bool get_IsStructure ()
 Returns true is XmpValue represents structure. More...
 
bool get_IsArray ()
 Returns true is XmpValue is array. More...
 
 XmpValue (System::String value)
 Constructor for string value. More...
 
 XmpValue (int32_t value)
 Consructor for integer value. More...
 
 XmpValue (double value)
 Constructor for floating point Value. More...
 
 XmpValue (System::DateTime value)
 Constructor for date time value. More...
 
 XmpValue (System::ArrayPtr< System::SharedPtr< XmpValue >> array)
 Constructor for array value. More...
 
System::String ToStringValue ()
 Converts to string. More...
 
int32_t ToInteger ()
 Converts to integer. More...
 
double ToDouble ()
 Converts to double. More...
 
System::DateTime ToDateTime ()
 Converts to date time. More...
 
System::ArrayPtr< System::SharedPtr< XmpValue > > ToArray ()
 Returns array. More...
 
System::ArrayPtr< System::SharedPtr< XmpField > > ToStructure ()
 Returns XMP value as structure (set of fields). More...
 
System::SharedPtr< XmpFieldToField ()
 Returns XMP value as XMP field. More...
 
System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue > > ToNamedValue ()
 Returns XMP value as named value. More...
 
System::ArrayPtr< System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue > > > ToNamedValues ()
 Returns XMP value as named value collection. More...
 
virtual System::String ToString ()
 Returs string representation of XmpValue. More...
 
System::String ToString (System::SharedPtr< System::IFormatProvider > formatProvider)
 Returns string representation. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Static Public Member Functions

static System::SharedPtr< XmpValueto_XmpValue (System::String value)
 
static System::SharedPtr< XmpValueto_XmpValue (int32_t value)
 
static System::SharedPtr< XmpValueto_XmpValue (double value)
 
static System::SharedPtr< XmpValueto_XmpValue (System::DateTime value)
 
static System::SharedPtr< XmpValueto_XmpValue (System::ArrayPtr< System::SharedPtr< System::Object >> value)
 
static System::ArrayPtr< System::SharedPtr< XmpValue > > to_XmpValueArray (System::SharedPtr< XmpValue > value)
 
static System::String to_String (System::SharedPtr< XmpValue > value)
 
static System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue > > to_KeyValuePair (System::SharedPtr< XmpValue > value)
 
static System::ArrayPtr< System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue > > > to_KeyValuePairArray (System::SharedPtr< XmpValue > value)
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 

Protected Member Functions

 XmpValue (System::SharedPtr< XmpField > field)
 
 XmpValue (System::ArrayPtr< System::SharedPtr< XmpField >> structure)
 
 XmpValue (System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue >> dictionaryEntry)
 
 XmpValue (System::ArrayPtr< System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue >>> dictionaryEntries)
 
 XmpValue (System::SharedPtr< System::Object > value)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 

Detailed Description

Represents XMP value

Constructor & Destructor Documentation

◆ XmpValue() [1/10]

Aspose::Pdf::XmpValue::XmpValue ( System::String  value)

Constructor for string value.

Parameters
valueString value.

◆ XmpValue() [2/10]

Aspose::Pdf::XmpValue::XmpValue ( int32_t  value)

Consructor for integer value.

Parameters
valueInteger value.

◆ XmpValue() [3/10]

Aspose::Pdf::XmpValue::XmpValue ( double  value)

Constructor for floating point Value.

Parameters
valueDouble value.

◆ XmpValue() [4/10]

Aspose::Pdf::XmpValue::XmpValue ( System::DateTime  value)

Constructor for date time value.

Parameters
valueDate time value.

◆ XmpValue() [5/10]

Aspose::Pdf::XmpValue::XmpValue ( System::ArrayPtr< System::SharedPtr< XmpValue >>  array)

Constructor for array value.

Parameters
arrayArray value.

◆ XmpValue() [6/10]

Aspose::Pdf::XmpValue::XmpValue ( System::SharedPtr< XmpField field)
protected

◆ XmpValue() [7/10]

Aspose::Pdf::XmpValue::XmpValue ( System::ArrayPtr< System::SharedPtr< XmpField >>  structure)
protected

◆ XmpValue() [8/10]

Aspose::Pdf::XmpValue::XmpValue ( System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue >>  dictionaryEntry)
protected

◆ XmpValue() [9/10]

Aspose::Pdf::XmpValue::XmpValue ( System::ArrayPtr< System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue >>>  dictionaryEntries)
protected

◆ XmpValue() [10/10]

Aspose::Pdf::XmpValue::XmpValue ( System::SharedPtr< System::Object value)
protected

Member Function Documentation

◆ get_IsArray()

bool Aspose::Pdf::XmpValue::get_IsArray ( )

Returns true is XmpValue is array.

◆ get_IsDateTime()

bool Aspose::Pdf::XmpValue::get_IsDateTime ( )

Returns true if value is DateTime.

◆ get_IsDouble()

bool Aspose::Pdf::XmpValue::get_IsDouble ( )

Returns true if value is floating point value.

◆ get_IsField()

bool Aspose::Pdf::XmpValue::get_IsField ( )

Returns true if XmpValue is field.

◆ get_IsInteger()

bool Aspose::Pdf::XmpValue::get_IsInteger ( )

Returns true if value is integer.

◆ get_IsNamedValue()

bool Aspose::Pdf::XmpValue::get_IsNamedValue ( )

Returns true if XmpValue is named value.

◆ get_IsNamedValues()

bool Aspose::Pdf::XmpValue::get_IsNamedValues ( )

Returns true is XmpValue represents named values.

◆ get_IsString()

bool Aspose::Pdf::XmpValue::get_IsString ( )

Returns true if value is string.

◆ get_IsStructure()

bool Aspose::Pdf::XmpValue::get_IsStructure ( )

Returns true is XmpValue represents structure.

◆ to_KeyValuePair()

static System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<XmpValue> > Aspose::Pdf::XmpValue::to_KeyValuePair ( System::SharedPtr< XmpValue value)
static

◆ to_KeyValuePairArray()

static System::ArrayPtr<System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<XmpValue> > > Aspose::Pdf::XmpValue::to_KeyValuePairArray ( System::SharedPtr< XmpValue value)
static

◆ to_String()

static System::String Aspose::Pdf::XmpValue::to_String ( System::SharedPtr< XmpValue value)
static

◆ to_XmpValue() [1/5]

static System::SharedPtr<XmpValue> Aspose::Pdf::XmpValue::to_XmpValue ( System::String  value)
static

◆ to_XmpValue() [2/5]

static System::SharedPtr<XmpValue> Aspose::Pdf::XmpValue::to_XmpValue ( int32_t  value)
static

◆ to_XmpValue() [3/5]

static System::SharedPtr<XmpValue> Aspose::Pdf::XmpValue::to_XmpValue ( double  value)
static

◆ to_XmpValue() [4/5]

static System::SharedPtr<XmpValue> Aspose::Pdf::XmpValue::to_XmpValue ( System::DateTime  value)
static

◆ to_XmpValue() [5/5]

static System::SharedPtr<XmpValue> Aspose::Pdf::XmpValue::to_XmpValue ( System::ArrayPtr< System::SharedPtr< System::Object >>  value)
static

◆ to_XmpValueArray()

static System::ArrayPtr<System::SharedPtr<XmpValue> > Aspose::Pdf::XmpValue::to_XmpValueArray ( System::SharedPtr< XmpValue value)
static

◆ ToArray()

System::ArrayPtr<System::SharedPtr<XmpValue> > Aspose::Pdf::XmpValue::ToArray ( )

Returns array.

Returns

◆ ToDateTime()

System::DateTime Aspose::Pdf::XmpValue::ToDateTime ( )

Converts to date time.

Returns

◆ ToDouble()

double Aspose::Pdf::XmpValue::ToDouble ( )

Converts to double.

Returns

◆ ToField()

System::SharedPtr<XmpField> Aspose::Pdf::XmpValue::ToField ( )

Returns XMP value as XMP field.

Returns

◆ ToInteger()

int32_t Aspose::Pdf::XmpValue::ToInteger ( )

Converts to integer.

Returns

◆ ToNamedValue()

Returns XMP value as named value.

Returns

◆ ToNamedValues()

Returns XMP value as named value collection.

Returns

◆ ToString() [1/2]

virtual System::String Aspose::Pdf::XmpValue::ToString ( )
virtual

Returs string representation of XmpValue.

Returns

Reimplemented from System::Object.

◆ ToString() [2/2]

System::String Aspose::Pdf::XmpValue::ToString ( System::SharedPtr< System::IFormatProvider formatProvider)

Returns string representation.

Parameters
formatProvider
Returns

◆ ToStringValue()

System::String Aspose::Pdf::XmpValue::ToStringValue ( )

Converts to string.

Returns

◆ ToStructure()

System::ArrayPtr<System::SharedPtr<XmpField> > Aspose::Pdf::XmpValue::ToStructure ( )

Returns XMP value as structure (set of fields).

Returns