00001 #ifndef _IT_BUS_PDK_XML_VALUE_READER_H_
00002 #define _IT_BUS_PDK_XML_VALUE_READER_H_
00003
00004
00005
00006
00007 #include <it_bus/types.h>
00008 #include <it_bus/deserialization_exception.h>
00009
00010 namespace IT_Bus
00011 {
00012 class BinaryOutParam;
00013
00014 class IT_BUS_XML_API XMLValueReader
00015 {
00016 public:
00017
00018 XMLValueReader();
00019
00020 ~XMLValueReader();
00021
00022 static const char *
00023 strip_white_space(
00024 String & to_strip,
00025 const char ** end
00026 );
00027
00028 static void
00029 read(
00030 const String & to_convert,
00031 String & result
00032 ) throw((DeserializationException));
00033
00034 static void
00035 read(
00036 const String & to_convert,
00037 Boolean & result
00038 ) throw((DeserializationException));
00039
00040 static void
00041 read(
00042 const String & to_convert,
00043 Float& result
00044 ) throw((DeserializationException));
00045
00046 static void
00047 read(
00048 const String & to_convert,
00049 Double & result
00050 ) throw((DeserializationException));
00051
00052 static void
00053 read(
00054 const String & to_convert,
00055 Int & result
00056 ) throw((DeserializationException));
00057
00058 static void
00059 read(
00060 const String & to_convert,
00061 Long & result
00062 ) throw((DeserializationException));
00063
00064 static void
00065 read(
00066 const String & to_convert,
00067 Short & result
00068 ) throw((DeserializationException));
00069
00070 static void
00071 read(
00072 const String & to_convert,
00073 UInt & result
00074 ) throw((DeserializationException));
00075
00076 static void
00077 read(
00078 const String & to_convert,
00079 ULong & result
00080 ) throw((DeserializationException));
00081
00082 static void
00083 read(
00084 const String & to_convert,
00085 UShort & result
00086 ) throw((DeserializationException));
00087
00088 static void
00089 read(
00090 const String & to_convert,
00091 Byte & result
00092 ) throw((DeserializationException));
00093
00094 static void
00095 read(
00096 const String & to_convert,
00097 UByte & result
00098 ) throw((DeserializationException));
00099
00100 static void
00101 read(
00102 const String & to_convert,
00103 DateTime & result
00104 ) throw((DeserializationException));
00105
00106 static void
00107 read(
00108 const String & to_convert,
00109 Decimal & result
00110 ) throw((DeserializationException));
00111
00112 static void read(
00113 const String & to_convert,
00114 BinaryOutParam& data
00115 ) throw((DeserializationException));
00116 };
00117 }
00118
00119 #endif