[Liblas-commits] libpc: more OCI scaffolding
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Mar 2 13:57:02 EST 2011
details: http://hg.liblas.orglibpc/rev/11e7f5485f7e
changeset: 157:11e7f5485f7e
user: Howard Butler <hobu.inc at gmail.com>
date: Wed Mar 02 12:56:55 2011 -0600
description:
more OCI scaffolding
diffstat:
src/drivers/oci/CMakeLists.txt | 4 +
src/drivers/oci/block.cpp | 53 +++++++++
src/drivers/oci/block.hpp | 66 ++++++++++++
src/drivers/oci/header.cpp | 66 ++++++++++++
src/drivers/oci/header.hpp | 64 ++++++++++++
src/drivers/oci/writer.cpp | 218 +++++++++++++++++++++++++++++++++++++++++
src/drivers/oci/writer.hpp | 72 +++++++++++++
7 files changed, 543 insertions(+), 0 deletions(-)
diffs (truncated from 579 to 300 lines):
diff -r 51930cb03047 -r 11e7f5485f7e src/drivers/oci/CMakeLists.txt
--- a/src/drivers/oci/CMakeLists.txt Wed Mar 02 10:58:47 2011 -0600
+++ b/src/drivers/oci/CMakeLists.txt Wed Mar 02 12:56:55 2011 -0600
@@ -9,6 +9,10 @@
set (SOURCES
oci_wrapper.cpp
+ block.cpp
+ header.cpp
+ writer.cpp
+
)
SET(APPS_CPP_DEPENDENCIES "${APPS_CPP_DEPENDENCIES};${ORACLE_LIBRARY}" CACHE INTERNAL "source files for foo")
diff -r 51930cb03047 -r 11e7f5485f7e src/drivers/oci/block.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/drivers/oci/block.cpp Wed Mar 02 12:56:55 2011 -0600
@@ -0,0 +1,53 @@
+/******************************************************************************
+* 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 "block.hpp"
+
+
+namespace libpc { namespace driver { namespace oci {
+
+
+Block::Block(const PointData& data)
+ : m_data(data)
+{
+}
+
+
+
+
+
+
+
+
+}}} // namespace libpc::driver::oci
\ No newline at end of file
diff -r 51930cb03047 -r 11e7f5485f7e src/drivers/oci/block.hpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/drivers/oci/block.hpp Wed Mar 02 12:56:55 2011 -0600
@@ -0,0 +1,66 @@
+/******************************************************************************
+* 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_DRIVER_OCI_BLOCK_HPP
+#define INCLUDED_DRIVER_OCI_BLOCK_HPP
+
+
+#include "libpc/PointData.hpp"
+
+namespace libpc { namespace driver { namespace oci {
+
+class LIBPC_DLL Block
+{
+public:
+ Block( const PointData& data);
+
+
+ bool is3D() const { return m_3d; }
+
+private:
+ Block& operator=(const Block&); // nope
+ Block(const Block&); // nope
+
+ PointData const& m_data;
+
+ bool m_3d;
+
+};
+
+
+}}} // namespace libpc::driver::oci
+
+LIBPC_DLL std::ostream& operator<<(std::ostream& ostr, const libpc::driver::oci::Block&);
+
+#endif
diff -r 51930cb03047 -r 11e7f5485f7e src/drivers/oci/header.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/drivers/oci/header.cpp Wed Mar 02 12:56:55 2011 -0600
@@ -0,0 +1,66 @@
+/******************************************************************************
+* 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 "header.hpp"
+
+#include <boost/concept_check.hpp>
+#include <boost/uuid/uuid_io.hpp>
+
+namespace libpc { namespace driver { namespace oci {
+
+
+
+Header::Header()
+ : libpc::Header()
+{
+ return;
+}
+
+
+
+std::ostream& operator<<(std::ostream& ostr, const Header& header)
+{
+ ostr << (const libpc::Header&)header;
+
+ ostr << " oci::Header" << std::endl;
+
+ return ostr;
+}
+
+
+
+
+
+
+}}} // namespace libpc::driver::oci
\ No newline at end of file
diff -r 51930cb03047 -r 11e7f5485f7e src/drivers/oci/header.hpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/drivers/oci/header.hpp Wed Mar 02 12:56:55 2011 -0600
@@ -0,0 +1,64 @@
+/******************************************************************************
+* 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_DRIVER_OCI_HEADER_HPP
+#define INCLUDED_DRIVER_OCI_HEADER_HPP
+
+#include <iostream>
+#include <string>
+
+#include <boost/cstdint.hpp>
+#include <boost/uuid/uuid.hpp>
+
+#include "libpc/Header.hpp"
+
+namespace libpc { namespace driver { namespace oci {
+
+
+class LIBPC_DLL Header : public libpc::Header
+{
+public:
+ Header();
+
+private:
+ Header& operator=(const Header&); // nope
+ Header(const Header&); // nope
+};
+
+}}} // namespace libpc::driver::oci
+
+LIBPC_DLL std::ostream& operator<<(std::ostream& ostr, const libpc::driver::oci::Header&);
+
+
+#endif
diff -r 51930cb03047 -r 11e7f5485f7e src/drivers/oci/writer.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/drivers/oci/writer.cpp Wed Mar 02 12:56:55 2011 -0600
@@ -0,0 +1,218 @@
+/******************************************************************************
+* 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.
More information about the Liblas-commits
mailing list