Exemplo n.º 1
0
 internal Tag(string name, int dataSize, TagType tagType, AeonDB aeondb)
 {
     this.name      = name;
     this.dataSize  = new Size(dataSize);
     this.tagType   = tagType;
     this.aeondb    = aeondb;
     this.timestore = new Timestore(this, this.aeondb.Directory + this.name);
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var db  = new AeonDB("data");
            var tag = db.CreateTag("test", TagType.Double);

            for (int i = 0; i < 100000; i++)
            {
                tag.AddValue(new Utility.Timestamp(DateTime.Now + new TimeSpan(0, 0, i)), (double)i);
            }
        }
Exemplo n.º 3
0
 internal FloatTag(string name, AeonDB aeondb)
     : base(name, sizeof(double), TagType.Float, aeondb)
 {
 }
Exemplo n.º 4
0
 internal Int64Tag(string name, AeonDB aeondb)
     : base(name, sizeof(double), TagType.Int64, aeondb)
 {
 }
Exemplo n.º 5
0
 internal BooleanTag(string name, AeonDB aeonDB)
     : base(name, sizeof(double), TagType.Boolean, aeonDB)
 {
 }
Exemplo n.º 6
0
 internal DoubleTag(string name, AeonDB aeondb)
     : base(name, sizeof(double), TagType.Double, aeondb)
 {
 }