/[gr2lib]/trunk/gr2lib/core/coretypes/implementation/granny_log_callback_builder.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/coretypes/implementation/granny_log_callback_builder.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/gr2lib/core/coretypes/implementation/granny_log_callback_builder.cs	2010/07/24 05:43:04	190
+++ trunk/gr2lib/core/coretypes/implementation/granny_log_callback_builder.cs	2010/07/24 06:31:50	191
@@ -131,11 +131,11 @@
         /// <summary>
         /// Get Message Log Type name
         /// </summary>
-        public string TypeString { get { return coreapi.GrannyGetLogMessageTypeString(type); } }
+        public string TypeString { get { return coreapi.EnumToStringSupport.GrannyGetLogMessageTypeString(type); } }
         /// <summary>
         /// Get Message Log Origin name
         /// </summary>
-        public string OriginString { get { return coreapi.GrannyGetLogMessageOriginString(origin); } }
+        public string OriginString { get { return coreapi.EnumToStringSupport.GrannyGetLogMessageOriginString(origin); } }
         /// <summary>
         /// Get the Message
         /// </summary>
@@ -193,8 +193,8 @@
         #region Log Call Back
         private void LogCallback(granny_log_message_type Type, granny_log_message_origin Origin, [MarshalAs(UnmanagedType.LPStr)] string Message, IntPtr UserData)
         {          
-            string TypeString = coreapi.GrannyGetLogMessageTypeString(Type);
-            string OriginString = coreapi.GrannyGetLogMessageOriginString(Origin);
+            string TypeString = coreapi.EnumToStringSupport.GrannyGetLogMessageTypeString(Type);
+            string OriginString = coreapi.EnumToStringSupport.GrannyGetLogMessageOriginString(Origin);
 
             switch (Type)
             {
@@ -276,7 +276,7 @@
                 _log_call_back.Function = _callback;
                 _log_call_back.UserData = IntPtr.Zero;
                 GC.KeepAlive(this);
-                coreapi.GrannySetLogCallback(ref _log_call_back);
+                coreapi.LoggingSupport.GrannySetLogCallback(ref _log_call_back);
                 
                 Console.WriteLine("Granny2 API Logger: {0}", "Activated");
             }
@@ -301,7 +301,7 @@
                 granny_log_callback_method _granny_log_callback_method = null;
                 _log_call_back.Function = _granny_log_callback_method;
                 _log_call_back.UserData = IntPtr.Zero;
-                coreapi.GrannySetLogCallback(ref _log_call_back);
+                coreapi.LoggingSupport.GrannySetLogCallback(ref _log_call_back);
                 Console.WriteLine("Granny2 API Logger: {0}", "Deactivated");
             }
             catch

 

  ViewVC Help
Powered by ViewVC 1.1.22