glom r1951 - trunk/glom/libglom



Author: murrayc
Date: Tue Mar  3 22:30:01 2009
New Revision: 1951
URL: http://svn.gnome.org/viewvc/glom?rev=1951&view=rev

Log:
Added missing file.

Added:
   trunk/glom/libglom/test_document.cc

Added: trunk/glom/libglom/test_document.cc
==============================================================================
--- (empty file)
+++ trunk/glom/libglom/test_document.cc	Tue Mar  3 22:30:01 2009
@@ -0,0 +1,35 @@
+/* Glom
+ *
+ * Copyright (C) 2009 Murray Cumming
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include <libglom/document/document_glom.h>
+
+
+int
+main()
+{
+  Gnome::Gda::init();
+
+  Glom::Document_Glom document;
+  document.set_file_uri("../../examples/example_music_collection.glom");
+  bool test = document.load();
+  std::cout << "Document load result=" << test << std::endl;
+
+  return 0;
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]