Changes between Initial Version and Version 1 of FdoXmlWriterWriteDouble


Ignore:
Timestamp:
Oct 18, 2007, 8:20:21 AM (17 years ago)
Author:
gregboone
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FdoXmlWriterWriteDouble

    v1 v1  
     1
     2== FDO !XmlWriter !WriteDoubkle Support ==
     3
     4=== Overview ===
     5
     6There are a number of places in the FDO API and Provider source code where conversions are made from doubles to string in order to write the values to an XML file using !WriteString. When a double value is written to a XML file, it must be converted to string using dot even if the current locale uses a different character. 
     7
     8To solve this issue, new functions will be added to !FdoXmlWriter which can write doubles values to XML, thus removig the requirement on the client to determine the locale.
     9
     10=== API Changes ===
     11
     12Writing doubles will be supported by adding a !WriteAttribute (string Name, double Value) and a !WriteDouble (string Name, double Value) function to !FdoXmlWriter.
     13These two functions will use an internal function to convert a double to string and after conversion the function must trim all ‘0’ values from the right part of the string.
     14
     15{{{
     16FDO_API_COMMON void WriteAttribute( FdoString* attributeName, FdoDouble attributeValue );
     17FDO_API_COMMON void WriteDouble(FdoDouble value );
     18}}}
     19
     20Optional functions:
     21
     22{{{
     23FDO_API_COMMON void WriteAttribute( FdoString* attributeName, FdoInt64 attributeValue );
     24FDO_API_COMMON void WriteInt(FdoInt64 value );
     25}}}
     26
     27=== Issues ===
     28
     29Should we add a function to convert a XML string to double (independent of locale) in reader?