[mapguide-commits] r7036 - in branches/2.4/MgDev/BuildTools/DoxyTransform: . DoxyTransform Doxygen.NET
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Sep 19 06:08:48 PDT 2012
Author: jng
Date: 2012-09-19 06:08:48 -0700 (Wed, 19 Sep 2012)
New Revision: 7036
Modified:
branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform.exe
branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform/Program.cs
branches/2.4/MgDev/BuildTools/DoxyTransform/Doxygen.NET/Docs.cs
Log:
#2114: Handle additional cases:
- Unmapped data types (INT8, BYTE_ARRAY_IN, BYTE_ARRAY_OUT)
- Improve arg string processing for methods by only caring about the content between ( and ), eliminating cases involving pure virtual declarations, const correctness and methods involving function pointers.
Modified: branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform/Program.cs
===================================================================
--- branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform/Program.cs 2012-09-19 12:06:30 UTC (rev 7035)
+++ branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform/Program.cs 2012-09-19 13:08:48 UTC (rev 7036)
@@ -142,6 +142,7 @@
return "System.Double";
case "float":
return "System.Single";
+ case "INT8": //These are exposed as short in .net
case "INT16":
return "System.Int16";
case "INT32":
@@ -152,6 +153,9 @@
return "System.String";
case "CREFSTRING":
return "System.String";
+ case "BYTE_ARRAY_IN":
+ case "BYTE_ARRAY_OUT":
+ return "System.Byte[]";
default:
return mgType;
}
Modified: branches/2.4/MgDev/BuildTools/DoxyTransform/DoxyTransform.exe
===================================================================
(Binary files differ)
Modified: branches/2.4/MgDev/BuildTools/DoxyTransform/Doxygen.NET/Docs.cs
===================================================================
--- branches/2.4/MgDev/BuildTools/DoxyTransform/Doxygen.NET/Docs.cs 2012-09-19 12:06:30 UTC (rev 7035)
+++ branches/2.4/MgDev/BuildTools/DoxyTransform/Doxygen.NET/Docs.cs 2012-09-19 13:08:48 UTC (rev 7036)
@@ -217,9 +217,14 @@
{
string kind = member.Attributes["kind"].Value;
string name = member["name"].InnerText;
- string args = member["argsstring"] != null ?
- member["argsstring"].InnerText.Replace("(", "").Replace(")", "").Trim() :
- string.Empty;
+ string args = string.Empty;
+ if (member["argsstring"] != null) {
+ //This is to strip any const and pure virtual modifiers
+ string str = member["argsstring"].InnerText;
+ if (str.LastIndexOf("(") >= 0 && str.LastIndexOf(")") >= 0)
+ str = str.Substring(str.LastIndexOf("("), str.LastIndexOf(")") - str.LastIndexOf("("));
+ args = str.Replace("(", "").Replace(")", "").Trim();
+ }
List<Parameter> parameters = new List<Parameter>();
More information about the mapguide-commits
mailing list