Exemplo n.º 1
0
 internal TcAdsSymbolInfo(AdsParseSymbols symbolParser, TcAdsSymbolInfo parent, int subIndex)
 {
     if (symbolParser == null)
     {
         throw new ArgumentNullException("symbolParser");
     }
     id_counter++;
     this._id          = id_counter;
     this.symbolParser = symbolParser;
     this.parent       = parent;
     this.subIndex     = subIndex;
     this.subSymbols   = null;
 }
Exemplo n.º 2
0
 internal TcAdsSymbolInfoLoader(TcAdsClient adsClient, SymbolUploadInfo symbolInfo)
 {
     if (adsClient == null)
     {
         throw new ArgumentNullException("adsClient");
     }
     if (symbolInfo == null)
     {
         throw new ArgumentNullException("symbolInfo");
     }
     this._adsClient  = adsClient;
     this._symbols    = null;
     this._symbolInfo = symbolInfo;
 }
Exemplo n.º 3
0
 private bool initializeUploadSymbols(bool forceReload)
 {
     if (forceReload || (this._symbolParser == null))
     {
         this._symbols    = null;
         this._dataTypes  = null;
         this._symbolInfo = null;
         this.onUploadSymbols();
     }
     if (this._symbolParser == null)
     {
         return(false);
     }
     this._symbols   = new TcAdsSymbolInfoCollection(this._symbolParser);
     this._dataTypes = this._symbolParser.GetDataTypes();
     return(true);
 }
Exemplo n.º 4
0
 public AdsSymbolEnumerator(TcAdsSymbolInfoCollection symbolCollection)
 {
     this.symbolCollection = symbolCollection;
     this.isValid          = true;
     this.curIndex         = 0;
 }