| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/dxflib/dl_writer_ascii.h
Go to the documentation of this file.

    00001 /****************************************************************************
    00002 ** $Id: dl_writer_ascii.h 8171 2009-12-11 12:31:36Z fredbed $
    00003 **
    00004 ** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
    00005 ** Copyright (C) 2001 Robert J. Campbell Jr.
    00006 **
    00007 ** This file is part of the dxflib project.
    00008 **
    00009 ** This file may be distributed and/or modified under the terms of the
    00010 ** GNU General Public License version 2 as published by the Free Software
    00011 ** Foundation and appearing in the file LICENSE.GPL included in the
    00012 ** packaging of this file.
    00013 **
    00014 ** Licensees holding valid dxflib Professional Edition licenses may use
    00015 ** this file in accordance with the dxflib Commercial License
    00016 ** Agreement provided with the Software.
    00017 **
    00018 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    00019 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    00020 **
    00021 ** See http://www.ribbonsoft.com for further details.
    00022 **
    00023 ** Contact info@ribbonsoft.com if any conditions of this licensing are
    00024 ** not clear to you.
    00025 **
    00026 **********************************************************************/
    00027
    00028 #ifndef DL_WRITER_ASCII_H
    00029 #define DL_WRITER_ASCII_H
    00030
    00031 #if _MSC_VER > 1000
    00032 #pragma once
    00033 #endif // _MSC_VER > 1000
    00034
    00035 #include "dl_writer.h"
    00036 #include <fstream>
    00037 #include <string>
    00038 using std::string;
    00039
    00050 class DL_WriterA : public DL_Writer {
    00051 public:
    00052     DL_WriterA(const char* fname, DL_Codes::version version=VER_2000)
    00053             : DL_Writer(version), m_ofile(fname) {}
    00054     virtual ~DL_WriterA() {}
    00055
    00056            bool openFailed() const;
    00057     void close() const;
    00058     void dxfReal(int gc, double value) const;
    00059     void dxfInt(int gc, int value) const;
    00060     void dxfHex(int gc, int value) const;
    00061     void dxfString(int gc, const char* value) const;
    00062     void dxfString(int gc, const string& value) const;
    00063
    00064            static void strReplace(char* str, char src, char dest);
    00065
    00066 private:
    00070     mutable std::ofstream m_ofile;
    00071
    00072 };
    00073
    00074 #endif
    00075

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines