Aspose::BarCode::BarCodeRecognition::MultyDecodeType Class Reference

Composite decode type. More...

Inherits Aspose::BarCode::BarCodeRecognition::BaseDecodeType, and System::IEquatable< System::SharedPtr< Aspose::BarCode::BarCodeRecognition::MultyDecodeType > >.

Public Member Functions

int32_t get_GetSingleTypesCount ()
 Returns a number of single types. More...
 
 MultyDecodeType (const System::ArrayPtr< System::SharedPtr< SingleDecodeType >> &barcodeTypes)
 Initializes a new instance of the MultyDecodeType class. More...
 
 MultyDecodeType (const System::ArrayPtr< System::SharedPtr< BaseDecodeType >> &barcodeTypes)
 Initializes a new instance of the MultyDecodeType class. More...
 
void Add (System::SharedPtr< SingleDecodeType > singleType)
 Adds one more SingleDecodeType to the MultyDecodeType. More...
 
System::SharedPtr< MultyDecodeTypeExclude (System::SharedPtr< SingleDecodeType > singleType)
 Excludes SingleDecodeType from the MultyDecodeType and returns new MultyDecodeType instance. More...
 
bool ContainsAll (const System::ArrayPtr< System::SharedPtr< BaseDecodeType >> &barcodeTypes)
 Check if this contains all types from barcode types. More...
 
bool ContainsAny (const System::ArrayPtr< System::SharedPtr< BaseDecodeType >> &decodeTypes) override
 Is contain any of types More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< SingleDecodeType > > > GetSingleTypes ()
 Represents a list of single types. More...
 
bool Equals (System::SharedPtr< MultyDecodeType > other) override
 Returns a value indicating whether this instance is equal to a specified MultyDecodeType value. More...
 
bool Equals (System::SharedPtr< System::Object > obj) override
 Returns a value indicating whether this instance is equal to a specified MultyDecodeType value. More...
 
int32_t GetHashCode () const override
 Returns the hash code for this instance. More...
 
System::String ToString () const override
 Overridden method representing MultyDecodeType as a string. More...
 
void SetTemplateWeakPtr (uint32_t argument) override
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
- Public Member Functions inherited from Aspose::BarCode::BarCodeRecognition::BaseDecodeType
virtual bool Equals (System::SharedPtr< SingleDecodeType > other)
 Returns a value indicating whether this instance is equal to a specified SingleDecodeType value. More...
 
bool Equals (System::SharedPtr< BaseDecodeType > other) override
 Returns a value indicating whether this instance is equal to a specified BaseDecodeType value. 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 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 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 bool TryParse (System::String parsingType, System::SharedPtr< MultyDecodeType > &result)
 Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed. More...
 
- Static Public Member Functions inherited from Aspose::BarCode::BarCodeRecognition::BaseDecodeType
static bool TryParse (System::String parsingType, System::SharedPtr< SingleDecodeType > &result)
 Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed. More...
 
static bool TryParse (System::String parsingType, System::SharedPtr< MultyDecodeType > &result)
 Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed. More...
 
static bool TryParse (System::String parsingType, System::SharedPtr< BaseDecodeType > &result)
 Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type. A return value indicates whether the conversion succeeded or failed. More...
 
- 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...
 

Additional Inherited Members

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

Detailed Description

Composite decode type.

This sample shows how to create compound MultyDecode types that combine SingleDecodeType and MultiDecode types.

[C#]
MultyDecodeType types1 = new MultyDecodeType(DecodeType.QR, DecodeType.DataMatrix);
MultyDecodeType types2 = new MultyDecodeType(types1, DecodeType.Code128, DecodeType.Code39Standard);
[VB.NET]
Dim multyType1 As MultyDecodeType
multyType1 = New MultyDecodeType(DecodeType.QR, DecodeType.DataMatrix)
Dim multyType2 As MultyDecodeType
multyType2 = New MultyDecodeType(multyType1, DecodeType.Code128, DecodeType.Code39Standard)

Constructor & Destructor Documentation

◆ MultyDecodeType() [1/2]

Aspose::BarCode::BarCodeRecognition::MultyDecodeType::MultyDecodeType ( const System::ArrayPtr< System::SharedPtr< SingleDecodeType >> &  barcodeTypes)

Initializes a new instance of the MultyDecodeType class.

Parameters
barcodeTypesArray of single decode types

◆ MultyDecodeType() [2/2]

Aspose::BarCode::BarCodeRecognition::MultyDecodeType::MultyDecodeType ( const System::ArrayPtr< System::SharedPtr< BaseDecodeType >> &  barcodeTypes)

Initializes a new instance of the MultyDecodeType class.

Parameters
barcodeTypesArray of multy and single decode types

Member Function Documentation

◆ Add()

void Aspose::BarCode::BarCodeRecognition::MultyDecodeType::Add ( System::SharedPtr< SingleDecodeType singleType)

Adds one more SingleDecodeType to the MultyDecodeType.

Parameters
singleTypeA Single DecodeType to be added to the list

◆ ContainsAll()

bool Aspose::BarCode::BarCodeRecognition::MultyDecodeType::ContainsAll ( const System::ArrayPtr< System::SharedPtr< BaseDecodeType >> &  barcodeTypes)

Check if this contains all types from barcode types.

Parameters
barcodeTypesInput single or multy barcode types
Returns
Value is a true if all types are included into

◆ ContainsAny()

bool Aspose::BarCode::BarCodeRecognition::MultyDecodeType::ContainsAny ( const System::ArrayPtr< System::SharedPtr< BaseDecodeType >> &  decodeTypes)
overridevirtual

Is contain any of types

Parameters
decodeTypesDecode types
Returns
Value is a true if any types are included into

Implements Aspose::BarCode::BarCodeRecognition::BaseDecodeType.

◆ Equals() [1/2]

bool Aspose::BarCode::BarCodeRecognition::MultyDecodeType::Equals ( System::SharedPtr< MultyDecodeType other)
overridevirtual

Returns a value indicating whether this instance is equal to a specified MultyDecodeType value.

Parameters
otherAn MultyDecodeType value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.

Reimplemented from Aspose::BarCode::BarCodeRecognition::BaseDecodeType.

◆ Equals() [2/2]

bool Aspose::BarCode::BarCodeRecognition::MultyDecodeType::Equals ( System::SharedPtr< System::Object obj)
override

Returns a value indicating whether this instance is equal to a specified MultyDecodeType value.

Parameters
objAn System.Object value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.

◆ Exclude()

System::SharedPtr<MultyDecodeType> Aspose::BarCode::BarCodeRecognition::MultyDecodeType::Exclude ( System::SharedPtr< SingleDecodeType singleType)

Excludes SingleDecodeType from the MultyDecodeType and returns new MultyDecodeType instance.

Parameters
singleTypeA Single DecodeType to be excluded.
Returns
New MultyDecodeType instance with excluded SingleDecodeType.

◆ get_GetSingleTypesCount()

int32_t Aspose::BarCode::BarCodeRecognition::MultyDecodeType::get_GetSingleTypesCount ( )

Returns a number of single types.

◆ GetHashCode()

int32_t Aspose::BarCode::BarCodeRecognition::MultyDecodeType::GetHashCode ( ) const
overridevirtual

Returns the hash code for this instance.

Returns
A 32-bit signed integer hash code.

Reimplemented from Aspose::BarCode::BarCodeRecognition::BaseDecodeType.

◆ GetSingleTypes()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<SingleDecodeType> > > Aspose::BarCode::BarCodeRecognition::MultyDecodeType::GetSingleTypes ( )

Represents a list of single types.

Returns
List of single types

◆ SetTemplateWeakPtr()

void Aspose::BarCode::BarCodeRecognition::MultyDecodeType::SetTemplateWeakPtr ( uint32_t  argument)
overridevirtual

Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.

Parameters
argumentIndex of template argument to treat as weak poiner.

Reimplemented from System::Object.

◆ ToString()

System::String Aspose::BarCode::BarCodeRecognition::MultyDecodeType::ToString ( ) const
overridevirtual

Overridden method representing MultyDecodeType as a string.

Returns

A string representing MultyDecodeType instance as "singleDecodeType1, singleDecodeType2, ..."

"AllSupportedTypes" returns when all types are included.

Reimplemented from System::Object.

◆ TryParse()

static bool Aspose::BarCode::BarCodeRecognition::MultyDecodeType::TryParse ( System::String  parsingType,
System::SharedPtr< MultyDecodeType > &  result 
)
static

Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

Parameters
parsingTypeA string in the format as either "AllSupportedTypes" or "EAN8,EAN13,CodaBar" to convert.
resultAn actual MultyDecodeType is returned, when conversion has completed successfully;

otherwise it returns indefinite type.

See also
DecodeType::None

or MultyDecodeType ("None").

Returns
true if s was converted successfully; otherwise, false.