comparison Core/SQLite/Statement.cpp @ 759:8cfc6119a5bd dicom-rt

integration mainline -> dicom-rt
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Apr 2014 16:04:55 +0200
parents 96a2d2da0fee
children a811bdf8b8eb
comparison
equal deleted inserted replaced
605:b82292ba2083 759:8cfc6119a5bd
1 /** 1 /**
2 * Orthanc - A Lightweight, RESTful DICOM Store 2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012-2013 Medical Physics Department, CHU of Liege, 3 * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege,
4 * Belgium 4 * Belgium
5 * 5 *
6 * Copyright (c) 2012 The Chromium Authors. All rights reserved. 6 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
293 return false; 293 return false;
294 val->assign(reinterpret_cast<const char16*>(data), len); 294 val->assign(reinterpret_cast<const char16*>(data), len);
295 return true; 295 return true;
296 }*/ 296 }*/
297 297
298 bool Statement::ColumnBlobAsVector(int col, std::vector<char>* val) const 298 /*bool Statement::ColumnBlobAsVector(int col, std::vector<char>* val) const
299 { 299 {
300 val->clear(); 300 val->clear();
301 301
302 const void* data = sqlite3_column_blob(GetStatement(), col); 302 const void* data = sqlite3_column_blob(GetStatement(), col);
303 int len = sqlite3_column_bytes(GetStatement(), col); 303 int len = sqlite3_column_bytes(GetStatement(), col);
304 if (data && len > 0) { 304 if (data && len > 0) {
305 val->resize(len); 305 val->resize(len);
306 memcpy(&(*val)[0], data, len); 306 memcpy(&(*val)[0], data, len);
307 } 307 }
308 return true; 308 return true;
309 } 309 }*/
310 310
311 bool Statement::ColumnBlobAsVector( 311 /*bool Statement::ColumnBlobAsVector(
312 int col, 312 int col,
313 std::vector<unsigned char>* val) const 313 std::vector<unsigned char>* val) const
314 { 314 {
315 return ColumnBlobAsVector(col, reinterpret_cast< std::vector<char>* >(val)); 315 return ColumnBlobAsVector(col, reinterpret_cast< std::vector<char>* >(val));
316 } 316 }*/
317 317
318 } 318 }
319 } 319 }