| TerraLib 4.1

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

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions
DL_WriterA Class Reference

`#include <dl_writer_ascii.h>`

Inheritance diagram for DL_WriterA:

List of all members.

## Public Member Functions

| DL_WriterA (const char *fname, DL_Codes::version version=VER_2000)
virtual | ~DL_WriterA ()
bool | openFailed () const
void | close () const
void | dxfReal (int gc, double value) const
void | dxfInt (int gc, int value) const
void | dxfHex (int gc, int value) const
void | dxfString (int gc, const char *value) const
void | dxfString (int gc, const string &value) const

## Static Public Member Functions

static void | strReplace (char *str, char src, char dest)

## Detailed Description

Implements functions defined in DL_Writer for writing low level DXF constructs to an ASCII format DXF file.

fname File name of the file to be created. version DXF version. Defaults to VER_2002.

Todo:
  What if `fname` is NULL? Or `fname` can't be opened for another reason?

## Constructor & Destructor Documentation

DL_WriterA::DL_WriterA | ( | const char * | fname,
|  | DL_Codes::version | version = `VER_2000`
| ) |  | `[inline]`

virtual DL_WriterA::~DL_WriterA | ( |  | ) | `[inline, virtual]`

## Member Function Documentation

void DL_WriterA::close | ( |  | ) | const

Closes the output file.

void DL_WriterA::dxfHex | ( | int | gc,
|  | int | value
| ) |  | const`[virtual]`

Writes a hex int variable to the DXF file.

Parameters:

  gc | Group code.
  value | Int value

Implements DL_Writer.

void DL_WriterA::dxfInt | ( | int | gc,
|  | int | value
| ) |  | const`[virtual]`

Writes an int variable to the DXF file.

Parameters:

  gc | Group code.
  value | Int value

Implements DL_Writer.

void DL_WriterA::dxfReal | ( | int | gc,
|  | double | value
| ) |  | const`[virtual]`

Writes a real (double) variable to the DXF file.

Parameters:

  gc | Group code.
  value | Double value

Implements DL_Writer.

void DL_WriterA::dxfString | ( | int | gc,
|  | const string & | value
| ) |  | const`[virtual]`

Must be overwritten by the implementing class to write a string to the file.

Parameters:

  gc | Group code.
  value | The string.

Implements DL_Writer.

void DL_WriterA::dxfString | ( | int | gc,
|  | const char * | value
| ) |  | const`[virtual]`

Writes a string variable to the DXF file.

Parameters:

  gc | Group code.
  value | String

Implements DL_Writer.

bool DL_WriterA::openFailed | ( |  | ) | const

Return values:

  true | Opening file has failed.
  false | Otherwise.

void DL_WriterA::strReplace | ( | char * | str,
|  | char | src,
|  | char | dest
| ) |  | `[static]`

Replaces every occurence of src with dest in the null terminated str.

The documentation for this class was generated from the following files:

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/dxflib/dl_writer_ascii.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/dxflib/dl_writer_ascii.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines