diff OrthancServer/DatabaseWrapper.cpp @ 193:a1b9d1e1497b

failed attempt to compile with linux standard base
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Nov 2012 14:02:28 +0100
parents c56dc32266e0
children 530a25320461
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.cpp	Tue Nov 13 11:29:43 2012 +0100
+++ b/OrthancServer/DatabaseWrapper.cpp	Tue Nov 13 14:02:28 2012 +0100
@@ -240,6 +240,20 @@
     s.Run();
   }
 
+  void DatabaseWrapper::GetChildren(Json::Value& childrenPublicIds,
+                                    int64_t id)
+  {
+    SQLite::Statement s(db_, SQLITE_FROM_HERE, "SELECT publicId FROM Resources WHERE parentId=?");
+    s.BindInt(0, id);
+
+    childrenPublicIds = Json::arrayValue;
+    while (s.Step())
+    {
+      childrenPublicIds.append(s.ColumnString(0));
+    }
+  }
+
+
   void DatabaseWrapper::DeleteResource(int64_t id)
   {
     signalRemainingAncestor_->Reset();