-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataTopExport.cpp
45 lines (40 loc) · 1007 Bytes
/
DataTopExport.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/** @file DataTopExport.cpp
*
* @author marco corvi
* @date april 2010
*
* @brief Centerline data export in Survex format
* --------------------------------------------------------
* Copyright This sowftare is distributed under GPL-3.0 or later
* See the file COPYING.
*/
#include <stdio.h>
// #include <sstream>
//
// #include <QFileInfo>
// #include <QFile>
#include "shorthands.h"
#include "DataTopExport.h"
#include "Extend.h"
#include "Flags.h"
bool
saveAsPocketTopo( DataList & data,
const CenterlineInfo & c_info,
PlotStatus * plan,
PlotStatus * extended )
{
const SurveyInfo & info = c_info.surveyInfo;
FILE * fp = fopen( info.exportName.TO_CHAR(), "w" );
if ( fp == NULL ) {
DBG_CHECK("Failed to open file \"%s\"\n", info.exportName.TO_CHAR() );
return false;
}
#ifdef HAS_POCKETTOPO
#include "../PTopo/PTexportDL.impl"
#else
plan = plan;
extended = extended;
#endif
fclose( fp );
return true;
}