CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
oid.h
1
2#pragma once
3
4#include <system/object.h>
5#include <system/exceptions.h>
6#include <security/cryptography/oid_group.h>
7
8namespace System { namespace Security { namespace Cryptography {
9
14class ASPOSECPP_SHARED_CLASS Oid final : public System::Object
15{
17 typedef Oid ThisType;
21 ASPOSECPP_SHARED_RTTI_INFO_DECL();
22
23public:
25 ASPOSECPP_SHARED_API Oid();
28 ASPOSECPP_SHARED_API Oid(const SharedPtr<Oid>& oid);
31 ASPOSECPP_SHARED_API Oid(const String& oid);
35 ASPOSECPP_SHARED_API Oid(const String& value, const String& friendly_name);
36
39 ASPOSECPP_SHARED_API String get_FriendlyName() const;
42 ASPOSECPP_SHARED_API void set_FriendlyName(const String& value);
45 ASPOSECPP_SHARED_API String get_Value() const;
48 ASPOSECPP_SHARED_API void set_Value(const String& value);
49
53 static ASPOSECPP_SHARED_API SharedPtr<Oid> FromFriendlyName(const String& friendly_name, OidGroup group);
54
58 static ASPOSECPP_SHARED_API SharedPtr<Oid> FromOidValue(const String& oid_value, OidGroup group);
59
60private:
62 String m_value;
64 mutable String m_friendly_name;
65};
66
67}}} // namespace System::Security::Cryptography
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Cryptographic object identifier. Objects of this class should only be allocated using System::MakeObj...
Definition: oid.h:15
Oid(const String &oid)
Constructor.
void set_Value(const String &value)
Sets object identifier string.
Oid(const String &value, const String &friendly_name)
Constructor.
String get_FriendlyName() const
Gets user-friendly name of object.
void set_FriendlyName(const String &value)
Sets user-friendly name of object.
static SharedPtr< Oid > FromFriendlyName(const String &friendly_name, OidGroup group)
Create OID object from the specified OID friendly name.
Oid(const SharedPtr< Oid > &oid)
Copy constructor.
static SharedPtr< Oid > FromOidValue(const String &oid_value, OidGroup group)
Create OID object from the specified OID value.
String get_Value() const
Gets object identifier string.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
OidGroup
Identifies Windows OID groups.
Definition: oid_group.h:12
Definition: db_command.h:9