Base class for summary info objects. More...

#include <MetaInfo.h>

Inherits System::Object.

Inherited by Aspose::Pub::DocSummaryInfo, and Aspose::Pub::SummaryInfo.

Public Member Functions

ASPOSE_PUB_SHARED_API uint16_t get_RawByteOrder ()
 Raw byte order.
 
ASPOSE_PUB_SHARED_API bool get_IsLittleEndian () const
 Is little endian.
 
ASPOSE_PUB_SHARED_API uint16_t get_Version () const
 Version value.
 
ASPOSE_PUB_SHARED_API uint32_t get_SysID () const
 System identifier.
 
ASPOSE_PUB_SHARED_API System::Guid get_Clsid () const
 CLSID identifier.
 
ASPOSE_PUB_SHARED_API System::Guid get_FMTID () const
 FMTID identifier.
 
ASPOSE_PUB_SHARED_API int32_t get_PropsCount ()
 Count of properties.
 
ASPOSE_PUB_SHARED_API System::SharedPtr< System::Collections::Generic::SortedDictionary< uint32_t, System::SharedPtr< System::Object > >::KeyCollection > get_PropsIdentifiers ()
 Identifiers of properties.
 
ASPOSE_PUB_SHARED_API int16_t get_CodePage ()
 Code page identifier.
 
ASPOSE_PUB_SHARED_API uint32_t get_Locale ()
 Locale identifier.
 
ASPOSE_PUB_SHARED_API System::SharedPtr< System::ObjectGetProperty (uint32_t id)
 Gets property by ID passed.
 
ASPOSE_PUB_SHARED_API MetaInfo ()
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures.
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures.
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses.
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses.
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value.
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object.
 
int SharedCount () const
 Gets current value of shared reference counter.
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object.
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object.
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics.
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string.
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types.
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call.
 
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.
 
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.
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only.
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr.
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings.
 

Protected Member Functions

void SetByteOrder (uint8_t lowByte, uint8_t highByte)
 Sets byte order.
 
void SetVersion (uint16_t value)
 Sets version.
 
void SetSysID (uint32_t value)
 Sets system identifier.
 
void SetClsid (System::Guid value)
 Sets CLS ID identifier.
 
void SetFMTID (System::Guid value)
 Sets FMTID identifier.
 
void AddProperty (uint32_t id, System::SharedPtr< System::Object > value)
 
ASPOSE_PUB_SHARED_API System::String GetStringByID (uint32_t id)
 Gets string by ID.
 
ASPOSE_PUB_SHARED_API int32_t GetIntByID (uint32_t id)
 Gets integer by ID.
 

Protected Attributes

uint8_t _rawLowByteOrder
 raw byte order
 
uint8_t _rawHighByteOrder
 
bool _isLittleEndian
 is little endian
 
uint16_t _version
 Version value.
 
uint32_t _sysId
 System identifier.
 
System::Guid _clsid
 CLSID identifier.
 
System::Guid _fmtId
 FMTID identifier.
 
int16_t _codePage
 Code page identifier.
 
System::SharedPtr< System::Collections::Generic::SortedDictionary< uint32_t, System::SharedPtr< System::Object > > > _propertyMap
 Map of proprties.
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type.
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference.
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference.
 
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.
 
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.
 
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.
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct.
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN.
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN.
 

Detailed Description

Base class for summary info objects.

Constructor & Destructor Documentation

◆ MetaInfo()

ASPOSE_PUB_SHARED_API Aspose::Pub::MetaInfo::MetaInfo ( )

Member Function Documentation

◆ AddProperty()

void Aspose::Pub::MetaInfo::AddProperty ( uint32_t id,
System::SharedPtr< System::Object > value )
protected

◆ get_Clsid()

ASPOSE_PUB_SHARED_API System::Guid Aspose::Pub::MetaInfo::get_Clsid ( ) const

CLSID identifier.

◆ get_CodePage()

ASPOSE_PUB_SHARED_API int16_t Aspose::Pub::MetaInfo::get_CodePage ( )

Code page identifier.

◆ get_FMTID()

ASPOSE_PUB_SHARED_API System::Guid Aspose::Pub::MetaInfo::get_FMTID ( ) const

FMTID identifier.

◆ get_IsLittleEndian()

ASPOSE_PUB_SHARED_API bool Aspose::Pub::MetaInfo::get_IsLittleEndian ( ) const

Is little endian.

◆ get_Locale()

ASPOSE_PUB_SHARED_API uint32_t Aspose::Pub::MetaInfo::get_Locale ( )

Locale identifier.

◆ get_PropsCount()

ASPOSE_PUB_SHARED_API int32_t Aspose::Pub::MetaInfo::get_PropsCount ( )

Count of properties.

◆ get_PropsIdentifiers()

ASPOSE_PUB_SHARED_API System::SharedPtr< System::Collections::Generic::SortedDictionary< uint32_t, System::SharedPtr< System::Object > >::KeyCollection > Aspose::Pub::MetaInfo::get_PropsIdentifiers ( )

Identifiers of properties.

◆ get_RawByteOrder()

ASPOSE_PUB_SHARED_API uint16_t Aspose::Pub::MetaInfo::get_RawByteOrder ( )

Raw byte order.

◆ get_SysID()

ASPOSE_PUB_SHARED_API uint32_t Aspose::Pub::MetaInfo::get_SysID ( ) const

System identifier.

◆ get_Version()

ASPOSE_PUB_SHARED_API uint16_t Aspose::Pub::MetaInfo::get_Version ( ) const

Version value.

◆ GetIntByID()

ASPOSE_PUB_SHARED_API int32_t Aspose::Pub::MetaInfo::GetIntByID ( uint32_t id)
protected

Gets integer by ID.

Parameters
idinteger identifier
Returns
integer value

◆ GetProperty()

ASPOSE_PUB_SHARED_API System::SharedPtr< System::Object > Aspose::Pub::MetaInfo::GetProperty ( uint32_t id)

Gets property by ID passed.

Parameters
idproperty identifier
Returns
property value

◆ GetStringByID()

ASPOSE_PUB_SHARED_API System::String Aspose::Pub::MetaInfo::GetStringByID ( uint32_t id)
protected

Gets string by ID.

Parameters
idstring identifier
Returns
string value

◆ SetByteOrder()

void Aspose::Pub::MetaInfo::SetByteOrder ( uint8_t lowByte,
uint8_t highByte )
protected

Sets byte order.

Parameters
lowBytelow byte
highBytehigh byte

◆ SetClsid()

void Aspose::Pub::MetaInfo::SetClsid ( System::Guid value)
protected

Sets CLS ID identifier.

Parameters
valueCLS ID identifier value

◆ SetFMTID()

void Aspose::Pub::MetaInfo::SetFMTID ( System::Guid value)
protected

Sets FMTID identifier.

Parameters
valueFMTID identifier

◆ SetSysID()

void Aspose::Pub::MetaInfo::SetSysID ( uint32_t value)
protected

Sets system identifier.

Parameters
valueSystem Identifier value

◆ SetVersion()

void Aspose::Pub::MetaInfo::SetVersion ( uint16_t value)
protected

Sets version.

Parameters
valueversion value

Member Data Documentation

◆ _clsid

System::Guid Aspose::Pub::MetaInfo::_clsid
protected

CLSID identifier.

◆ _codePage

int16_t Aspose::Pub::MetaInfo::_codePage
protected

Code page identifier.

◆ _fmtId

System::Guid Aspose::Pub::MetaInfo::_fmtId
protected

FMTID identifier.

◆ _isLittleEndian

bool Aspose::Pub::MetaInfo::_isLittleEndian
protected

is little endian

◆ _propertyMap

System::SharedPtr<System::Collections::Generic::SortedDictionary<uint32_t, System::SharedPtr<System::Object> > > Aspose::Pub::MetaInfo::_propertyMap
protected

Map of proprties.

◆ _rawHighByteOrder

uint8_t Aspose::Pub::MetaInfo::_rawHighByteOrder
protected

◆ _rawLowByteOrder

uint8_t Aspose::Pub::MetaInfo::_rawLowByteOrder
protected

raw byte order

◆ _sysId

uint32_t Aspose::Pub::MetaInfo::_sysId
protected

System identifier.

◆ _version

uint16_t Aspose::Pub::MetaInfo::_version
protected

Version value.