esml-app_dev Mailing List for The Earth Science Markup Language
Brought to you by:
rramachandran,
sunilmovva
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: Martin B. <bea...@ir...> - 2006-06-21 20:12:59
|
Hello Sunil, I have just modified the ESML source code to support strings as valid field values. I took example on the definition of class UINT24 : public ESML_Scalar in the file ESML_Types.h A couple of specialized templates did the trick. I still need to test the code more thoroughly, but so far, the string tokens in my ASCII files are getting parsed and returned correctly by the Ascii Plugin, which is very nice.. :) Martin Movva, Sunil wrote: >Martin, > >You can read character strings of fixed length. They are treated as char >arrays. >You can also skip strings. > >Thanks, >Sunil > > >-----Original Message----- >From: esm...@li... >[mailto:esm...@li...] On Behalf Of Movva, >Sunil >Sent: Wednesday, June 21, 2006 10:25 AM >To: esm...@li... >Subject: Re: [Esml-app_dev] ESML: is it possible to have strings as >fieldvalues? > >Martin, > > > >>The Ascii plugin is not supporting CString as a valid field value. Is >>this by design? >> >>If not, is there another way to achieve the same goal? >> >> > >Yes, CStrings are not supported in the Ascii Plugin implementation that >we have now. So, there is no way to extract these from the ESML Ascii >Plugin. > >Thanks, >Sunil Movva > >-----Original Message----- >From: esm...@li... >[mailto:esm...@li...] On Behalf Of Martin >Beaudoin >Sent: Wednesday, June 21, 2006 9:57 AM >To: esm...@li... >Subject: [Esml-app_dev] ESML: is it possible to have strings as field >values? > >Hello, > >I am currently climbing the ESML learning curve, so bear with me ... > >I need to extract strings information from an in-house format ASCII >file. > >Let's say my ASCII file is something like this: > >3 >filename1 path_to_filename1 >filename2 path_to_filename2 >filename3 path_to_filename3 > > >Using ESML, is it possible to define the "filename/pathname" block as an > >array of string field values? > >The Ascii plugin is not supporting CString as a valid field value. Is >this by design? > >If not, is there another way to achieve the same goal? > >Many thanks for your help. > >Martin > > > -- Martin Beaudoin, M.Sc.A., ing. bea...@ir... Chercheur Institut de recherche d'Hydro-Quebec(IREQ) Analyse et gestion de reseaux 1800 boul. Lionel Boulet tel: (450) 652-8235 Varennes (Quebec) J3X 1S1 Canada fax: (450) 652-8309 |
|
From: Movva, S. <sm...@it...> - 2006-06-21 19:54:30
|
Martin, You can read character strings of fixed length. They are treated as char arrays. You can also skip strings. Thanks, Sunil -----Original Message----- From: esm...@li... [mailto:esm...@li...] On Behalf Of Movva, Sunil Sent: Wednesday, June 21, 2006 10:25 AM To: esm...@li... Subject: Re: [Esml-app_dev] ESML: is it possible to have strings as fieldvalues? Martin, > The Ascii plugin is not supporting CString as a valid field value. Is=20 >this by design? > >If not, is there another way to achieve the same goal? Yes, CStrings are not supported in the Ascii Plugin implementation that we have now. So, there is no way to extract these from the ESML Ascii Plugin.=20 Thanks, Sunil Movva -----Original Message----- From: esm...@li... [mailto:esm...@li...] On Behalf Of Martin Beaudoin Sent: Wednesday, June 21, 2006 9:57 AM To: esm...@li... Subject: [Esml-app_dev] ESML: is it possible to have strings as field values? Hello, I am currently climbing the ESML learning curve, so bear with me ... I need to extract strings information from an in-house format ASCII file. Let's say my ASCII file is something like this: 3 filename1 path_to_filename1 filename2 path_to_filename2 filename3 path_to_filename3 Using ESML, is it possible to define the "filename/pathname" block as an array of string field values? The Ascii plugin is not supporting CString as a valid field value. Is=20 this by design? If not, is there another way to achieve the same goal? Many thanks for your help. Martin --=20 Martin Beaudoin, M.Sc.A., ing. bea...@ir... Chercheur Institut de recherche d'Hydro-Quebec(IREQ) Analyse et gestion de reseaux 1800 boul. Lionel Boulet tel: (450) 652-8235 Varennes (Quebec) J3X 1S1 Canada fax: (450) 652-8309 _______________________________________________ Esml-app_dev mailing list Esm...@li... https://lists.sourceforge.net/lists/listinfo/esml-app_dev _______________________________________________ Esml-app_dev mailing list Esm...@li... https://lists.sourceforge.net/lists/listinfo/esml-app_dev |
|
From: Movva, S. <sm...@it...> - 2006-06-21 15:25:22
|
Martin, > The Ascii plugin is not supporting CString as a valid field value. Is=20 >this by design? > >If not, is there another way to achieve the same goal? Yes, CStrings are not supported in the Ascii Plugin implementation that we have now. So, there is no way to extract these from the ESML Ascii Plugin.=20 Thanks, Sunil Movva -----Original Message----- From: esm...@li... [mailto:esm...@li...] On Behalf Of Martin Beaudoin Sent: Wednesday, June 21, 2006 9:57 AM To: esm...@li... Subject: [Esml-app_dev] ESML: is it possible to have strings as field values? Hello, I am currently climbing the ESML learning curve, so bear with me ... I need to extract strings information from an in-house format ASCII file. Let's say my ASCII file is something like this: 3 filename1 path_to_filename1 filename2 path_to_filename2 filename3 path_to_filename3 Using ESML, is it possible to define the "filename/pathname" block as an array of string field values? The Ascii plugin is not supporting CString as a valid field value. Is=20 this by design? If not, is there another way to achieve the same goal? Many thanks for your help. Martin --=20 Martin Beaudoin, M.Sc.A., ing. bea...@ir... Chercheur Institut de recherche d'Hydro-Quebec(IREQ) Analyse et gestion de reseaux 1800 boul. Lionel Boulet tel: (450) 652-8235 Varennes (Quebec) J3X 1S1 Canada fax: (450) 652-8309 _______________________________________________ Esml-app_dev mailing list Esm...@li... https://lists.sourceforge.net/lists/listinfo/esml-app_dev |
|
From: Martin B. <bea...@ir...> - 2006-06-21 14:57:21
|
Hello, I am currently climbing the ESML learning curve, so bear with me ... I need to extract strings information from an in-house format ASCII file. Let's say my ASCII file is something like this: 3 filename1 path_to_filename1 filename2 path_to_filename2 filename3 path_to_filename3 Using ESML, is it possible to define the "filename/pathname" block as an array of string field values? The Ascii plugin is not supporting CString as a valid field value. Is this by design? If not, is there another way to achieve the same goal? Many thanks for your help. Martin -- Martin Beaudoin, M.Sc.A., ing. bea...@ir... Chercheur Institut de recherche d'Hydro-Quebec(IREQ) Analyse et gestion de reseaux 1800 boul. Lionel Boulet tel: (450) 652-8235 Varennes (Quebec) J3X 1S1 Canada fax: (450) 652-8309 |