File Geodatabase API
FileGDBAPI::Row Class Reference

Provides methods to get and set data on table rows. More...

Public Member Functions

Getters and setters
fgdbError IsNull (const std::wstring &field, bool &isNull) const
 Indicates whether the specified field contains a null value. More...
 
fgdbError IsNull (int fieldNumber, bool &isNull) const
 Indicates whether the specified field contains a null value. More...
 
fgdbError SetNull (const std::wstring &field)
 Assigns a null value to the specified field. More...
 
fgdbError SetNull (int fieldNumber)
 Assigns a null value to the specified field. More...
 
fgdbError GetOID (int32 &objectID) const
 Gets the row's Object ID. More...
 
fgdbError GetGlobalID (Guid &globalID) const
 Gets the row's Global ID. More...
 
fgdbError GetGeometry (ShapeBuffer &shapeBuffer) const
 Gets the row's geometry. More...
 
fgdbError SetGeometry (const ShapeBuffer &shapeBuffer)
 Sets the row's geometry. More...
 
fgdbError GetShort (const std::wstring &field, short &value) const
 Gets a short value from the specified field. More...
 
fgdbError GetShort (int fieldNumber, short &value) const
 Gets a short value from the specified field. More...
 
fgdbError SetShort (const std::wstring &field, short value)
 Assigns a short value to the specified field. More...
 
fgdbError SetShort (int fieldNumber, short value)
 Assigns a short value to the specified field. More...
 
fgdbError GetInteger (const std::wstring &field, int32 &value) const
 Gets an integer value from the specified field. More...
 
fgdbError GetInteger (int fieldNumber, int32 &value) const
 Gets an integer value from the specified field. More...
 
fgdbError SetInteger (const std::wstring &field, int32 value)
 Assigns an integer value to the specified field. More...
 
fgdbError SetInteger (int fieldNumber, int32 value)
 Assigns an integer value to the specified field. More...
 
fgdbError GetFloat (const std::wstring &field, float &value) const
 Gets a float value from the specified field. More...
 
fgdbError GetFloat (int fieldNumber, float &value) const
 Gets a float value from the specified field. More...
 
fgdbError SetFloat (const std::wstring &field, float value)
 Assigns a float value to the specified field. More...
 
fgdbError SetFloat (int fieldNumber, float value)
 Assigns a float value to the specified field. More...
 
fgdbError GetDouble (const std::wstring &field, double &value) const
 Gets a double value from the specified field. More...
 
fgdbError GetDouble (int fieldNumber, double &value) const
 Gets a double value from the specified field. More...
 
fgdbError SetDouble (const std::wstring &field, double value)
 Assigns a double value to the specified field. More...
 
fgdbError SetDouble (int fieldNumber, double value)
 Assigns a double value to the specified field. More...
 
fgdbError GetDate (const std::wstring &field, struct tm &value) const
 Gets a date/time value from the specified field. More...
 
fgdbError GetDate (int fieldNumber, struct tm &value) const
 Gets a date/time value from the specified field. More...
 
fgdbError SetDate (const std::wstring &field, const struct tm &value)
 Assigns a date/time value to the specified field. More...
 
fgdbError SetDate (int fieldNumber, const struct tm &value)
 Assigns a date/time value to the specified field. More...
 
fgdbError GetString (const std::wstring &field, std::wstring &value) const
 Gets a string value from the specified field. More...
 
fgdbError GetString (int fieldNumber, std::wstring &value) const
 Gets a string value from the specified field. More...
 
fgdbError SetString (const std::wstring &field, const std::wstring &value)
 Assigns a string value to the specified field. More...
 
fgdbError SetString (int fieldNumber, const std::wstring &value)
 Assigns a string value to the specified field. More...
 
fgdbError GetGUID (const std::wstring &field, Guid &value) const
 Gets a GUID value from the specified field. More...
 
fgdbError GetGUID (int fieldNumber, Guid &value) const
 Gets a GUID value from the specified field. More...
 
fgdbError SetGUID (const std::wstring &field, const Guid &value)
 Assigns a GUID value to the specified field. More...
 
fgdbError SetGUID (int fieldNumber, const Guid &value)
 Assigns a GUID value to the specified field. More...
 
fgdbError GetXML (const std::wstring &field, std::string &value) const
 Gets an XML value from the specified field. More...
 
fgdbError GetXML (int fieldNumber, std::string &value) const
 Gets an XML value from the specified field. More...
 
fgdbError SetXML (const std::wstring &field, const std::string &value)
 Assigns an XML value to the specified field. More...
 
fgdbError SetXML (int fieldNumber, const std::string &value)
 Assigns an XML value to the specified field. More...
 
fgdbError GetRaster (const std::wstring &field, Raster &raster) const
 Gets a raster from the specified field. More...
 
fgdbError SetRaster (const std::wstring &field, const Raster &raster)
 Assigns a raster to the specified field. More...
 
fgdbError GetBinary (const std::wstring &field, ByteArray &binaryBuf) const
 Gets a byte array from the specified field. More...
 
fgdbError GetBinary (int fieldNumber, ByteArray &binaryBuf) const
 Gets a byte array from the specified field. More...
 
fgdbError SetBinary (const std::wstring &field, const ByteArray &binaryBuf)
 Assigns a byte array to the specified field. More...
 
fgdbError SetBinary (int fieldNumber, const ByteArray &binaryBuf)
 Assigns a byte array to the specified field. More...
 
Field properties
fgdbError GetFieldInformation (FieldInfo &fieldInfo) const
 Return information about the fields in the row. More...
 
fgdbError GetFields (std::vector< FieldDef > &fieldDefs) const
 Returns an array of FieldDef objects of the table's field collection. More...
 
Constructors and Destructors
 Row ()
 The class constructor.
 
 ~Row ()
 The class destructor.
 

Detailed Description

Provides methods to get and set data on table rows.

Member Function Documentation

fgdbError FileGDBAPI::Row::IsNull ( const std::wstring &  field,
bool &  isNull 
) const

Indicates whether the specified field contains a null value.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly).

Parameters
[in]fieldThe name of the field to check for a null value.
[out]isNullIndicates whether the specified field contains a null value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::IsNull ( int  fieldNumber,
bool &  isNull 
) const

Indicates whether the specified field contains a null value.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly).

Parameters
[in]fieldNumberThe number of the field to check for a null value.
[out]isNullIndicates whether the specified field contains a null value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetNull ( const std::wstring &  field)

Assigns a null value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field is not nullable, this will fail with an error code of -2147219879 (The field is not nullable).

Parameters
[in]fieldThe name of the field to set as null.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetNull ( int  fieldNumber)

Assigns a null value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field is not nullable, this will fail with an error code of -2147219879 (The field is not nullable).

Parameters
[in]fieldNumberThe number of the field to set as null.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetOID ( int32 &  objectID) const

Gets the row's Object ID.

If the row's table does not have an Object ID column, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly).

Parameters
[out]objectIDThe row's Object ID.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetGlobalID ( Guid &  globalID) const

Gets the row's Global ID.

If the row's table does not have an Global ID column, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly).

Parameters
[out]globalIDThe row's Global ID.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetGeometry ( ShapeBuffer shapeBuffer) const

Gets the row's geometry.

The buffer is a shape record as defined in the ESRI Shapefile Technical Description, which is included in the documentation. The Editing and Querying samples write and read a point shape buffer. Other shape types can be read based on the shapefile specification. If the row's table does not have a geometry column, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly).

Parameters
[out]shapeBufferThe row's geometry.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetGeometry ( const ShapeBuffer shapeBuffer)

Sets the row's geometry.

The buffer is a shape record as defined in the ESRI Shapefile Technical Description, which is included in the documentation. The Editing and Querying samples write and read a point shape buffer. If the row's table does not have a geometry column, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the geometry has an invalid geometry type, this will fail with an error code of E_FAIL.

Parameters
[in]shapeBufferThe geometry to assign to the row.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetShort ( const std::wstring &  field,
short &  value 
) const

Gets a short value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field is has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldThe name of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetShort ( int  fieldNumber,
short &  value 
) const

Gets a short value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field is has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldNumberThe number of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetShort ( const std::wstring &  field,
short  value 
)

Assigns a short value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldThe name of the field to assign the value to.
[out]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetShort ( int  fieldNumber,
short  value 
)

Assigns a short value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldNumberThe number of the field to assign the value to.
[out]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetInteger ( const std::wstring &  field,
int32 &  value 
) const

Gets an integer value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldThe name of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetInteger ( int  fieldNumber,
int32 &  value 
) const

Gets an integer value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldNumberThe number of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetInteger ( const std::wstring &  field,
int32  value 
)

Assigns an integer value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldThe name of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetInteger ( int  fieldNumber,
int32  value 
)

Assigns an integer value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldNumberThe number of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetFloat ( const std::wstring &  field,
float &  value 
) const

Gets a float value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldThe name of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetFloat ( int  fieldNumber,
float &  value 
) const

Gets a float value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldNumberThe number of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetFloat ( const std::wstring &  field,
float  value 
)

Assigns a float value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldThe name of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetFloat ( int  fieldNumber,
float  value 
)

Assigns a float value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldNumberThe number of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetDouble ( const std::wstring &  field,
double &  value 
) const

Gets a double value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldThe name of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetDouble ( int  fieldNumber,
double &  value 
) const

Gets a double value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldNumberThe number of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetDouble ( const std::wstring &  field,
double  value 
)

Assigns a double value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldThe name of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetDouble ( int  fieldNumber,
double  value 
)

Assigns a double value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldNumberThe number of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetDate ( const std::wstring &  field,
struct tm &  value 
) const

Gets a date/time value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldThe name of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetDate ( int  fieldNumber,
struct tm &  value 
) const

Gets a date/time value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldNumberThe number of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetDate ( const std::wstring &  field,
const struct tm &  value 
)

Assigns a date/time value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldThe name of the field to get the value from.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetDate ( int  fieldNumber,
const struct tm &  value 
)

Assigns a date/time value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldNumberThe number of the field to get the value from.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetString ( const std::wstring &  field,
std::wstring &  value 
) const

Gets a string value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldThe name of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetString ( int  fieldNumber,
std::wstring &  value 
) const

Gets a string value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldNumberThe number of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetString ( const std::wstring &  field,
const std::wstring &  value 
)

Assigns a string value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldThe name of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetString ( int  fieldNumber,
const std::wstring &  value 
)

Assigns a string value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldNumberThe number of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetGUID ( const std::wstring &  field,
Guid &  value 
) const

Gets a GUID value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldThe name of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetGUID ( int  fieldNumber,
Guid &  value 
) const

Gets a GUID value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldNumberThe number of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetGUID ( const std::wstring &  field,
const Guid &  value 
)

Assigns a GUID value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldThe name of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetGUID ( int  fieldNumber,
const Guid &  value 
)

Assigns a GUID value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldNumberThe number of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetXML ( const std::wstring &  field,
std::string &  value 
) const

Gets an XML value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldThe name of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetXML ( int  fieldNumber,
std::string &  value 
) const

Gets an XML value from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldNumberThe number of the field to get the value from.
[out]valueThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetXML ( const std::wstring &  field,
const std::string &  value 
)

Assigns an XML value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldThe name of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetXML ( int  fieldNumber,
const std::string &  value 
)

Assigns an XML value to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldNumberThe number of the field to assign the value to.
[in]valueThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetRaster ( const std::wstring &  field,
Raster &  raster 
) const

Gets a raster from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldThe name of the field to get the value from.
[out]rasterThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetRaster ( const std::wstring &  field,
const Raster &  raster 
)

Assigns a raster to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldThe name of the field to assign the value to.
[in]rasterThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetBinary ( const std::wstring &  field,
ByteArray binaryBuf 
) const

Gets a byte array from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldThe name of the field to get the value from.
[out]binaryBufThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetBinary ( int  fieldNumber,
ByteArray binaryBuf 
) const

Gets a byte array from the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type). If the field contains a null value, this will fail with an error code of E_FAIL.

Parameters
[in]fieldNumberThe number of the field to get the value from.
[out]binaryBufThe field's value.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetBinary ( const std::wstring &  field,
const ByteArray binaryBuf 
)

Assigns a byte array to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldThe name of the field to assign the value to.
[in]binaryBufThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::SetBinary ( int  fieldNumber,
const ByteArray binaryBuf 
)

Assigns a byte array to the specified field.

If the field does not exist, this will fail with an error code of -2147219885 (An expected Field was not found or could not be retrieved properly). If the field has an incompatible data type, this will fail with an error code of -2147217395 (The value type is incompatible with the field type).

Parameters
[in]fieldNumberThe number of the field to assign the value to.
[in]binaryBufThe value to assign to the field.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetFieldInformation ( FieldInfo fieldInfo) const

Return information about the fields in the row.

Parameters
[out]fieldInfoThe field information.
Returns
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::Row::GetFields ( std::vector< FieldDef > &  fieldDefs) const

Returns an array of FieldDef objects of the table's field collection.

Parameters
[out]fieldDefsAn array of FieldDef objects containing a collection of field definitions.
Returns
Error code indicating whether the method finished successfully.