FXStream& operator<< ( FXStream s,
const DataContainer i 
) [friend]

Definition at line 137 of file TnFXSQLDB_ipc.h.

00138         {
00139             s << i.type << i.data.length;
00140             switch(i.type)
00141             {
00142             case TnFXSQLDB::Null:
00143                 break;
00144             case TnFXSQLDB::VarChar:
00145             case TnFXSQLDB::Char:
00146             case TnFXSQLDB::WVarChar:
00147             case TnFXSQLDB::WChar:
00148                 s.writeRawBytes(i.data.text, i.data.length+1);
00149                 break;
00150 
00151             case TnFXSQLDB::TinyInt:
00152                 s << i.data.tinyint;
00153                 break;
00154             case TnFXSQLDB::SmallInt:
00155                 s << i.data.smallint;
00156                 break;
00157             case TnFXSQLDB::Integer:
00158                 s << i.data.integer;
00159                 break;
00160             case TnFXSQLDB::BigInt:
00161             case TnFXSQLDB::Decimal:
00162             case TnFXSQLDB::Numeric:
00163                 s << i.data.bigint;
00164                 break;
00165 
00166             case TnFXSQLDB::Real:
00167                 s << i.data.real;
00168                 break;
00169             case TnFXSQLDB::Double:
00170             case TnFXSQLDB::Float:
00171                 s << i.data.double_;
00172                 break;
00173 
00174             case TnFXSQLDB::Timestamp:
00175             case TnFXSQLDB::Date:
00176             case TnFXSQLDB::Time:
00177                 s << *(FXTime *)(void *) i.data.timestamp;
00178                 break;
00179 
00180             case TnFXSQLDB::BLOB:
00181                 {
00182                     s.writeRawBytes((const char *) i.data.blob, i.data.length);
00183                     break;
00184                 }
00185             }
00186             return s;
00187         }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:38:05 2009 for TnFOX by doxygen v1.4.7