1
/***************************************************************************
2
qgsfield.cpp - Describes a field in a layer or table
3
--------------------------------------
5
Copyright : (C) 2004 by Gary E.Sherman
6
email : sherman at mrcc.com
8
***************************************************************************
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
15
***************************************************************************/
16
/* $Id: qgsfield.cpp,v 1.6.6.1 2005/07/23 03:22:18 timlinux Exp $ */
24
static const char * const ident_ =
25
"$Id: qgsfield.cpp,v 1.6.6.1 2005/07/23 03:22:18 timlinux Exp $";
28
QgsField::QgsField(QString nam, QString typ, int len, int prec)
29
:mName(nam), mType(typ), mLength(len), mPrecision(prec)
31
// lower case the field name since some stores use upper case
33
mName = mName.lower();
40
QString const & QgsField::name() const
45
QString const & QgsField::type() const
50
int QgsField::length() const
55
int QgsField::precision() const
60
void QgsField::setName(QString const & nam)
65
void QgsField::setType(QString const & typ)
69
void QgsField::setLength(int len)
73
void QgsField::setPrecision(int prec)