Represents XMP value More...

Inherits System::Object.

Public Member Functions

ASPOSE_PAGE_SHARED_API bool get_IsString ()
 Returns true if value is string. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsInteger () const
 Returns true if value is integer. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsDouble () const
 Returns true if value is floating point value. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsDateTime () const
 Returns true if value is DateTime. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsField ()
 Returns true if XmpValue is field. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsNamedValue () const
 Returns true if XmpValue is named value. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsRaw ()
 Value is unsupported/unknown and raw XML code is provided. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsNamedValues ()
 Returns true is XmpValue represents named values. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsStructure ()
 Returns true is XmpValue represents structure. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsArray ()
 Returns true is XmpValue is array. More...
 
ASPOSE_PAGE_SHARED_API XmpValue (System::String value)
 Constructor for string value. More...
 
ASPOSE_PAGE_SHARED_API XmpValue (int32_t value)
 Consructor for integer value. More...
 
ASPOSE_PAGE_SHARED_API XmpValue (double value)
 Constructor for floating point Value. More...
 
ASPOSE_PAGE_SHARED_API XmpValue (System::DateTime value)
 Constructor for date time value. More...
 
ASPOSE_PAGE_SHARED_API XmpValue (System::ArrayPtr< System::SharedPtr< XmpValue >> array)
 Constructor for array value. More...
 
ASPOSE_PAGE_SHARED_API System::String ToStringValue ()
 Converts to string. More...
 
ASPOSE_PAGE_SHARED_API int32_t ToInteger ()
 Converts to integer. More...
 
ASPOSE_PAGE_SHARED_API double ToDouble ()
 Converts to double. More...
 
ASPOSE_PAGE_SHARED_API System::DateTime ToDateTime ()
 Converts to date time. More...
 
ASPOSE_PAGE_SHARED_API System::ArrayPtr< System::SharedPtr< XmpValue > > ToArray ()
 Returns array. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Xml::XmlNodeToRaw ()
 Raw XML code for unknown/unsupported values. More...
 
ASPOSE_PAGE_SHARED_API System::ArrayPtr< System::SharedPtr< XmpField > > ToStructure ()
 Returns XMP value as structure (set of fields). More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XmpFieldToField ()
 Returns XMP value as XMP field. More...
 
ASPOSE_PAGE_SHARED_API System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue > > ToNamedValue ()
 Returns XMP value as named value. More...
 
ASPOSE_PAGE_SHARED_API System::ArrayPtr< System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue > > > ToNamedValues ()
 Returns XMP value as named value collection. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< XmpValue > > > ToDictionary ()
 Returns dictionary which contains named values. More...
 
ASPOSE_PAGE_SHARED_API System::String ToString (System::SharedPtr< System::IFormatProvider > formatProvider)
 Returns string representation. More...
 
ASPOSE_PAGE_SHARED_API System::String ToString () const override
 Returns string representation of XmpValue. 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 reference 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 int32_t 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 (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. 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 ASPOSE_PAGE_SHARED_API System::SharedPtr< XmpValueto_XmpValue (System::String value)
 
static ASPOSE_PAGE_SHARED_API System::SharedPtr< XmpValueto_XmpValue (int32_t value)
 
static ASPOSE_PAGE_SHARED_API System::SharedPtr< XmpValueto_XmpValue (double value)
 
static ASPOSE_PAGE_SHARED_API System::SharedPtr< XmpValueto_XmpValue (System::DateTime value)
 
static ASPOSE_PAGE_SHARED_API System::SharedPtr< XmpValueto_XmpValue (System::ArrayPtr< System::SharedPtr< System::Object >> value)
 
static ASPOSE_PAGE_SHARED_API System::ArrayPtr< System::SharedPtr< XmpValue > > to_XmpValueArray (System::SharedPtr< XmpValue > value)
 
static ASPOSE_PAGE_SHARED_API System::String to_String (System::SharedPtr< XmpValue > value)
 
static ASPOSE_PAGE_SHARED_API System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue > > to_KeyValuePair (System::SharedPtr< XmpValue > value)
 
static ASPOSE_PAGE_SHARED_API 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 ()
 Implements C# typeof(System.Object) construct. More...
 

Protected Member Functions

 XmpValue (System::SharedPtr< System::Xml::XmlNode > node)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpValue, CODEPORTING_ARGS(System::SharedPtr< System::Xml::XmlNode > node))
 
 XmpValue (System::SharedPtr< XmpField > field)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpValue, CODEPORTING_ARGS(System::SharedPtr< XmpField > field))
 
 XmpValue (System::ArrayPtr< System::SharedPtr< XmpField >> structure)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpValue, CODEPORTING_ARGS(System::ArrayPtr< System::SharedPtr< XmpField >> structure))
 
 XmpValue (System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue >> dictionaryEntry)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpValue, CODEPORTING_ARGS(System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue >> dictionaryEntry))
 
 XmpValue (System::ArrayPtr< System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue >>> dictionaryEntries)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpValue, CODEPORTING_ARGS(System::ArrayPtr< System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue >>> dictionaryEntries))
 
 XmpValue (System::SharedPtr< System::Object > value)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpValue, CODEPORTING_ARGS(System::SharedPtr< System::Object > value))
 
System::String ToStringEx ()
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Detailed Description

Represents XMP value

Constructor & Destructor Documentation

◆ XmpValue() [1/11]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::XMP::XmpValue::XmpValue ( System::String  value)

Constructor for string value.

Parameters
valueString value.

◆ XmpValue() [2/11]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::XMP::XmpValue::XmpValue ( int32_t  value)

Consructor for integer value.

Parameters
valueInteger value.

◆ XmpValue() [3/11]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::XMP::XmpValue::XmpValue ( double  value)

Constructor for floating point Value.

Parameters
valueDouble value.

◆ XmpValue() [4/11]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::XMP::XmpValue::XmpValue ( System::DateTime  value)

Constructor for date time value.

Parameters
valueDate time value.

◆ XmpValue() [5/11]

ASPOSE_PAGE_SHARED_API Aspose::Page::EPS::XMP::XmpValue::XmpValue ( System::ArrayPtr< System::SharedPtr< XmpValue >>  array)

Constructor for array value.

Parameters
arrayArray value.

◆ XmpValue() [6/11]

Aspose::Page::EPS::XMP::XmpValue::XmpValue ( System::SharedPtr< System::Xml::XmlNode node)
protected

◆ XmpValue() [7/11]

Aspose::Page::EPS::XMP::XmpValue::XmpValue ( System::SharedPtr< XmpField field)
protected

◆ XmpValue() [8/11]

Aspose::Page::EPS::XMP::XmpValue::XmpValue ( System::ArrayPtr< System::SharedPtr< XmpField >>  structure)
protected

◆ XmpValue() [9/11]

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

◆ XmpValue() [10/11]

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

◆ XmpValue() [11/11]

Aspose::Page::EPS::XMP::XmpValue::XmpValue ( System::SharedPtr< System::Object value)
protected

Member Function Documentation

◆ get_IsArray()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpValue::get_IsArray ( )

Returns true is XmpValue is array.

◆ get_IsDateTime()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpValue::get_IsDateTime ( ) const

Returns true if value is DateTime.

◆ get_IsDouble()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpValue::get_IsDouble ( ) const

Returns true if value is floating point value.

◆ get_IsField()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpValue::get_IsField ( )

Returns true if XmpValue is field.

◆ get_IsInteger()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpValue::get_IsInteger ( ) const

Returns true if value is integer.

◆ get_IsNamedValue()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpValue::get_IsNamedValue ( ) const

Returns true if XmpValue is named value.

◆ get_IsNamedValues()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpValue::get_IsNamedValues ( )

Returns true is XmpValue represents named values.

◆ get_IsRaw()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpValue::get_IsRaw ( )

Value is unsupported/unknown and raw XML code is provided.

Returns
True if value returned as raw data.

◆ get_IsString()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpValue::get_IsString ( )

Returns true if value is string.

◆ get_IsStructure()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpValue::get_IsStructure ( )

Returns true is XmpValue represents structure.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [1/6]

Aspose::Page::EPS::XMP::XmpValue::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpValue  ,
CODEPORTING_ARGS(System::SharedPtr< System::Xml::XmlNode > node)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/6]

Aspose::Page::EPS::XMP::XmpValue::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpValue  ,
CODEPORTING_ARGS(System::SharedPtr< XmpField > field)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [3/6]

Aspose::Page::EPS::XMP::XmpValue::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpValue  ,
CODEPORTING_ARGS(System::ArrayPtr< System::SharedPtr< XmpField >> structure)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [4/6]

Aspose::Page::EPS::XMP::XmpValue::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpValue  ,
CODEPORTING_ARGS(System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue >> dictionaryEntry)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [5/6]

Aspose::Page::EPS::XMP::XmpValue::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpValue  ,
CODEPORTING_ARGS(System::ArrayPtr< System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< XmpValue >>> dictionaryEntries)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [6/6]

Aspose::Page::EPS::XMP::XmpValue::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpValue  ,
CODEPORTING_ARGS(System::SharedPtr< System::Object > value)   
)
protected

◆ to_KeyValuePair()

static ASPOSE_PAGE_SHARED_API System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<XmpValue> > Aspose::Page::EPS::XMP::XmpValue::to_KeyValuePair ( System::SharedPtr< XmpValue value)
static

◆ to_KeyValuePairArray()

static ASPOSE_PAGE_SHARED_API System::ArrayPtr<System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<XmpValue> > > Aspose::Page::EPS::XMP::XmpValue::to_KeyValuePairArray ( System::SharedPtr< XmpValue value)
static

◆ to_String()

static ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::XMP::XmpValue::to_String ( System::SharedPtr< XmpValue value)
static

◆ to_XmpValue() [1/5]

static ASPOSE_PAGE_SHARED_API System::SharedPtr<XmpValue> Aspose::Page::EPS::XMP::XmpValue::to_XmpValue ( System::String  value)
static

◆ to_XmpValue() [2/5]

static ASPOSE_PAGE_SHARED_API System::SharedPtr<XmpValue> Aspose::Page::EPS::XMP::XmpValue::to_XmpValue ( int32_t  value)
static

◆ to_XmpValue() [3/5]

static ASPOSE_PAGE_SHARED_API System::SharedPtr<XmpValue> Aspose::Page::EPS::XMP::XmpValue::to_XmpValue ( double  value)
static

◆ to_XmpValue() [4/5]

static ASPOSE_PAGE_SHARED_API System::SharedPtr<XmpValue> Aspose::Page::EPS::XMP::XmpValue::to_XmpValue ( System::DateTime  value)
static

◆ to_XmpValue() [5/5]

static ASPOSE_PAGE_SHARED_API System::SharedPtr<XmpValue> Aspose::Page::EPS::XMP::XmpValue::to_XmpValue ( System::ArrayPtr< System::SharedPtr< System::Object >>  value)
static

◆ to_XmpValueArray()

static ASPOSE_PAGE_SHARED_API System::ArrayPtr<System::SharedPtr<XmpValue> > Aspose::Page::EPS::XMP::XmpValue::to_XmpValueArray ( System::SharedPtr< XmpValue value)
static

◆ ToArray()

ASPOSE_PAGE_SHARED_API System::ArrayPtr<System::SharedPtr<XmpValue> > Aspose::Page::EPS::XMP::XmpValue::ToArray ( )

Returns array.

Returns
Array value

◆ ToDateTime()

ASPOSE_PAGE_SHARED_API System::DateTime Aspose::Page::EPS::XMP::XmpValue::ToDateTime ( )

Converts to date time.

Returns
DateTime value.

◆ ToDictionary()

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<XmpValue> > > Aspose::Page::EPS::XMP::XmpValue::ToDictionary ( )

Returns dictionary which contains named values.

Returns
Dictionary value.

◆ ToDouble()

ASPOSE_PAGE_SHARED_API double Aspose::Page::EPS::XMP::XmpValue::ToDouble ( )

Converts to double.

Returns
Double value.

◆ ToField()

ASPOSE_PAGE_SHARED_API System::SharedPtr<XmpField> Aspose::Page::EPS::XMP::XmpValue::ToField ( )

Returns XMP value as XMP field.

Returns
Field value.

◆ ToInteger()

ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::EPS::XMP::XmpValue::ToInteger ( )

Converts to integer.

Returns
Integer value.

◆ ToNamedValue()

ASPOSE_PAGE_SHARED_API System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<XmpValue> > Aspose::Page::EPS::XMP::XmpValue::ToNamedValue ( )

Returns XMP value as named value.

Returns
Named value.

◆ ToNamedValues()

ASPOSE_PAGE_SHARED_API System::ArrayPtr<System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<XmpValue> > > Aspose::Page::EPS::XMP::XmpValue::ToNamedValues ( )

Returns XMP value as named value collection.

Returns
Named collection value.

◆ ToRaw()

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Xml::XmlNode> Aspose::Page::EPS::XMP::XmpValue::ToRaw ( )

Raw XML code for unknown/unsupported values.

Returns
XML node for this value.

◆ ToString() [1/2]

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::XMP::XmpValue::ToString ( System::SharedPtr< System::IFormatProvider formatProvider)

Returns string representation.

Parameters
formatProviderFormat provider.
Returns
String representation.

◆ ToString() [2/2]

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::XMP::XmpValue::ToString ( ) const
overridevirtual

Returns string representation of XmpValue.

Returns
String representation.

Reimplemented from System::Object.

◆ ToStringEx()

System::String Aspose::Page::EPS::XMP::XmpValue::ToStringEx ( )
protected

◆ ToStringValue()

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::XMP::XmpValue::ToStringValue ( )

Converts to string.

Returns
String value.

◆ ToStructure()

ASPOSE_PAGE_SHARED_API System::ArrayPtr<System::SharedPtr<XmpField> > Aspose::Page::EPS::XMP::XmpValue::ToStructure ( )

Returns XMP value as structure (set of fields).

Returns
Structure value.