Changeset 3432 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Dec 11, 2007, 2:49:55 PM (18 years ago)
Author:
ansari
Message:

acces a Info() par ${name.info.} pour l adaptateur NTuple - Reza 11/12/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/nomhistadapter.cc

    r3221 r3432  
    582582  return string(buff);   
    583583}
    584 else return "NTuple.Att: nlines/nentry/nrows nvar/ncols";
     584else if (opts[0] == "info") { // Acces aux valeurs stockes ds le DVList Info()
     585  if (opts.size() < 2)  return string("");
     586  else if (mNt->Info().HasKey(opts[1]) == false) return string("");
     587  else return mNt->Info().GetS(opts[1]);
     588}
     589else if (opts[0] == "row") { // Pour recuperer une ligne de la table
     590  if (opts.size() < 2)  return string("");
     591  sa_size_t num = atol(opts[1].c_str());
     592  return mNt->LineToString(num);
     593}
     594else return "NTuple.Att: nlines/nentry/nrows nvar/ncols info.varname row.num";
    585595}
    586596
     
    763773}
    764774
    765 else return "BaseDataTable.Att: nlines/nentry/nrows nvar/ncols info.varname row.num ";
     775else return "BaseDataTable.Att: nlines/nentry/nrows nvar/ncols info.varname row.num";
    766776}
    767777
Note: See TracChangeset for help on using the changeset viewer.