Object storing a dbf table definition (for shape files) More...

#include "IShapeTableDefinition.hpp"

+ Inheritance diagram for IShapeTableDefinition:

Public Member Functions

virtual unsigned columns () const =0
 number of attributes/columns
virtual const char * name (unsigned index) const =0
 get name of attribute 'index'
virtual ColumnType::Type type (unsigned index) const =0
 get type of attribute 'index'
virtual unsigned width (unsigned index) const =0
 length of string or number of digits for real and integeral number types
virtual unsigned decimales (unsigned index) const =0
 number of decimal places (only relevant for type DM::ColumnType::double_)
- Public Member Functions inherited from ObjectBase
virtual void Delete ()

Static Public Member Functions

static IShapeTableDefinitionNew (const AddInfoLayoutHandle &layout)
 create a dbf table definition based on a add info layout
static IShapeTableDefinitionNew (unsigned count, const char **names, const ColumnType::Type *types, const unsigned *widths, const unsigned *decimals)
static void translate (ColumnSemantic::Type sem, ColumnType::Type &dbfType, unsigned &dbfWidth, unsigned &dbfDecimals)
static void translate (ColumnType::Type ngType, unsigned size, ColumnType::Type &dbfType, unsigned &dbfWidth, unsigned &dbfDecimals)

Detailed Description

Object storing a dbf table definition (for shape files)

Member Function Documentation

virtual ColumnType::Type type ( unsigned  index) const
pure virtual

get type of attribute 'index'

a shape file can contain following types: