CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
os_platform.h
1
2#pragma once
3#include <system/iequatable.h>
4#include <system/string.h>
5
6namespace System { namespace Runtime { namespace InteropServices {
7
8class ASPOSECPP_SHARED_CLASS OSPlatform : public IEquatable<OSPlatform>
9{
10 friend struct RuntimeInformation;
11
12public:
13 ASPOSECPP_SHARED_API static const OSPlatform& get_FreeBSD();
14 ASPOSECPP_SHARED_API static const OSPlatform& get_Linux();
15 ASPOSECPP_SHARED_API static const OSPlatform& get_OSX();
16 ASPOSECPP_SHARED_API static const OSPlatform& get_Windows();
17
18 ASPOSECPP_SHARED_API static OSPlatform Create(const String& osPlatform);
19 ASPOSECPP_SHARED_API bool Equals(OSPlatform other) override;
20
21 ASPOSECPP_SHARED_API bool operator==(const OSPlatform& other) const;
22 ASPOSECPP_SHARED_API bool operator!=(const OSPlatform& other) const;
23
24private:
25 String _OSPlatform;
26};
27
28}}}
Defines a method that determines the equality of two objects. Objects of this class should only be al...
Definition: iequatable.h:17
bool operator==(const OSPlatform &other) const
static const OSPlatform & get_Windows()
static const OSPlatform & get_FreeBSD()
bool operator!=(const OSPlatform &other) const
static OSPlatform Create(const String &osPlatform)
static const OSPlatform & get_Linux()
bool Equals(OSPlatform other) override
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:125
Definition: db_command.h:9
Definition: runtime_information.h:9