CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
sort_version.h
1
2#pragma once
3
4#include <system/guid.h>
5#include <system/iequatable.h>
6
7namespace System { namespace Globalization {
8
9class SortVersion;
12
17class ASPOSECPP_SHARED_CLASS SortVersion final : public IEquatable<SharedPtr<SortVersion>>
18{
20 RTTI_INFO(System::Globalization::SortVersion, ::System::BaseTypesInfo<System::Object>)
21
22public:
26 ASPOSECPP_SHARED_API SortVersion(int full_version, const Guid& sort_id);
27
28 SortVersion(const SortVersion&) = delete;
30
33 ASPOSECPP_SHARED_API int get_FullVersion();
36 ASPOSECPP_SHARED_API Guid get_SortId();
37
38 // IEquatable<SharedPtr<SortVersion>> interface
42 ASPOSECPP_SHARED_API bool Equals(SharedPtr<SortVersion> other) override;
43
44 // Object interface
48 ASPOSECPP_SHARED_API bool Equals(SharedPtr<Object> other) override;
51 ASPOSECPP_SHARED_API int GetHashCode() const override;
52
56 ASPOSECPP_SHARED_API bool operator==(const SortVersion& other);
60 ASPOSECPP_SHARED_API bool operator!=(const SortVersion& other);
61
62private:
64 const int m_full_version;
66 const Guid m_sort_id;
67};
68
69}} // namespace System::Globalization
Provides information about Unicode version used to compare and order strings. Objects of this class s...
Definition: sort_version.h:18
SortVersion & operator=(const SortVersion &)=delete
bool Equals(SharedPtr< Object > other) override
Checks if current SortVersion instance is equal to a specified SortVersion object.
int get_FullVersion()
Gets full version number.
SortVersion(int full_version, const Guid &sort_id)
RTTI information.
bool operator==(const SortVersion &other)
Checks if current SortVersion instance is equal to a specified SortVersion object.
Guid get_SortId()
Gets unique identifier for this object.
bool Equals(SharedPtr< SortVersion > other) override
Checks if current SortVersion instance is equal to a specified SortVersion object.
bool operator!=(const SortVersion &other)
Checks if current SortVersion instance is not equal to a specified SortVersion object.
SortVersion(const SortVersion &)=delete
int GetHashCode() const override
Gets hash code for the current object.
Represents a Globally Unique IDentifier This type should be allocated on stack and passed to function...
Definition: guid.h:34
Defines a method that determines the equality of two objects. Objects of this class should only be al...
Definition: iequatable.h:16
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
SharedPtr< SortVersion > SortVersionPtr
SortVersion pointer type.
Definition: sort_version.h:11
Definition: db_command.h:9