| TerraLib 4.1

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

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

Public Member Functions
TeSPRFile Class Reference

Provides support for writing SPRING/ASCII files. More...

`#include <TeSPRFile.h>`

Inheritance diagram for TeSPRFile:

List of all members.

## Public Member Functions

| TeSPRFile (const string &fileName, const char *mode, char separator= ';')
| Contructors.
virtual | ~TeSPRFile ()
| Destructor.
void | writeLinesHeader ()
| base class
void | writeLine3DHeader ()
| LINES 3D - write header.
void | writeCoord (const double &x, const double &y)
| LINES - write Coord.
void | writeLabelHeader (const int &option)
| LABELS - write Header.
void | writeCadastralLabel (const string &geoid, const double &x, const double &y, const string &objectCategory="")
| LABELS - write Value.
void | writeNetworkLabel (const string &geoid, const double &x, const double &y, const string &objectCategory, bool isL=true)
| NETWORK - write labels.
void | writeThematicLabel (const double &x, const double &y, const string &theme)
| LABELS - write Theme.
void | writeThematicPoint (const double &x, const double &y, const string &theme)
| POINTS - write a classified point.
void | writePointsHeader ()
| POINTS - write Header.
void | writePoint3DHeader ()
| POINTS 3D - write Header.
void | writePoint3D (const double &x, const double &y, const double &quote)
| POINTS 3D - write Value.
void | writePoint (TeCoord2D &p)
| POINTS - write Value.
void | writeNetworkHeader ()
| NETWORK - write Header.
void | writeArcHeader (const string &geoid, const double &posImp=0., const double &negImp=0., const double &demand=0.)
| NETWORK - write arc header.
void | writeNetworkLineHeader (int id)
| NETWORK - write Lines Header.
void | writeNetworkLabelHeader ()
| NETWORK - write Label Header.
void | writeTableHeader (const int &dType)
| TABLE - write Header.
void | writeAttributeInfo (TeAttributeList &, const string &, const string &indexName="")
| TABLE - write attribute information.
void | writeTextParameterInfo (const string &name, int w=0)
| TABLE - write text parameter.
void | writeRealParameterInfo (const string &)
| TABLE - write real parameter.
void | writeIntParameterInfo (const string &)
| TABLE - write int parameter.
void | writeGeoId (const string &geoid)
| TABLE - write geoId.
void | writeValue (const string &attrName, TeAttrDataType type)
| TABLE - write attribute name.
void | writeValue (const int &value)
| TABLE - write int value.
void | writeValue (const double &value)
| TABLE - write double value.
void | writeValue (const string &value)
| TABLE - write string.
void | writeSampleHeader ()
| SAMPLE - write Header.
void | writeSample (const string &index, const double &x, const double &y, const string &value)
| SAMPLE - write value.
void | writeSampleQuote (double quote)
| SAMPLE - write quote.
void | writeProjection (TeProjection *)
| INFO - write projection.
void | writeBox (TeBox &)
| INFO - write Box.
void | writeInfoEnd ()
| INFO - write InfoEND.
void | writeEnd ()
| GENERAL - write END.
void | setSeparator (const char &c)
| Sets the separator.
char | separator ()
| Returns the separator.

## Detailed Description

Provides support for writing SPRING/ASCII files.

## Constructor & Destructor Documentation

TeSPRFile::TeSPRFile | ( | const string & | fileName,
|  | const char * | mode,
|  | char | separator = `';'`
| ) |  |

Contructors.

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

Destructor.

## Member Function Documentation

char TeSPRFile::separator | ( |  | ) | `[inline]`

Returns the separator.

void TeSPRFile::setSeparator | ( | const char & | c | ) | `[inline]`

Sets the separator.

void TeSPRFile::writeArcHeader | ( | const string & | geoid,
|  | const double & | posImp = `0.`,
|  | const double & | negImp = `0.`,
|  | const double & | demand = `0.`
| ) |  |

NETWORK - write arc header.

void TeSPRFile::writeAttributeInfo | ( | TeAttributeList & | attList,
|  | const string & | objCategory,
|  | const string & | indexName = `""`
| ) |  |

TABLE - write attribute information.

void TeSPRFile::writeBox | ( | TeBox & | box | ) |

INFO - write Box.

void TeSPRFile::writeCadastralLabel | ( | const string & | geoid,
|  | const double & | x,
|  | const double & | y,
|  | const string & | objectCategory = `""`
| ) |  |

LABELS - write Value.

void TeSPRFile::writeCoord | ( | const double & | x,
|  | const double & | y
| ) |  | `[inline]`

LINES - write Coord.

void TeSPRFile::writeEnd | ( |  | ) | `[inline]`

GENERAL - write END.

void TeSPRFile::writeGeoId | ( | const string & | geoid | ) | `[inline]`

TABLE - write geoId.

void TeSPRFile::writeInfoEnd | ( |  | ) | `[inline]`

INFO - write InfoEND.

void TeSPRFile::writeIntParameterInfo | ( | const string & | name | ) |

TABLE - write int parameter.

void TeSPRFile::writeLabelHeader | ( | const int & | option | ) |

LABELS - write Header.

void TeSPRFile::writeLine3DHeader | ( |  | ) | `[inline]`

LINES 3D - write header.

void TeSPRFile::writeLinesHeader | ( |  | ) |

base class

LINES - write header

void TeSPRFile::writeNetworkHeader | ( |  | ) |

NETWORK - write Header.

void TeSPRFile::writeNetworkLabel | ( | const string & | geoid,
|  | const double & | x,
|  | const double & | y,
|  | const string & | objectCategory,
|  | bool | isL = `true`
| ) |  |

NETWORK - write labels.

void TeSPRFile::writeNetworkLabelHeader | ( |  | ) |

NETWORK - write Label Header.

void TeSPRFile::writeNetworkLineHeader | ( | int | id | ) | `[inline]`

NETWORK - write Lines Header.

void TeSPRFile::writePoint | ( | TeCoord2D & | p | ) | `[inline]`

POINTS - write Value.

void TeSPRFile::writePoint3D | ( | const double & | x,
|  | const double & | y,
|  | const double & | quote
| ) |  | `[inline]`

POINTS 3D - write Value.

void TeSPRFile::writePoint3DHeader | ( |  | ) | `[inline]`

POINTS 3D - write Header.

void TeSPRFile::writePointsHeader | ( |  | ) |

POINTS - write Header.

void TeSPRFile::writeProjection | ( | TeProjection * | proj | ) |

INFO - write projection.

void TeSPRFile::writeRealParameterInfo | ( | const string & | name | ) |

TABLE - write real parameter.

void TeSPRFile::writeSample | ( | const string & | index,
|  | const double & | x,
|  | const double & | y,
|  | const string & | value
| ) |  |

SAMPLE - write value.

void TeSPRFile::writeSampleHeader | ( |  | ) |

SAMPLE - write Header.

void TeSPRFile::writeSampleQuote | ( | double | quote | ) | `[inline]`

SAMPLE - write quote.

void TeSPRFile::writeTableHeader | ( | const int & | dType | ) |

TABLE - write Header.

void TeSPRFile::writeTextParameterInfo | ( | const string & | name,
|  | int | w = `0`
| ) |  |

TABLE - write text parameter.

void TeSPRFile::writeThematicLabel | ( | const double & | x,
|  | const double & | y,
|  | const string & | theme
| ) |  |

LABELS - write Theme.

void TeSPRFile::writeThematicPoint | ( | const double & | x,
|  | const double & | y,
|  | const string & | theme
| ) |  |

POINTS - write a classified point.

void TeSPRFile::writeValue | ( | const int & | value | ) | `[inline]`

TABLE - write int value.

void TeSPRFile::writeValue | ( | const double & | value | ) | `[inline]`

TABLE - write double value.

void TeSPRFile::writeValue | ( | const string & | value | ) | `[inline]`

TABLE - write string.

void TeSPRFile::writeValue | ( | const string & | attrName,
|  | TeAttrDataType | type
| ) |  |

TABLE - write attribute name.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/functions/TeSPRFile.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/functions/TeSPRFile.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines