Skip to content

Commit d7e44d8

Browse files
committed
first compiling
1 parent 656141f commit d7e44d8

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

source/pdal/pdalc_dimtype.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*****************************************************************************/
29-
29+
#define _CRT_SECURE_NO_WARNINGS
3030
#include "pdal/pdalc_dimtype.h"
3131

3232
#include <pdal/DimType.hpp>
3333

34+
35+
3436
namespace pdal
3537
{
3638
namespace capi

source/pdal/pdalc_forward.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,6 @@ using PointView = pdal::PointViewPtr;
6868
using TriangularMesh = pdal::MeshPtr;
6969
using DimTypeList = std::unique_ptr<pdal::DimTypeList>;
7070

71-
struct Pipeline {
72-
public:
73-
74-
std::unique_ptr<pdal::PipelineManager> manager = std::make_unique<pdal::PipelineManager>();
75-
76-
bool m_executed = false;
77-
std::stringstream logStream;
78-
pdal::LogLevel logLevel;
79-
};
8071
}
8172
}
8273

source/pdal/pdalc_pipeline.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,19 @@ namespace pdal
4444
{
4545
namespace capi
4646
{
47+
4748
extern "C"
4849
{
50+
struct Pipeline {
51+
public:
52+
53+
std::unique_ptr<pdal::PipelineManager> manager = std::make_unique<pdal::PipelineManager>();
54+
55+
bool m_executed = false;
56+
std::stringstream logStream;
57+
pdal::LogLevel logLevel;
58+
};
59+
4960
PDALPipelinePtr PDALCreatePipeline(const char* json)
5061
{
5162
PDALPipelinePtr pipeline = new Pipeline();

source/pdal/pdalc_pipeline.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
#include "pdalc_forward.h"
3434

35+
3536
/**
3637
* @file pdalc_pipeline.h
3738
* Functions to launch and inspect the results of a PDAL pipeline.
@@ -45,6 +46,7 @@ namespace capi
4546
{
4647
extern "C"
4748
{
49+
4850
#else
4951
#include <stdbool.h> // for bool
5052
#include <stddef.h> // for size_t
@@ -157,9 +159,6 @@ PDALC_API PDALPointViewIteratorPtr PDALGetPointViews(PDALPipelinePtr pipeline);
157159
#ifdef __cplusplus
158160

159161
} /* extern C */
160-
161-
162-
163162
} /* capi*/
164163
} /* pdal*/
165164
#endif /* _cplusplus */

source/pdal/pdalc_pointview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*****************************************************************************/
29-
29+
#define _CRT_SECURE_NO_WARNINGS
3030
#include "pdalc_pointview.h"
3131

3232
#include <pdal/PointView.hpp>

0 commit comments

Comments
 (0)