~ubuntu-branches/debian/jessie/dxflib/jessie

« back to all changes in this revision

Viewing changes to src/dl_dxf.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2013-12-13 16:41:48 UTC
  • mfrom: (8.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20131213164148-m20ph2ja1d4vlxv4
Tags: 2.5.0.0-2
Merge from experimental to unstable. (Closes: #731577)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/****************************************************************************
2
 
** $Id: dl_dxf.h 8865 2008-02-04 18:54:02Z andrew $
3
 
**
4
 
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
 
2
** Copyright (C) 2001-2011 RibbonSoft. All rights reserved.
5
3
**
6
4
** This file is part of the dxflib project.
7
5
**
53
51
class DL_WriterA;
54
52
 
55
53
 
56
 
#define DL_VERSION     "2.2.0.0"
 
54
#define DL_VERSION     "2.5.0.0"
57
55
 
58
56
#define DL_UNKNOWN               0
59
57
#define DL_LAYER                10
186
184
        int  stringToInt(const char* s, bool* ok=NULL); 
187
185
 
188
186
    DL_WriterA* out(const char* file,
189
 
                    DL_Codes::version version=VER_2000);
 
187
                    DL_Codes::version version=DL_VERSION_2000);
190
188
 
191
189
    void writeHeader(DL_WriterA& dw);
192
190
 
342
340
    static int toInt(const char* value, int def=0) {
343
341
        if (value!=NULL && value[0] != '\0') {
344
342
            return atoi(value);
345
 
        } else {
346
 
            return def;
347
343
        }
 
344
 
 
345
        return def;
348
346
    }
349
347
    /**
350
348
     * Converts the given string into a string or returns the given