*** empty log message ***
[m17n/m17n-lib-cs.git] / database.cs
1 using System;
2 using System.Collections.Generic;
3 using System.IO;
4 using M17N;
5 using M17N.Core;
6
7 public class Test
8 {
9   public static void Main ()
10   {
11     M17n.debug = true;
12     MDatabase.ApplicationDir = "/usr/local/share/m17n";
13     MDatabase.Tag tag = new MDatabase.Tag (MSymbol.Of ("input-method"),
14                                            MSymbol.t,
15                                            MSymbol.Of ("unicode"));
16     DirectoryInfo dirinfo = new DirectoryInfo ("/home/handa/.m17n.d");
17
18     while (true)
19       {
20         Console.Write ("mdb> ");
21         string str = Console.ReadLine ();
22         if (str == null || str == "quit" || str == "exit")
23           break;
24         dirinfo.Refresh ();
25         Console.WriteLine (dirinfo.LastWriteTimeUtc
26                            + ":" + MDatabase.Find (tag));
27       }
28   }
29 }