00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_OPERATORS_H_
00028 #define CEYLAN_OPERATORS_H_
00029
00030
00031 #include "CeylanException.h"
00032 #include "CeylanDisplayable.h"
00033 #include "CeylanTypes.h"
00034
00035
00036 #include <string>
00037 #include <list>
00038
00039
00040
00069 CEYLAN_DLL std::string operator + ( const std::string & s, Ceylan::Sint8 i ) ;
00070
00071 CEYLAN_DLL std::string operator + ( Ceylan::Sint8 i, const std::string & s ) ;
00072
00073
00074 CEYLAN_DLL std::string operator + ( const std::string & s, Ceylan::Uint8 i ) ;
00075
00076 CEYLAN_DLL std::string operator + ( Ceylan::Uint8 i, const std::string & s ) ;
00077
00078
00079
00080 CEYLAN_DLL std::string operator + ( const std::string & s, Ceylan::Sint16 i ) ;
00081
00082 CEYLAN_DLL std::string operator + ( Ceylan::Sint16 i, const std::string & s ) ;
00083
00084
00085 CEYLAN_DLL std::string operator + ( const std::string & s, Ceylan::Uint16 i ) ;
00086
00087 CEYLAN_DLL std::string operator + ( Ceylan::Uint16 i, const std::string & s ) ;
00088
00089
00090
00091 CEYLAN_DLL std::string operator + ( const std::string & s, Ceylan::Sint32 i ) ;
00092
00093 CEYLAN_DLL std::string operator + ( Ceylan::Sint32 i, const std::string & s ) ;
00094
00095
00096 CEYLAN_DLL std::string operator + ( const std::string & s, Ceylan::Uint32 i ) ;
00097
00098 CEYLAN_DLL std::string operator + ( Ceylan::Uint32 i, const std::string & s ) ;
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121 CEYLAN_DLL std::string operator + ( const std::string & s,
00122 Ceylan::SignedLongInteger i ) ;
00123
00124 CEYLAN_DLL std::string operator + ( Ceylan::SignedLongInteger i,
00125 const std::string & s ) ;
00126
00127
00128 CEYLAN_DLL std::string operator + ( const std::string & s,
00129 Ceylan::UnsignedLongInteger i ) ;
00130
00131 CEYLAN_DLL std::string operator + ( Ceylan::UnsignedLongInteger i,
00132 const std::string & s ) ;
00133
00134
00135
00136 CEYLAN_DLL std::string operator + ( const std::string & s, Ceylan::Float32 i ) ;
00137
00138 CEYLAN_DLL std::string operator + ( Ceylan::Float32 i, const std::string & s ) ;
00139
00140
00141 CEYLAN_DLL std::string operator + ( const std::string & s, Ceylan::Float64 i ) ;
00142
00143 CEYLAN_DLL std::string operator + ( Ceylan::Float64 i, const std::string & s ) ;
00144
00145
00146
00147
00148
00149
00150
00151
00152 CEYLAN_DLL std::string operator + ( const std::string & s,
00153 Ceylan::LongFloat i ) ;
00154
00155 CEYLAN_DLL std::string operator + ( Ceylan::LongFloat i,
00156 const std::string & s ) ;
00157
00158
00159
00160
00161
00162 CEYLAN_DLL std::string operator + ( const std::string & s, const void * p ) ;
00163
00164 CEYLAN_DLL std::string operator + ( const void * p, const std::string & s ) ;
00165
00166
00167 CEYLAN_DLL std::string operator + ( const std::string & a, const char * b ) ;
00168
00169 CEYLAN_DLL std::string operator + ( const char * a, const std::string & b ) ;
00170
00171
00172
00173
00174 namespace Ceylan
00175 {
00176
00177
00194 extern CEYLAN_DLL const Ceylan::Uint16 DigitOutputPrecision ;
00195
00196
00197
00199 CEYLAN_DLL std::string toString( const void * pointer ) ;
00200
00201
00202
00208 CEYLAN_DLL std::string toString( bool value ) ;
00209
00210
00211
00219 CEYLAN_DLL std::string toString( Ceylan::Sint8 value,
00220 bool bitField = false ) ;
00221
00222
00223
00231 CEYLAN_DLL std::string toString( Ceylan::Uint8 value,
00232 bool bitField = false ) ;
00233
00234
00235
00243 CEYLAN_DLL std::string toString( Ceylan::Sint16 value,
00244 bool bitField = false ) ;
00245
00246
00247
00255 CEYLAN_DLL std::string toString( Ceylan::Uint16 value,
00256 bool bitField = false ) ;
00257
00258
00259
00267 CEYLAN_DLL std::string toString( Ceylan::Sint32 value,
00268 bool bitField = false ) ;
00269
00270
00271
00279 CEYLAN_DLL std::string toString( Ceylan::Uint32 value,
00280 bool bitField = false ) ;
00281
00282
00283
00291 CEYLAN_DLL std::string toString( Ceylan::UnsignedLongInteger value,
00292 bool bitField = false ) ;
00293
00294
00295
00303 CEYLAN_DLL std::string toString( Ceylan::SignedLongInteger value,
00304 bool bitField = false ) ;
00305
00306
00307
00309 extern CEYLAN_DLL const std::string HexDigits ;
00310
00311
00312
00327 CEYLAN_DLL std::string toHexString( Ceylan::UnsignedLongInteger value,
00328 bool prefix = true, Ceylan::Uint8 minDigits = 1 ) ;
00329
00330
00331
00332
00333
00334
00335
00348 CEYLAN_DLL std::string toString( Ceylan::Float32 value,
00349 Ceylan::Uint8 precision = Ceylan::DigitOutputPrecision ) ;
00350
00351
00352
00365 CEYLAN_DLL std::string toString( Ceylan::Float64 value,
00366 Ceylan::Uint8 precision = Ceylan::DigitOutputPrecision ) ;
00367
00368
00369
00385 CEYLAN_DLL std::string toString( Ceylan::LongFloat value,
00386 Ceylan::Uint8 precision = Ceylan::DigitOutputPrecision ) ;
00387
00388
00389
00396 CEYLAN_DLL std::string toString( Ceylan::VerbosityLevels level ) ;
00397
00398
00399
00408 CEYLAN_DLL std::string toString(
00409 const std::list<Ceylan::Uint32> & intList ) ;
00410
00411
00412
00421 CEYLAN_DLL std::string toString(
00422 const std::list<const void *> & pointerList ) ;
00423
00424
00425
00437 CEYLAN_DLL std::string toNumericalString( Uint8 number ) ;
00438
00439
00440
00446 CEYLAN_DLL std::string toString( char character ) ;
00447
00448
00449
00462 CEYLAN_DLL int stringToUnsignedLong( const std::string & numericalString ) ;
00463
00464
00466 CEYLAN_DLL void * stringToAddress( const std::string & addressString ) ;
00467
00468
00469 }
00470
00471
00472 #endif // CEYLAN_OPERATORS_H_
00473