Shadowrun: Awakened 29 September 2011 - Build 871
UScriptGetRoutine.cs
Go to the documentation of this file.
00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005 
00006 namespace RoutineAnalyzer
00007 {
00008     class UScriptGetRoutine : CppGetRoutine
00009     {
00016         public UScriptGetRoutine(string sql)
00017             : base(sql)
00018         {
00019         }
00020 
00025         public override string GetDeclaration()
00026         {
00027             StringBuilder builder = new StringBuilder();
00028             builder.Append("dllimport final function ");
00029             builder.Append(ParseHelper.ConvertUnderscoreToCamelCase(_name));
00030             builder.Append("(");
00031             foreach (RoutineParamBase param in _params)
00032             {
00033                 builder.Append(param.GetDeclaration());
00034                 builder.Append(", ");
00035             }
00036 
00037             builder.Append("out int queryId");
00038 
00039             builder.Append(")");
00040             return builder.ToString();
00041         }
00042 
00047         public override string GetCode()
00048         {
00049             return "";
00050         }
00051 
00058         protected override RoutineParamBase CreateRoutineParam(string sql, int index)
00059         {
00060             return new UScriptSetRoutineParam(sql, index);
00061         }
00062     }
00063 }

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net