7219fadffa
read/write CAD (DWG/DXF/DXFB) files. It was designed to have a uniformal API to work with any CAD files. It has a base class - CADFile. Inheriting this class it's possible to create a driver for any CAD format, all you need to do - is to overwrite interface functions like GetGeometry(index), and others. Now it has an implementation for DWG2000 (R15), but only for read. Library comes with cadinfo utility, which prints out everything library can get from file - header variables, CAD custom classes, presented layers and geometries with their attributes. WWW: https://trac.osgeo.org/gdal/wiki/DWG_driver PR: 212129 Submitted by: lbartoletti@tuxfamily.org
25 lines
720 B
C++
25 lines
720 B
C++
--- lib/cadheader.h.orig 2016-08-24 13:25:41 UTC
|
|
+++ lib/cadheader.h
|
|
@@ -35,6 +35,7 @@
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
+#include <ctime>
|
|
|
|
class OCAD_EXTERN CADHandle final
|
|
{
|
|
@@ -64,12 +65,13 @@ public:
|
|
CADVariant();
|
|
CADVariant( const char * val );
|
|
CADVariant( int val );
|
|
+ CADVariant( long val );
|
|
CADVariant( short val );
|
|
CADVariant( double val );
|
|
CADVariant( double x, double y, double z = 0 );
|
|
CADVariant( const CADHandle& val );
|
|
CADVariant( const std::string& val );
|
|
- CADVariant( time_t val );
|
|
+ CADVariant( time_t val, bool bIsTime );
|
|
public:
|
|
CADVariant( const CADVariant& orig );
|
|
CADVariant& operator=( const CADVariant& orig );
|