comparison OrthancServer/DatabaseWrapper.cpp @ 739:696dbb4fd390

api uniformization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Mar 2014 09:58:20 +0100
parents f9052558eada
children 4439091f50d3
comparison
equal deleted inserted replaced
738:c60743fadd4e 739:696dbb4fd390
386 target = s.ColumnString(0); 386 target = s.ColumnString(0);
387 return true; 387 return true;
388 } 388 }
389 } 389 }
390 390
391 bool DatabaseWrapper::ListAvailableMetadata(std::list<MetadataType>& target, 391 void DatabaseWrapper::ListAvailableMetadata(std::list<MetadataType>& target,
392 int64_t id) 392 int64_t id)
393 { 393 {
394 target.clear(); 394 target.clear();
395 395
396 SQLite::Statement s(db_, SQLITE_FROM_HERE, "SELECT type FROM Metadata WHERE id=?"); 396 SQLite::Statement s(db_, SQLITE_FROM_HERE, "SELECT type FROM Metadata WHERE id=?");
398 398
399 while (s.Step()) 399 while (s.Step())
400 { 400 {
401 target.push_back(static_cast<MetadataType>(s.ColumnInt(0))); 401 target.push_back(static_cast<MetadataType>(s.ColumnInt(0)));
402 } 402 }
403
404 return true;
405 } 403 }
406 404
407 405
408 std::string DatabaseWrapper::GetMetadata(int64_t id, 406 std::string DatabaseWrapper::GetMetadata(int64_t id,
409 MetadataType type, 407 MetadataType type,