Oracle Coherence for C++ API
Release 3.7.1.0
E22845-01
00001 /* 00002 * PofConstants.hpp 00003 * 00004 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. 00005 * 00006 * Oracle is a registered trademarks of Oracle Corporation and/or its 00007 * affiliates. 00008 * 00009 * This software is the confidential and proprietary information of Oracle 00010 * Corporation. You shall not disclose such confidential and proprietary 00011 * information and shall use it only in accordance with the terms of the 00012 * license agreement you entered into with Oracle. 00013 * 00014 * This notice may not be removed or altered. 00015 */ 00016 #ifndef COH_POF_CONSTANTS_HPP 00017 #define COH_POF_CONSTANTS_HPP 00018 00019 #include "coherence/lang.ns" 00020 00021 COH_OPEN_NAMESPACE3(coherence,io,pof) 00022 00023 00024 /** 00025 * Constants related to POF streams. 00026 * 00027 * @author jh 2008.04.09 00028 */ 00029 class COH_EXPORT PofConstants 00030 : public abstract_spec<PofConstants> 00031 { 00032 // ----- POF intrinsic type constants ----------------------------------- 00033 00034 public: 00035 // NOTE: The hex value to the right is the packed integer value of 00036 // the constant. 00037 typedef enum 00038 { 00039 t_int16 = -1, // 0x40 00040 t_int32 = -2, // 0x41 00041 t_int64 = -3, // 0x42 00042 t_int128 = -4, // 0x43 00043 t_float32 = -5, // 0x44 00044 t_float64 = -6, // 0x45 00045 t_float128 = -7, // 0x46 00046 t_decimal32 = -8, // 0x47 00047 t_decimal64 = -9, // 0x48 00048 t_decimal128 = -10, // 0x49 00049 t_boolean = -11, // 0x4A 00050 t_octet = -12, // 0x4B 00051 t_octet_string = -13, // 0x4C 00052 t_char = -14, // 0x4D 00053 t_char_string = -15, // 0x4E 00054 t_date = -16, // 0x4F 00055 t_year_month_interval = -17, // 0x50 00056 t_time = -18, // 0x51 00057 t_time_interval = -19, // 0x52 00058 t_datetime = -20, // 0x53 00059 t_day_time_interval = -21, // 0x54 00060 t_collection = -22, // 0x55 00061 t_uniform_collection = -23, // 0x56 00062 t_array = -24, // 0x57 00063 t_uniform_array = -25, // 0x58 00064 t_sparse_array = -26, // 0x59 00065 t_uniform_sparse_array = -27, // 0x5A 00066 t_map = -28, // 0x5B 00067 t_uniform_keys_map = -29, // 0x5C 00068 t_uniform_map = -30, // 0x5D 00069 t_identity = -31, // 0x5E 00070 t_reference = -32 // 0x5F 00071 } PofType; 00072 00073 00074 // ----- POF compact "small" values ------------------------------------- 00075 00076 public: 00077 // NOTE: The hex value to the right is the packed integer value of 00078 // the constant. 00079 typedef enum 00080 { 00081 v_boolean_false = -33, // 0x60 00082 v_boolean_true = -34, // 0x61 00083 v_string_zero_length = -35, // 0x62 00084 v_collection_empty = -36, // 0x63 00085 v_reference_null = -37, // 0x64 00086 v_fp_pos_infinity = -38, // 0x65 00087 v_fp_neg_infinity = -39, // 0x66 00088 v_fp_nan = -40, // 0x67 00089 v_int_neg_1 = -41, // 0x68 00090 v_int_0 = -42, // 0x69 00091 v_int_1 = -43, // 0x6A 00092 v_int_2 = -44, // 0x6B 00093 v_int_3 = -45, // 0x6C 00094 v_int_4 = -46, // 0x6D 00095 v_int_5 = -47, // 0x6E 00096 v_int_6 = -48, // 0x6F 00097 v_int_7 = -49, // 0x70 00098 v_int_8 = -50, // 0x71 00099 v_int_9 = -51, // 0x72 00100 v_int_10 = -52, // 0x73 00101 v_int_11 = -53, // 0x74 00102 v_int_12 = -54, // 0x75 00103 v_int_13 = -55, // 0x76 00104 v_int_14 = -56, // 0x77 00105 v_int_15 = -57, // 0x78 00106 v_int_16 = -58, // 0x79 00107 v_int_17 = -59, // 0x7A 00108 v_int_18 = -60, // 0x7B 00109 v_int_19 = -61, // 0x7C 00110 v_int_20 = -62, // 0x7D 00111 v_int_21 = -63, // 0x7E 00112 v_int_22 = -64, // 0x7F 00113 // Indicates unknown type. Not seen in POF stream 00114 t_unknown = -65 // 0x1C0 00115 } PofValue; 00116 00117 00118 // ----- C++ type constants --------------------------------------------- 00119 00120 public: 00121 typedef enum 00122 { 00123 c_null = 0, 00124 c_boolean = 1, 00125 c_octet = 2, 00126 c_char16 = 3, 00127 c_int16 = 4, 00128 c_int32 = 5, 00129 c_int64 = 6, 00130 c_float32 = 7, 00131 c_float64 = 8, 00132 c_binary = 9, 00133 c_string = 10, 00134 c_raw_date = 11, 00135 c_raw_date_time = 12, 00136 c_raw_day_time_interval = 13, 00137 c_raw_time = 14, 00138 c_raw_time_interval = 15, 00139 c_raw_year_month_interval = 16, 00140 c_boolean_array = 17, 00141 c_octet_array = 18, 00142 c_char16_array = 19, 00143 c_int16_array = 20, 00144 c_int32_array = 21, 00145 c_int64_array = 22, 00146 c_float32_array = 23, 00147 c_float64_array = 24, 00148 c_object_array = 25, 00149 c_sparse_array = 26, 00150 c_collection = 27, 00151 c_map = 28, 00152 c_user_type = 29 00153 } CppType; 00154 }; 00155 00156 COH_CLOSE_NAMESPACE3 00157 00158 #endif // COH_POF_CONSTANTS_HPP