lldbstrings.h
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:8k
源码类别:

游戏引擎

开发平台:

C++ Builder

  1. /** 
  2.  * @file lldbstrings.h
  3.  * @brief Database String Lengths.
  4.  *
  5.  * $LicenseInfo:firstyear=2002&license=viewergpl$
  6.  * 
  7.  * Copyright (c) 2002-2010, Linden Research, Inc.
  8.  * 
  9.  * Second Life Viewer Source Code
  10.  * The source code in this file ("Source Code") is provided by Linden Lab
  11.  * to you under the terms of the GNU General Public License, version 2.0
  12.  * ("GPL"), unless you have obtained a separate licensing agreement
  13.  * ("Other License"), formally executed by you and Linden Lab.  Terms of
  14.  * the GPL can be found in doc/GPL-license.txt in this distribution, or
  15.  * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
  16.  * 
  17.  * There are special exceptions to the terms and conditions of the GPL as
  18.  * it is applied to this Source Code. View the full text of the exception
  19.  * in the file doc/FLOSS-exception.txt in this software distribution, or
  20.  * online at
  21.  * http://secondlifegrid.net/programs/open_source/licensing/flossexception
  22.  * 
  23.  * By copying, modifying or distributing this software, you acknowledge
  24.  * that you have read and understood your obligations described above,
  25.  * and agree to abide by those obligations.
  26.  * 
  27.  * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
  28.  * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
  29.  * COMPLETENESS OR PERFORMANCE.
  30.  * $/LicenseInfo$
  31.  */
  32. #ifndef LL_LLDBSTRINGS_H
  33. #define LL_LLDBSTRINGS_H
  34. /**
  35.  * Defines the length of strings that are stored in the database (and
  36.  * the size of the buffer large enough to hold each one)
  37.  */
  38. // asset.name varchar(63)
  39. // -also-
  40. // user_inventory_item.name varchar(63)
  41. // -also-
  42. // user_inventory_folder.name varchar(63)  was CAT_NAME_SIZE
  43. // Must be >= DB_FULL_NAME_STR_LEN so that calling cards work
  44. const S32 DB_INV_ITEM_NAME_STR_LEN = 63;  // was MAX_ASSET_NAME_LENGTH
  45. const S32 DB_INV_ITEM_NAME_BUF_SIZE = 64;  // was ITEM_NAME_SIZE
  46. // asset.description varchar(127)
  47. // -also-
  48. // user_inventory_item.description varchar(127)
  49. const S32 DB_INV_ITEM_DESC_STR_LEN = 127; // was MAX_ASSET_DESCRIPTION_LENGTH
  50. const S32 DB_INV_ITEM_DESC_BUF_SIZE = 128; // was ITEM_DESC_SIZE
  51. // groups.name varchar(35)
  52. const S32 DB_GROUP_NAME_STR_LEN = 35;
  53. const S32 DB_GROUP_NAME_BUF_SIZE = 36;
  54. const S32 DB_GROUP_NAME_MIN_LEN = 4;
  55. //group_roles.name
  56. const U32 DB_GROUP_ROLE_NAME_STR_LEN     = 20;
  57. const U32 DB_GROUP_ROLE_NAME_BUF_SIZE    = DB_GROUP_ROLE_NAME_STR_LEN + 1;
  58. //group_roles.title
  59. const U32 DB_GROUP_ROLE_TITLE_STR_LEN    = 20;
  60. const U32 DB_GROUP_ROLE_TITLE_BUF_SIZE   = DB_GROUP_ROLE_TITLE_STR_LEN + 1;
  61. // group.charter text
  62. const S32 DB_GROUP_CHARTER_STR_LEN = 511;
  63. const S32 DB_GROUP_CHARTER_BUF_SIZE = 512;
  64. // group.officer_title varchar(20)
  65. // -also-
  66. // group.member_title varchar(20)
  67. const S32 DB_GROUP_TITLE_STR_LEN = 20;
  68. const S32 DB_GROUP_TITLE_BUF_SIZE = 21;
  69. // Since chat and im both dump into the database text message log,
  70. // they derive their max size from the same constant.
  71. const S32 MAX_MSG_STR_LEN = 1023;
  72. const S32 MAX_MSG_BUF_SIZE = 1024;
  73. // instant_message.message text
  74. const S32 DB_IM_MSG_STR_LEN   = MAX_MSG_STR_LEN;
  75. const S32 DB_IM_MSG_BUF_SIZE  = MAX_MSG_BUF_SIZE;
  76. // groupnotices
  77. const S32 DB_GROUP_NOTICE_SUBJ_STR_LEN = 63;
  78. const S32 DB_GROUP_NOTICE_SUBJ_STR_SIZE = 64;
  79. const S32 DB_GROUP_NOTICE_MSG_STR_LEN = MAX_MSG_STR_LEN - DB_GROUP_NOTICE_SUBJ_STR_LEN;
  80. const S32 DB_GROUP_NOTICE_MSG_STR_SIZE = MAX_MSG_BUF_SIZE - DB_GROUP_NOTICE_SUBJ_STR_SIZE;
  81. // log_text_message.message text
  82. const S32 DB_CHAT_MSG_STR_LEN = MAX_MSG_STR_LEN;
  83. const S32 DB_CHAT_MSG_BUF_SIZE  = MAX_MSG_BUF_SIZE;
  84. // money_stipend.description varchar(254)
  85. const S32 DB_STIPEND_DESC_STR_LEN = 254;
  86. const S32 DB_STIPEND_DESC_BUF_SIZE  = 255;
  87. // script_email_message.from_email varchar(78)
  88. const S32 DB_EMAIL_FROM_STR_LEN = 78;
  89. const S32 DB_EMAIL_FROM_BUF_SIZE = 79;
  90. // script_email_message.subject varchar(72)
  91. const S32 DB_EMAIL_SUBJECT_STR_LEN = 72;
  92. const S32 DB_EMAIL_SUBJECT_BUF_SIZE = 73;
  93. // system_globals.motd varchar(254)
  94. const S32 DB_MOTD_STR_LEN = 254;
  95. const S32 DB_MOTD_BUF_SIZE = 255;
  96. // Must be <= user_inventory_item.name so that calling cards work
  97. // First name + " " + last name...or a system assigned "from" name
  98. // instant_message.from_agent_name varchar(63)
  99. // -also-
  100. // user_mute.mute_agent_name varchar(63)
  101. const S32 DB_FULL_NAME_STR_LEN = 63;
  102. const S32 DB_FULL_NAME_BUF_SIZE = 64;  // was USER_NAME_SIZE
  103. // user.username varchar(31)
  104. const S32 DB_FIRST_NAME_STR_LEN = 31;
  105. const S32 DB_FIRST_NAME_BUF_SIZE = 32; // was MAX_FIRST_NAME
  106. // user_last_name.name varchar(31)
  107. const S32 DB_LAST_NAME_STR_LEN = 31;
  108. const S32 DB_LAST_NAME_BUF_SIZE = 32; // was MAX_LAST_NAME
  109. // user.password varchar(100)
  110. const S32 DB_USER_PASSWORD_STR_LEN = 100; 
  111. const S32 DB_USER_PASSWORD_BUF_SIZE = 101; // was MAX_PASSWORD
  112. // user.email varchar(254)
  113. const S32 DB_USER_EMAIL_ADDR_STR_LEN = 254;
  114. const S32 DB_USER_EMAIL_ADDR_BUF_SIZE = 255;
  115. // user.about text
  116. const S32 DB_USER_ABOUT_STR_LEN = 511;
  117. const S32 DB_USER_ABOUT_BUF_SIZE = 512;
  118. // user.fl_about_text text
  119. // Must be 255 not 256 as gets packed into message Variable 1
  120. const S32 DB_USER_FL_ABOUT_STR_LEN = 254;
  121. const S32 DB_USER_FL_ABOUT_BUF_SIZE = 255;
  122. // user.profile_url text
  123. // Must be 255 not 256 as gets packed into message Variable 1
  124. const S32 DB_USER_PROFILE_URL_STR_LEN = 254;
  125. const S32 DB_USER_PROFILE_URL_BUF_SIZE = 255;
  126. // user.want_to varchar(254)
  127. const S32 DB_USER_WANT_TO_STR_LEN = 254;
  128. const S32 DB_USER_WANT_TO_BUF_SIZE = 255;
  129. // user.skills varchar(254)
  130. const S32 DB_USER_SKILLS_STR_LEN = 254;
  131. const S32 DB_USER_SKILLS_BUF_SIZE = 255;
  132. // user_nv.name varchar(128)
  133. const S32 DB_NV_NAME_STR_LEN = 128;
  134. const S32 DB_NV_NAME_BUF_SIZE = 129;
  135. // votes.vote_text varchar(254)
  136. const S32 DB_VOTE_TEXT_STR_LEN = 254;
  137. const S32 DB_VOTE_TEXT_BUF_SIZE = 255;
  138. // vpte type text varchar(9)
  139. const S32 DB_VOTE_TYPE_STR_LEN = 9;
  140. const S32 DB_VOTE_TYPE_BUF_SIZE = 10;
  141. // vote result text
  142. const S32 DB_VOTE_RESULT_BUF_LEN = 8;
  143. const S32 DB_VOTE_RESULT_BUF_SIZE = 9;
  144. // user_start_location.location_name varchar(254)
  145. const S32 DB_START_LOCATION_STR_LEN = 254;
  146. const S32 DB_START_LOCATION_BUF_SIZE = 255;
  147. // money_tax_assessment.sim varchar(100)
  148. //const S32 DB_SIM_NAME_STR_LEN = 100;
  149. //const S32 DB_SIM_NAME_BUF_SIZE = 101;
  150. // born on date date
  151. const S32 DB_BORN_STR_LEN = 15;
  152. const S32 DB_BORN_BUF_SIZE = 16;
  153. // place.name
  154. const S32 DB_PLACE_NAME_LEN = 63;
  155. const S32 DB_PLACE_NAME_SIZE = 64;
  156. const S32 DB_PARCEL_NAME_LEN = 63;
  157. const S32 DB_PARCEL_NAME_SIZE = 64;
  158. // place.desc
  159. const S32 DB_PLACE_DESC_LEN = 255;
  160. const S32 DB_PLACE_DESC_SIZE = 256;
  161. const S32 DB_PARCEL_DESC_LEN = 255;
  162. const S32 DB_PARCEL_DESC_SIZE = 256;
  163. const S32 DB_PARCEL_MUSIC_URL_LEN = 255;
  164. const S32 DB_PARCEL_MEDIA_URL_LEN = 255;
  165. const S32 DB_PARCEL_MUSIC_URL_SIZE = 256;
  166. // date time that is easily human readable
  167. const S32 DB_DATETIME_STR_LEN = 35;
  168. const S32 DB_DATETIME_BUF_SIZE = 36;
  169. // date time that isn't easily human readable
  170. const S32 DB_TERSE_DATETIME_STR_LEN = 15;
  171. const S32 DB_TERSE_DATETIME_BUF_SIZE = 16;
  172. // indra.simulator constants
  173. const S32 DB_SIM_NAME_STR_LEN = 35;
  174. const S32 DB_SIM_NAME_BUF_SIZE = 36;
  175. const S32 DB_HOST_NAME_STR_LEN = 100;
  176. const S32 DB_HOST_NAME_BUF_SIZE = 101;
  177. const S32 DB_ESTATE_NAME_STR_LEN = 63;
  178. const S32 DB_ESTATE_NAME_BUF_SIZE = DB_ESTATE_NAME_STR_LEN + 1;
  179. // user_note.note
  180. const S32 DB_USER_NOTE_LEN = 1023;
  181. const S32 DB_USER_NOTE_SIZE = 1024;
  182. // pick.name
  183. const S32 DB_PICK_NAME_LEN = 63;
  184. const S32 DB_PICK_NAME_SIZE = 64;
  185. // pick.desc
  186. const S32 DB_PICK_DESC_LEN = 1023;
  187. const S32 DB_PICK_DESC_SIZE = 1024;
  188. #endif  // LL_LLDBSTRINGS_H