CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
type_code.h
1
3#ifndef _aspose_system_type_code_h_
4#define _aspose_system_type_code_h_
5
6#include <array>
7#include <utility>
8#include <system/enum_helpers.h>
9#include "fwd.h"
10#include "defines.h"
11
12template <typename T> struct EnumMetaInfo;
13
14namespace System
15{
16
18enum class TypeCode
19{
21 Empty = 0,
23 Object = 1,
25 DBNull = 2,
27 Boolean = 3,
29 Char = 4,
31 SByte = 5,
33 Byte = 6,
35 Int16 = 7,
37 UInt16 = 8,
39 Int32 = 9,
41 UInt32 = 10,
43 Int64 = 11,
45 UInt64 = 12,
47 Single = 13,
49 Double = 14,
51 Decimal = 15,
53 DateTime = 16,
55 String = 18
56};
57
60DECLARE_ENUM_OPERATORS(System::TypeCode);
62DECLARE_USING_GLOBAL_OPERATORS
64} // namespace System
65
67DECLARE_USING_ENUM_OPERATORS(System);
68
70template<>
71struct EnumMetaInfo<System::TypeCode>
72{
75 static ASPOSECPP_SHARED_API const std::array<std::pair<System::TypeCode, const char_t*>, 18>& values();
76};
77
78#endif
Class that keeps static members of System.Boolean .Net type.
Definition: boolean.h:44
Contains methods to work with the unsigned 8-bit integer.
Definition: byte.h:57
Provides methods for manipulation of characters represented as UTF-16 code units. This is a static ty...
Definition: char.h:17
Represents a non-existing value. Objects of this class should only be allocated using System::MakeObj...
Definition: db_null.h:15
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
Represents a decimal number. This type should be allocated on stack and passed to functions by value ...
Definition: decimal.h:107
Contains methods to work with the 16-bit integer.
Definition: int16.h:18
Contains methods to work with the 32-bit integer.
Definition: int32.h:18
Contains methods to work with the 64-bit integer.
Definition: int64.h:18
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Definition: db_command.h:9
TypeCode
Represents the type of an object.
Definition: type_code.h:19
@ Empty
A null reference.
Contains methods to work with the double-precision floating-point number.
Definition: double.h:18
Contains methods to work with the 8-bit integer.
Definition: sbyte.h:18
Contains methods to work with the single-precision floating-point number.
Definition: single.h:18
Contains methods to work with the unsigned 16-bit integer.
Definition: uint16.h:18
Contains methods to work with the unsigned 32-bit integer.
Definition: uint32.h:18
Contains methods to work with the unsigned 64-bit integer.
Definition: uint64.h:18