| 
    GDAL
    
   | 
 
Field value. More...
#include <ogr_feature.h>
Public Member Functions | |
| FieldValue & | operator= (const FieldValue &oOther) | 
| Set a field value from another one.  | |
| FieldValue & | operator= (int nVal) | 
| Set an integer value to the field.  | |
| FieldValue & | operator= (GIntBig nVal) | 
| Set an integer value to the field.  | |
| FieldValue & | operator= (double dfVal) | 
| Set a real value to the field.  | |
| FieldValue & | operator= (const char *pszVal) | 
| Set a string value to the field.  | |
| FieldValue & | operator= (const std::string &osVal) | 
| Set a string value to the field.  | |
| FieldValue & | operator= (const std::vector< int > &oArray) | 
| Set an array of integer to the field.  | |
| FieldValue & | operator= (const std::vector< GIntBig > &oArray) | 
| Set an array of big integer to the field.  | |
| FieldValue & | operator= (const std::vector< double > &oArray) | 
| Set an array of double to the field.  | |
| FieldValue & | operator= (const std::vector< std::string > &oArray) | 
| Set an array of strings to the field.  | |
| FieldValue & | operator= (CSLConstList papszValues) | 
| Set an array of strings to the field.  | |
| void | SetNull () | 
| Set a null value to the field.  | |
| void | clear () | 
| Unset the field.  | |
| void | Unset () | 
| Unset the field.  | |
| void | SetDateTime (int nYear, int nMonth, int nDay, int nHour=0, int nMinute=0, float fSecond=0.f, int nTZFlag=0) | 
| Set date time value/.  | |
| int | GetIndex () const | 
| Return field index.  | |
| const OGRFieldDefn * | GetDefn () const | 
| Return field definition.  | |
| const char * | GetName () const | 
| Return field name.  | |
| OGRFieldType | GetType () const | 
| Return field type.  | |
| OGRFieldSubType | GetSubType () const | 
| Return field subtype.  | |
| bool | empty () const | 
| Return whether the field value is unset/empty.  | |
| bool | IsUnset () const | 
| Return whether the field value is unset/empty.  | |
| bool | IsNull () const | 
| Return whether the field value is null.  | |
| const OGRField * | GetRawValue () const | 
| Return the raw field value.  | |
| int | GetInteger () const | 
| Return the integer value.  More... | |
| GIntBig | GetInteger64 () const | 
| Return the 64-bit integer value.  More... | |
| double | GetDouble () const | 
| Return the double value.  More... | |
| const char * | GetString () const | 
| Return the string value.  More... | |
| bool | GetDateTime (int *pnYear, int *pnMonth, int *pnDay, int *pnHour, int *pnMinute, float *pfSecond, int *pnTZFlag) const | 
| Return the date/time/datetime value.  | |
| operator int () const | |
| Return the field value as integer, with potential conversion.  | |
| operator GIntBig () const | |
| Return the field value as 64-bit integer, with potential conversion.  | |
| operator double () const | |
| Return the field value as double, with potential conversion.  | |
| operator const char * () const | |
| Return the field value as string, with potential conversion.  | |
| operator const std::vector< int > & () const | |
| Return the field value as integer list, with potential conversion.  | |
| operator const std::vector< GIntBig > & () const | |
| Return the field value as 64-bit integer list, with potential conversion.  | |
| operator const std::vector< double > & () const | |
| Return the field value as double list, with potential conversion.  | |
| operator const std::vector< std::string > & () const | |
| Return the field value as string list, with potential conversion.  | |
| operator CSLConstList () const | |
| Return the field value as string list, with potential conversion.  | |
| int | GetAsInteger () const | 
| Return the field value as integer, with potential conversion.  | |
| GIntBig | GetAsInteger64 () const | 
| Return the field value as 64-bit integer, with potential conversion.  | |
| double | GetAsDouble () const | 
| Return the field value as double, with potential conversion.  | |
| const char * | GetAsString () const | 
| Return the field value as string, with potential conversion.  | |
| const std::vector< int > & | GetAsIntegerList () const | 
| Return the field value as integer list, with potential conversion.  | |
| const std::vector< GIntBig > & | GetAsInteger64List () const | 
| Return the field value as 64-bit integer list, with potential conversion.  | |
| const std::vector< double > & | GetAsDoubleList () const | 
| Return the field value as double list, with potential conversion.  | |
| const std::vector< std::string > & | GetAsStringList () const | 
| Return the field value as string list, with potential conversion.  | |
Friends | |
| class | OGRFeature | 
Field value.
      
  | 
  inline | 
Return the double value.
Only use that method if and only if GetType() == OFTReal.
      
  | 
  inline | 
Return the integer value.
Only use that method if and only if GetType() == OFTInteger.
      
  | 
  inline | 
Return the 64-bit integer value.
Only use that method if and only if GetType() == OFTInteger64.
      
  | 
  inline | 
Return the string value.
Only use that method if and only if GetType() == OFTString.