示例#1
0
文件: Header.cs 项目: hirst/rrdsharp
 internal Header(RrdDb parentDb, RrdDef rrdDef)
 {
     this.parentDb = parentDb;
     signature = new RrdString(SIGNATURE, this);
     step = new RrdLong(rrdDef.Step, this);
     dsCount = new RrdInt(rrdDef.DsCount, this);
     arcCount = new RrdInt(rrdDef.ArcCount, this);
     lastUpdateTime = new RrdLong(rrdDef.StartTime, this);
 }
示例#2
0
文件: Header.cs 项目: hirst/rrdsharp
 internal Header(RrdDb parentDb)
 {
     this.parentDb = parentDb;
     signature = new RrdString(this);
     if(!signature.Get().Equals(SIGNATURE))
     {
         throw new RrdException("Not an RRDSharp file");
     }
     step = new RrdLong(this);
     dsCount = new RrdInt(this);
     arcCount = new RrdInt(this);
     lastUpdateTime = new RrdLong(this);
 }