Ejemplo n.º 1
0
    void.cctor();                                  // a090a298

    // VTable
    virtual boolean Equals(mvar value); // 0 - a090a154
Ejemplo n.º 2
0
    IMessage CreateRequest(String sacsid);                                  // a08ebd08

    // VTable
    virtual boolean Equals(mvar obj);                                               // 0 - a0cd168c
Ejemplo n.º 3
0
 virtual boolean get_IsBundle();   // 4 - a0907f78
 virtual int Append(mvar value);   // 5 - a0908428
Ejemplo n.º 4
0
 void Set(Void timeStamp);                      // a0909914
 boolean Equals(mvar value);                    // a090a154
Ejemplo n.º 5
0
 OscBundle FromByteArray(cmod_reqd data, int start, int end); // a09080f8
 int Append(mvar value);                                      // a0908428
Ejemplo n.º 6
0
 virtual ulong System.IConvertible.ToUInt64(UInt64 provider);                 // 21 - a0c83d6c
 virtual int CompareTo(mvar target);                                          // 22 - a0c860e8
Ejemplo n.º 7
0
 // VTable
 virtual boolean Equals(mvar obj);                                            // 0 - a0c8702c
Ejemplo n.º 8
0
 void.ctor(String address);                                   // a090803c
 int Append(mvar value);                                      // 0
Ejemplo n.º 9
0
    static void Main()
    {
        Console.WriteLine("--- Testing ---");

        //in C#2008 onwards you can put var xyz=new ...
        //csharp has no way to say "for var put mvar for old versions that dont support var". "welcome to the machine, my son"
        //        var exo=new mvar("");

        mvar exo=new mvar("");

        //"cannot explicitly convert "string" to mvar (yet!)
        //      mvar xyz="xyz";

        string str1="MT";

        mvar testnum=new mvar(1000);
        Console.WriteLine(testnum);
        Console.WriteLine(testnum.toInt()+1);
        Console.WriteLine(testnum.quote());

        mvar filename=new mvar("T");
        Console.WriteLine(filename);

        Console.WriteLine(filename.quote());
        mvar options=new mvar("");

        if (!exo.connect(options))
                Console.WriteLine("couldnt connect to default database");
        else {
                Console.WriteLine("connected to default database");

            if (exo.open(filename,options))
                    Console.WriteLine("db file already existed.");

        else if (exo.createfile(filename))
            Console.WriteLine("db file created");
        else
            Console.WriteLine("db file not created");

            //write some records
        exo.begintrans();
        mvar record=(new mvar("X")).str(1000);
            for (int ii=1;ii<=100;++ii) {
                    mvar id=new mvar(ii);
                    if (!record.write(filename,id))
                            break;
                    Console.Write(id+" ");
            }
            Console.WriteLine();
        exo.committrans();

            mvar listoffiles=exo.listfiles();
            Console.WriteLine(listoffiles);
            Console.WriteLine(listoffiles.extract(1));

            if (exo.deletefile(filename))
                    Console.WriteLine("db file deleted");

        }

        //mvar MT=new mvar("MT");
        string MTs="MT";
        mvar MT=new mvar("MT");
        Console.WriteLine("Pick Date: "+exo.date()+" is "+exo.date().oconv("D"));
        Console.WriteLine("Pick Time: "+exo.time()+" is "+exo.time().oconv(MT));
        MT.seq().outputl();
        Console.WriteLine("Pick Time: "+exo.time()+" is "+exo.time().oconv(MTs));

        Console.WriteLine("Finished");
    }