[Liblas-commits] hg-main-tree: scaffolding for libxml2-based schema reader/writer...

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Apr 15 16:37:12 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/f16753970cbd
changeset: 571:f16753970cbd
user:      Howard Butler <hobu.inc at gmail.com>
date:      Fri Apr 15 15:37:04 2011 -0500
description:
scaffolding for libxml2-based schema reader/writer for OCI driver

diffstat:

 include/libpc/drivers/oci/Schema.hpp |  72 ++++++++++++++++++++++++++++++++++++
 src/CMakeLists.txt                   |   5 ++-
 src/drivers/oci/Schema.cpp           |  61 ++++++++++++++++++++++++++++++
 3 files changed, 137 insertions(+), 1 deletions(-)

diffs (170 lines):

diff -r a2c06e450ba2 -r f16753970cbd include/libpc/drivers/oci/Schema.hpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/libpc/drivers/oci/Schema.hpp	Fri Apr 15 15:37:04 2011 -0500
@@ -0,0 +1,72 @@
+/******************************************************************************
+* Copyright (c) 2011, Howard Butler, hobu.inc at gmail.com
+*
+* All rights reserved.
+*
+* Redistribution and use in source and binary forms, with or without
+* modification, are permitted provided that the following
+* conditions are met:
+*
+*     * Redistributions of source code must retain the above copyright
+*       notice, this list of conditions and the following disclaimer.
+*     * Redistributions in binary form must reproduce the above copyright
+*       notice, this list of conditions and the following disclaimer in
+*       the documentation and/or other materials provided
+*       with the distribution.
+*     * Neither the name of Hobu, Inc. or Flaxen Geo Consulting nor the
+*       names of its contributors may be used to endorse or promote
+*       products derived from this software without specific prior
+*       written permission.
+*
+* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+* OF SUCH DAMAGE.
+****************************************************************************/
+
+#ifndef INCLUDED_DRIVERS_OCI_SCHEMA_HPP
+#define INCLUDED_DRIVERS_OCI_SCHEMA_HPP
+
+#include <libpc/libpc.hpp>
+
+#include <libpc/drivers/oci/Common.hpp>
+#include <libpc/drivers/oci/Reader.hpp>
+
+#include <string>
+
+#include <libxml/parser.h>
+#include <libxml/xmlschemas.h>
+
+
+
+namespace libpc { namespace drivers { namespace oci {
+
+
+class Schema
+{
+public:
+    Schema();
+    ~Schema();
+
+
+private:
+    
+    Schema& operator=(const Schema&); // not implemented
+    Schema(const Schema&); // not implemented;
+    
+
+};
+
+
+
+} } } // namespaces
+
+#endif
diff -r a2c06e450ba2 -r f16753970cbd src/CMakeLists.txt
--- a/src/CMakeLists.txt	Fri Apr 15 14:49:00 2011 -0500
+++ b/src/CMakeLists.txt	Fri Apr 15 15:37:04 2011 -0500
@@ -175,6 +175,7 @@
   ${LIBPC_HEADERS_DIR}/drivers/oci/Iterator.hpp
   ${LIBPC_HEADERS_DIR}/drivers/oci/oci_wrapper.h
   ${LIBPC_HEADERS_DIR}/drivers/oci/Common.hpp
+  ${LIBPC_HEADERS_DIR}/drivers/oci/Schema.hpp
 )
 
 set (LIBPC_DRIVERS_OCI_CPP 
@@ -183,6 +184,7 @@
   ./drivers/oci/Reader.cpp
   ./drivers/oci/Iterator.cpp
   ./drivers/oci/Writer.cpp
+  ./drivers/oci/Schema.cpp
 )
    
 FOREACH(file ${LIBPC_DRIVERS_OCI_HPP})
@@ -348,7 +350,8 @@
   ${GEOTIFF_LIBRARY}
   ${GDAL_LIBRARY}
   ${LASZIP_LIBRARY}
-  ${Boost_LIBRARIES})
+  ${Boost_LIBRARIES}
+  ${LIBXML2_LIBRARIES})
 
 
 set_target_properties(${LIBPC_LIB_NAME}
diff -r a2c06e450ba2 -r f16753970cbd src/drivers/oci/Schema.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/drivers/oci/Schema.cpp	Fri Apr 15 15:37:04 2011 -0500
@@ -0,0 +1,61 @@
+/******************************************************************************
+* Copyright (c) 2011, Howard Butler, hobu.inc at gmail.com
+*
+* All rights reserved.
+*
+* Redistribution and use in source and binary forms, with or without
+* modification, are permitted provided that the following
+* conditions are met:
+*
+*     * Redistributions of source code must retain the above copyright
+*       notice, this list of conditions and the following disclaimer.
+*     * Redistributions in binary form must reproduce the above copyright
+*       notice, this list of conditions and the following disclaimer in
+*       the documentation and/or other materials provided
+*       with the distribution.
+*     * Neither the name of Hobu, Inc. or Flaxen Geo Consulting nor the
+*       names of its contributors may be used to endorse or promote
+*       products derived from this software without specific prior
+*       written permission.
+*
+* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+* OF SUCH DAMAGE.
+****************************************************************************/
+
+#include <libpc/drivers/oci/Schema.hpp>
+#include <libpc/exceptions.hpp>
+#include <libpc/Utils.hpp>
+
+#include <sstream>
+#include <map>
+#include <algorithm>
+
+
+namespace libpc { namespace drivers { namespace oci {
+
+Schema::Schema()
+
+{
+
+    LIBXML_TEST_VERSION
+    return;
+}
+
+
+Schema::~Schema()
+{
+}
+
+
+
+} } } // namespaces


More information about the Liblas-commits mailing list