IShapeTableDefinition Class Referenceabstract

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 (unsigned index) const =0
 get type of attribute 'index' More...
 
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 *types, const unsigned *widths, const unsigned *decimals)
 
static void translate (ColumnSemantic sem, ColumnType &dbfType, unsigned &dbfWidth, unsigned &dbfDecimals)
 
static void translate (ColumnType ngType, unsigned size, ColumnType &dbfType, unsigned &dbfWidth, unsigned &dbfDecimals)
 

Detailed Description

Object storing a dbf table definition (for shape files)

Member Function Documentation

◆ type()

virtual ColumnType type ( unsigned  index) const
pure virtual

get type of attribute 'index'

a shape file can contain following types: