#include <rvc/dbtable.h>
Inheritance diagram for RVC::DBTABLE::RECORD:

Public Types | |
| enum | FIELDFLAG { FIELDFLAG_None = 0x0000, FIELDFLAG_NaN = 0x0010, FIELDFLAG_NoUnitConv = 0x0020, FIELDFLAG_MultiKey = 0x0040, FIELDFLAG_LocalTime = 0x0080, FIELDFLAG_MemoEncoding = 0x8000 } |
Public Member Functions | |
| ERRVALUE | AssignTable (const RVC::DBTABLE &table) |
| void | Clear () |
| bool | CompareField (INT32 FieldNum, const RECORD &record, double threshhold=0.0) const |
| INT32 | CompareFieldOrdered (INT32 FieldNum, const RECORD &record, double threshhold=0.0) const |
| bool | CompareRecords (RECORD &rhs, double threshhold=0.0) |
| INT32 | ComputeHash () const |
| ERRVALUE | CopyTo (RECORD &DestRecord) const |
| void | GetData (SIMPLE_ARRAY< UINT8 > &Data) const |
| INT32 | GetRecordNumber () const |
| INT32 | GetTableNumber () const |
| ERRVALUE | GetValue (INT32 FieldNum, COLOR &color) const |
| double | GetValue (INT32 FieldNum, FIELDFLAG FieldFlag=FIELDFLAG_None) const |
| ERRVALUE | GetValue (INT32 FieldNum, MISTRING &string, FIELDFLAG FieldFlag=FIELDFLAG_None, int DecimalPlaces=-1, const UNITCONV *UnitConv=0) const |
| ERRVALUE | GetValueBinary (INT32 FieldNum, SIMPLE_ARRAY< UINT8 > &binary) const |
| ERRVALUE | Initialize () |
| bool | IsAssigned () const |
| bool | operator!= (RECORD &rhs) |
| RECORD & | operator= (const RECORD &rhs) |
| bool | operator== (RECORD &rhs) |
| RECORD (const RVC::DBTABLE &table) | |
| RECORD (const RECORD &rhs) | |
| RECORD () | |
| DEPRECATED void | SetData (const void *buf) |
| void | SetData (const SIMPLE_ARRAY< UINT8 > &Data) |
| ERRVALUE | SetKeyValues (INT32 StartFieldNum, const RECORD &SourceRecord) |
| ERRVALUE | SetValue (INT32 FieldNum, const RECORD &SourceRecord, INT32 SourceFieldNum) |
| void | SetValue (INT32 FieldNum, double value, bool NoUnitConv=false) |
| ERRVALUE | SetValue (INT32 FieldNum, const MISTRING &string, FIELDFLAG FieldFlag=FIELDFLAG_None, const UNITCONV *conv=0) |
| ERRVALUE | SetValue (INT32 FieldNum, const COLOR &color) |
| ERRVALUE | SetValueBinary (INT32 FieldNum, const SIMPLE_ARRAY< UINT8 > &binary) const |
| virtual | ~RECORD () |
Protected Member Functions | |
| void * | GetFieldPtr (INT32 FieldNum) |
| const void *const | GetFieldPtr (INT32 FieldNum) const |
| virtual bool | IsValidTable (const RVC::DBTABLE &) |
Definition at line 2956 of file dbtable.h.
Flags for reading field methods (i.e. RVCDBTABLE::ReadField()).
| FIELDFLAG_None | |
| FIELDFLAG_NaN | Return NaN for unknown values. |
| FIELDFLAG_NoUnitConv | Don't do any unit conversion. |
| FIELDFLAG_MultiKey | String together multi-field keys with commas (for MfReadFieldStr()). |
| FIELDFLAG_LocalTime | Show FIELD::TYPE_DateTime in local time zone. |
| FIELDFLAG_MemoEncoding | Memo field has table.encoding encoding. |
| RVC::DBTABLE::RECORD::RECORD | ( | ) |
Default constructor.
| RVC::DBTABLE::RECORD::RECORD | ( | const RECORD & | rhs | ) |
Copy constructor.
| RVC::DBTABLE::RECORD::RECORD | ( | const RVC::DBTABLE & | table | ) |
Constructor from RVCDBTABLE - used to setup internal items.
| virtual RVC::DBTABLE::RECORD::~RECORD | ( | ) | [virtual] |
Destructor.
| ERRVALUE RVC::DBTABLE::RECORD::AssignTable | ( | const RVC::DBTABLE & | table | ) |
Initialize this record to work with this table, used to setup internal items.
| void RVC::DBTABLE::RECORD::Clear | ( | ) |
Clear the record.
| bool RVC::DBTABLE::RECORD::CompareField | ( | INT32 | FieldNum, | |
| const RECORD & | record, | |||
| double | threshhold = 0.0 | |||
| ) | const |
Compare two entries in a field to determine if they are equal.
| INT32 RVC::DBTABLE::RECORD::CompareFieldOrdered | ( | INT32 | FieldNum, | |
| const RECORD & | record, | |||
| double | threshhold = 0.0 | |||
| ) | const |
Compare two entries in a field to determine sort order returns <0 if "this" is < record, >0 if this > record, = if same.
| bool RVC::DBTABLE::RECORD::CompareRecords | ( | RECORD & | rhs, | |
| double | threshhold = 0.0 | |||
| ) |
| INT32 RVC::DBTABLE::RECORD::ComputeHash | ( | ) | const |
Compute a hash value for the current record.
This is used by the database join code to quickly compare two records for equality.
Copy the field values from one record to another.
Unlike using the assignment operator, which assumes the same table (or at least same structure), this method will cope with the possibility that the source record may have different field sizes and offsets than the destination record. Note: it assumes that the records come from tables with the same number of fields and won't do any field reordering.
| void RVC::DBTABLE::RECORD::GetData | ( | SIMPLE_ARRAY< UINT8 > & | Data | ) | const |
Read an entire record into a byte array.
| void* RVC::DBTABLE::RECORD::GetFieldPtr | ( | INT32 | FieldNum | ) | [inline, protected] |
| const void* const RVC::DBTABLE::RECORD::GetFieldPtr | ( | INT32 | FieldNum | ) | const [inline, protected] |
| INT32 RVC::DBTABLE::RECORD::GetRecordNumber | ( | ) | const |
Get the current record number refered to by this instance.
| INT32 RVC::DBTABLE::RECORD::GetTableNumber | ( | ) | const |
Get the current table number refered to by this instance.
Read the value of a COLOR field.
| double RVC::DBTABLE::RECORD::GetValue | ( | INT32 | FieldNum, | |
| FIELDFLAG | FieldFlag = FIELDFLAG_None | |||
| ) | const |
Read a field from this record and return a double.
| ERRVALUE RVC::DBTABLE::RECORD::GetValue | ( | INT32 | FieldNum, | |
| MISTRING & | string, | |||
| FIELDFLAG | FieldFlag = FIELDFLAG_None, |
|||
| int | DecimalPlaces = -1, |
|||
| const UNITCONV * | UnitConv = 0 | |||
| ) | const |
Read a field from this record into an MISTRING.
| ERRVALUE RVC::DBTABLE::RECORD::GetValueBinary | ( | INT32 | FieldNum, | |
| SIMPLE_ARRAY< UINT8 > & | binary | |||
| ) | const |
Read a binary field from this record into a SIMPLE_ARRAY<UINT8> This will return an empty array if the field is not a FIELDINFO::TYPE_Binary.
| ERRVALUE RVC::DBTABLE::RECORD::Initialize | ( | ) |
Initialize the record with the constraints set for the table.
| bool RVC::DBTABLE::RECORD::IsAssigned | ( | ) | const |
Determine if 'this' is assigned to a table.
| virtual bool RVC::DBTABLE::RECORD::IsValidTable | ( | const RVC::DBTABLE & | ) | [inline, protected, virtual] |
| bool RVC::DBTABLE::RECORD::operator!= | ( | RECORD & | rhs | ) | [inline] |
| bool RVC::DBTABLE::RECORD::operator== | ( | RECORD & | rhs | ) |
Equality - compares if the information in the two records are the same, including memo and computed fields.
| DEPRECATED void RVC::DBTABLE::RECORD::SetData | ( | const void * | buf | ) |
Temprorary until all of the database editor is converted over.
Assumes the caller allocated the buffer to the correct size.
| void RVC::DBTABLE::RECORD::SetData | ( | const SIMPLE_ARRAY< UINT8 > & | Data | ) |
Write an entire record from a byte array.
Write a set of fields from another RECORD field to this record if the tables are related using the key field / next field association.
| ERRVALUE RVC::DBTABLE::RECORD::SetValue | ( | INT32 | FieldNum, | |
| const RECORD & | SourceRecord, | |||
| INT32 | SourceFieldNum | |||
| ) |
Write a field from another RECORD field to this record.
| void RVC::DBTABLE::RECORD::SetValue | ( | INT32 | FieldNum, | |
| double | value, | |||
| bool | NoUnitConv = false | |||
| ) |
Write a field from a double to this record.
| ERRVALUE RVC::DBTABLE::RECORD::SetValue | ( | INT32 | FieldNum, | |
| const MISTRING & | string, | |||
| FIELDFLAG | FieldFlag = FIELDFLAG_None, |
|||
| const UNITCONV * | conv = 0 | |||
| ) |
Write a field from a MISTRING to this record.
| ERRVALUE RVC::DBTABLE::RECORD::SetValueBinary | ( | INT32 | FieldNum, | |
| const SIMPLE_ARRAY< UINT8 > & | binary | |||
| ) | const |
Write a binary field to this record from a SIMPLE_ARRAY<UINT8>.
1.5.2