r231 - branches/work_303/doc

jls17 at arinside.org jls17 at arinside.org
Wed Oct 5 04:26:53 CDT 2011


Author: jls17
Date: Wed Oct  5 04:26:53 2011
New Revision: 231
URL: http://arinside.org/changeset/231

Log:
- added keyword-support to default-value of fields (fixed #116)

Modified:
   branches/work_303/doc/DocFieldDetails.cpp

Modified: branches/work_303/doc/DocFieldDetails.cpp
==============================================================================
--- branches/work_303/doc/DocFieldDetails.cpp	Wed Oct  5 04:24:07 2011	(r230)
+++ branches/work_303/doc/DocFieldDetails.cpp	Wed Oct  5 04:26:53 2011	(r231)
@@ -702,12 +702,17 @@
 	{
 		switch(this->field.GetDefaultValue().dataType)
 		{
-		case AR_DATA_TYPE_INTEGER:
+		case AR_DATA_TYPE_KEYWORD:
 			{
-				strm << CARValue::ValueToString(this->field.GetDefaultValue()) << endl;
+				strm << "$" << CARValue::ValueToString(this->field.GetDefaultValue()) << "$" << endl;
 			}
 			break;
+		case AR_DATA_TYPE_INTEGER:
 		case AR_DATA_TYPE_REAL:
+		case AR_DATA_TYPE_ENUM:
+		case AR_DATA_TYPE_TIME:
+		case AR_DATA_TYPE_DATE:
+		case AR_DATA_TYPE_TIME_OF_DAY:
 			{
 				strm << CARValue::ValueToString(this->field.GetDefaultValue()) << endl;
 			}
@@ -728,16 +733,6 @@
 				}
 			}
 			break;	
-		case AR_DATA_TYPE_ENUM:
-			{
-				strm << CARValue::ValueToString(this->field.GetDefaultValue()) << endl;
-			}
-			break;
-		case AR_DATA_TYPE_TIME:
-			{
-				strm << CARValue::ValueToString(this->field.GetDefaultValue()) << endl;
-			}
-			break;
 		case AR_DATA_TYPE_DECIMAL:
 			{
 				if(this->field.GetDefaultValue().u.decimalVal != NULL)
@@ -754,16 +749,6 @@
 				}
 			}
 			break;
-		case AR_DATA_TYPE_DATE:
-			{
-				strm << CARValue::ValueToString(this->field.GetDefaultValue()) << endl;
-			}
-			break;
-		case AR_DATA_TYPE_TIME_OF_DAY:
-			{
-				strm << CARValue::ValueToString(this->field.GetDefaultValue()) << endl;
-			}
-			break;
 		}
 	}
 	catch(exception& e)


More information about the arinside-src mailing list