[Liblas-commits] libpc: you can't forward declare enums

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Mar 1 09:57:46 EST 2011


details:   http://hg.liblas.orglibpc/rev/4cd40000c0de
changeset: 131:4cd40000c0de
user:      Howard Butler <hobu.inc at gmail.com>
date:      Tue Mar 01 08:57:29 2011 -0600
description:
you can't forward declare enums
Subject: libpc: handle liblas::ePointFormatUnknown

details:   http://hg.liblas.orglibpc/rev/4f0309a45e4e
changeset: 132:4f0309a45e4e
user:      Howard Butler <hobu.inc at gmail.com>
date:      Tue Mar 01 08:57:41 2011 -0600
description:
handle liblas::ePointFormatUnknown

diffstat:

 src/drivers/liblas/reader.cpp |  2 ++
 src/drivers/liblas/reader.hpp |  4 +++-
 src/drivers/liblas/writer.cpp |  2 ++
 3 files changed, 7 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r c1b294fbb611 -r 4f0309a45e4e src/drivers/liblas/reader.cpp
--- a/src/drivers/liblas/reader.cpp	Mon Feb 28 17:28:52 2011 -0800
+++ b/src/drivers/liblas/reader.cpp	Tue Mar 01 08:57:41 2011 -0600
@@ -132,6 +132,8 @@
         m_hasTimeData = true;
         m_hasWaveData = true;
         break;
+    case liblas::ePointFormatUnknown:
+        throw not_yet_implemented("Unknown point format encountered");
     }
 
     if (m_hasWaveData)
diff -r c1b294fbb611 -r 4f0309a45e4e src/drivers/liblas/reader.hpp
--- a/src/drivers/liblas/reader.hpp	Mon Feb 28 17:28:52 2011 -0800
+++ b/src/drivers/liblas/reader.hpp	Tue Mar 01 08:57:41 2011 -0600
@@ -41,11 +41,13 @@
 
 #include "header.hpp"
 
+#include <liblas/version.hpp>
+
 // fwd decls
 namespace liblas
 {
     class Reader;
-    enum PointFormatName;
+    // enum PointFormatName;
 }
 
 
diff -r c1b294fbb611 -r 4f0309a45e4e src/drivers/liblas/writer.cpp
--- a/src/drivers/liblas/writer.cpp	Mon Feb 28 17:28:52 2011 -0800
+++ b/src/drivers/liblas/writer.cpp	Tue Mar 01 08:57:41 2011 -0600
@@ -187,6 +187,8 @@
         hasTimeData = true;
         hasWaveData = true;
         break;
+    case liblas::ePointFormatUnknown:
+        throw not_yet_implemented("Unknown point format encountered");
     }
 
     if (hasWaveData)


More information about the Liblas-commits mailing list