File Geodatabase API
|
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. | |
Provides methods to get and set data on table rows.
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).
[in] | field | The name of the field to check for a null value. |
[out] | isNull | Indicates whether the specified field contains a null value. |
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).
[in] | fieldNumber | The number of the field to check for a null value. |
[out] | isNull | Indicates whether the specified field contains a null value. |
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).
[in] | field | The name of the field to set as null. |
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).
[in] | fieldNumber | The number of the field to set as null. |
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).
[out] | objectID | The row's Object ID. |
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).
[out] | globalID | The row's Global ID. |
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).
[out] | shapeBuffer | The row's geometry. |
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.
[in] | shapeBuffer | The geometry to assign to the row. |
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.
[in] | field | The name of the field to get the value from. |
[out] | value | The field's value. |
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.
[in] | fieldNumber | The number of the field to get the value from. |
[out] | value | The field's value. |
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).
[in] | field | The name of the field to assign the value to. |
[out] | value | The value to assign to the field. |
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).
[in] | fieldNumber | The number of the field to assign the value to. |
[out] | value | The value to assign to the field. |
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.
[in] | field | The name of the field to get the value from. |
[out] | value | The field's value. |
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.
[in] | fieldNumber | The number of the field to get the value from. |
[out] | value | The field's value. |
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).
[in] | field | The name of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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).
[in] | fieldNumber | The number of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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.
[in] | field | The name of the field to get the value from. |
[out] | value | The field's value. |
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.
[in] | fieldNumber | The number of the field to get the value from. |
[out] | value | The field's value. |
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).
[in] | field | The name of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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).
[in] | fieldNumber | The number of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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.
[in] | field | The name of the field to get the value from. |
[out] | value | The field's value. |
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.
[in] | fieldNumber | The number of the field to get the value from. |
[out] | value | The field's value. |
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).
[in] | field | The name of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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).
[in] | fieldNumber | The number of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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.
[in] | field | The name of the field to get the value from. |
[out] | value | The field's value. |
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.
[in] | fieldNumber | The number of the field to get the value from. |
[out] | value | The field's value. |
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).
[in] | field | The name of the field to get the value from. |
[in] | value | The value to assign to the field. |
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).
[in] | fieldNumber | The number of the field to get the value from. |
[in] | value | The value to assign to the field. |
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.
[in] | field | The name of the field to get the value from. |
[out] | value | The field's value. |
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.
[in] | fieldNumber | The number of the field to get the value from. |
[out] | value | The field's value. |
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).
[in] | field | The name of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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).
[in] | fieldNumber | The number of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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.
[in] | field | The name of the field to get the value from. |
[out] | value | The field's value. |
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.
[in] | fieldNumber | The number of the field to get the value from. |
[out] | value | The field's value. |
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).
[in] | field | The name of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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).
[in] | fieldNumber | The number of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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.
[in] | field | The name of the field to get the value from. |
[out] | value | The field's value. |
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.
[in] | fieldNumber | The number of the field to get the value from. |
[out] | value | The field's value. |
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).
[in] | field | The name of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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).
[in] | fieldNumber | The number of the field to assign the value to. |
[in] | value | The value to assign to the field. |
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).
[in] | field | The name of the field to get the value from. |
[out] | raster | The field's value. |
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).
[in] | field | The name of the field to assign the value to. |
[in] | raster | The value to assign to the field. |
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.
[in] | field | The name of the field to get the value from. |
[out] | binaryBuf | The field's value. |
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.
[in] | fieldNumber | The number of the field to get the value from. |
[out] | binaryBuf | The field's value. |
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).
[in] | field | The name of the field to assign the value to. |
[in] | binaryBuf | The value to assign to the field. |
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).
[in] | fieldNumber | The number of the field to assign the value to. |
[in] | binaryBuf | The value to assign to the field. |
fgdbError FileGDBAPI::Row::GetFieldInformation | ( | FieldInfo & | fieldInfo | ) | const |
Return information about the fields in the row.
[out] | fieldInfo | The field information. |
fgdbError FileGDBAPI::Row::GetFields | ( | std::vector< FieldDef > & | fieldDefs | ) | const |