Database object associated with specific geospatial element type. More...
#include <rvc/dbelem.h>

Database object associated with specific geospatial element type.
Provides methods to retrieve and manage list of records attached to each element.
Construct using parent object type and element type.
| RVC::DBASE_ELEMENT::DBASE_ELEMENT | ( | const RVC::DBASE_ELEMENT & | rhs | ) |
Copy constructor.
| virtual RVC::DBASE_ELEMENT::~DBASE_ELEMENT | ( | ) | [virtual] |
Destructor.
| ERRVALUE RVC::DBASE_ELEMENT::AddAttachment | ( | const RVC::ELEMENT & | elem, | |
| const RVC::DBASE_ELEMENT::ATTACHMENTITEM & | item | |||
| ) |
Attach the record to the element.
| ERRVALUE RVC::DBASE_ELEMENT::AddAttachments | ( | const RVC::ELEMENT & | elem, | |
| const RVC::DBASE_ELEMENT::ATTACHMENTARRAY & | items | |||
| ) |
Attach the array of records to the element.
| INT32 RVC::DBASE_ELEMENT::AppendDBList | ( | INT32 | ElemNum, | |
| const DBLISTELMT & | item | |||
| ) |
Append one list entry to this element.
This method will remove duplicates.
Append list entries to this element.
This method will remove duplicates.
| ERRVALUE RVC::DBASE_ELEMENT::CleanDBList | ( | ) |
Remove invalid entries from the element database attachment list.
| bool RVC::DBASE_ELEMENT::CompareElementRecords | ( | INT32 | LhsElemNum, | |
| const DBASE_ELEMENT & | rhs, | |||
| INT32 | RhsElemNum, | |||
| const SIMPLE_ARRAY< INT32 > & | TableMatch, | |||
| double | threshhold = 0.0 | |||
| ) | const |
Compare attached element records from two databases to determine if the element attachmets are to the same records.
| LhsElemNum | Left side element number | |
| rhs | Other database to compare to | |
| RhsElemNum | Right side element number | |
| TableMatch | Table translation array from Lhs database to Rhs database, See DBASE::FindTableMatches() |
| ERRVALUE RVC::DBASE_ELEMENT::ConvertStyleAssignTableTo | ( | DBASE_ELEMENT & | DestDBaseObj | ) |
Convert style assignment table from 'this' to 'DestDBaseObj' based on the database object types.
| DestDBaseObj | Must be created outside this function and be open |
| ERRVALUE RVC::DBASE_ELEMENT::CopyDatabaseTo | ( | RVC::GEOSPATIAL & | DestParentObj, | |
| RVC::DBASE_ELEMENT & | DestDBaseObj, | |||
| const DBASE::ELEMTRANSLIST & | TransList, | |||
| COPYFLAG | flags | |||
| ) |
Copy a database from the source to under the destination object using an element translation list.
| DestDBaseObj | To be filled in with the new database object | |
| TransList | Element translation list |
| ERRVALUE RVC::DBASE_ELEMENT::CopyDatabaseTo | ( | RVC::GEOSPATIAL & | DestParentObj, | |
| const SIMPLE_ARRAY< INT32 > & | TransList, | |||
| COPYFLAG | flags | |||
| ) |
Copy a database from the source to under the destination object using an element translation list.
| int RVC::DBASE_ELEMENT::GetAttachedElements | ( | const RVC::DBTABLE::RECORD & | record, | |
| SIMPLE_ARRAY< RVC::ELEMENT > & | ElementList, | |||
| ELEMTYPE | ElemType = ELEMTYPE_Empty | |||
| ) | const |
Get the list of attached elements to a specific record.
| record | Record to find attached elements of | |
| ElemType | Defaults to DBASE_ELEMENT ElemType |
| int RVC::DBASE_ELEMENT::GetAttachedElements | ( | const RVC::DBTABLE::RECORD & | record, | |
| SIMPLE_ARRAY< INT32 > & | ElementList, | |||
| ELEMTYPE | ElemType = ELEMTYPE_Empty | |||
| ) | const |
Get the list of attached elements to a specific record.
| record | Record to find attached elements of | |
| ElemType | Defaults to DBASE_ELEMENT ElemType |
| ERRVALUE RVC::DBASE_ELEMENT::GetAttachedRecordList | ( | INT32 | ElemNum, | |
| DBLIST & | DBList, | |||
| FINDFLAG | FindFlag = FINDFLAG_AllAttached, |
|||
| INT32 | BaseTableNum = -1 | |||
| ) | const |
Get records attached to the specified element for all tables.
| DBList | List of attachments allocated and returned |
| INT32 RVC::DBASE_ELEMENT::GetAttachedRecordNumbers | ( | const RVC::ELEMENT & | element, | |
| const RVC::DBTABLE & | table, | |||
| SIMPLE_ARRAY< INT32 > & | recordnums, | |||
| FINDFLAG | findflags = FINDFLAG_AllAttached | |||
| ) | const |
Get the record numbers attached to the element for this table.
| element | Element | |
| table | Table to get attached records for | |
| recordnums | Array of record numbers returned |
| INT32 RVC::DBASE_ELEMENT::GetAttachments | ( | const RVC::ELEMENT & | elem, | |
| RVC::DBASE_ELEMENT::ATTACHMENTARRAY & | items | |||
| ) | const |
Get array of attachments to this element.
Get the size of an individual entries for an element database attachment list.
| INT32 RVC::DBASE_ELEMENT::GetDBListMaxItemSize | ( | ) | const |
Get the maximum number of entries for an element database attachment list.
| INT32 RVC::DBASE_ELEMENT::GetDBListNumElements | ( | ) | const |
Get the number of element database attachment list entries.
| static ELEMTYPE RVC::DBASE_ELEMENT::GetDftElemType | ( | RVC::OBJTYPE | ObjType | ) | [static] |
Get the default element type based on the database object type.
| ELEMTYPE RVC::DBASE_ELEMENT::GetElemType | ( | ) | const [inline] |
Get element type database is associated with.
| bool RVC::DBASE_ELEMENT::HasAttachedElements | ( | const RVC::DBTABLE::RECORD & | record, | |
| ELEMTYPE | ElemType = ELEMTYPE_All | |||
| ) | const |
Determine if the given record has any elements attached.
| ERRVALUE RVC::DBASE_ELEMENT::JoinDatabaseTo | ( | RVC::DBASE_ELEMENT & | DestDatabase, | |
| const DBASE::ELEMTRANSLIST & | TransList, | |||
| RVC::DBASE::COPYFLAG | CopyFlags = RVC::DBASE::COPYFLAG_None, |
|||
| RVC::DBASE::JOINFLAGS | JoinFlags = RVC::DBASE::JOINFLAG_None, |
|||
| INT32 * | pNextElemID = 0, |
|||
| ELEMTYPE | SrcElemType = ELEMTYPE_Empty, |
|||
| ELEMTYPE | DestElemType = ELEMTYPE_Empty | |||
| ) |
Join (copy) tables from this database to another database.
| SrcElemType | Pointer to INT32 return next ElemID in | |
| DestElemType | Will default to the default element type of the source database Will default to the default element type of the destination database |
| ERRVALUE RVC::DBASE_ELEMENT::JoinDatabaseTo | ( | RVC::DBASE_ELEMENT & | DestDatabase, | |
| const SIMPLE_ARRAY< INT32 > & | TransList, | |||
| RVC::DBASE::COPYFLAG | CopyFlags = RVC::DBASE::COPYFLAG_None, |
|||
| RVC::DBASE::JOINFLAGS | JoinFlags = RVC::DBASE::JOINFLAG_None, |
|||
| INT32 * | pNextElemID = 0, |
|||
| ELEMTYPE | SrcElemType = ELEMTYPE_Empty, |
|||
| ELEMTYPE | DestElemType = ELEMTYPE_Empty | |||
| ) |
Join (copy) tables from this database to another database.
| SrcElemType | Pointer to INT32 return next ElemID in | |
| DestElemType | Will default to the default element type of the source database Will default to the default element type of the destination database |
| ERRVALUE RVC::DBASE_ELEMENT::OpenAsSubobject | ( | const RVC::GEOSPATIAL & | parent, | |
| OPENMODE | mode = OPENMODE_Read, |
|||
| MDLGPARENT | dlgparent = 0, |
|||
| const CREDENTIALS * | pCredentials = 0 | |||
| ) |
Open the database. If a database object does not exist, make one.
| parent | Parent object to find and/or create database under | |
| dlgparent | Parent dialog handle, 0 for default handle | |
| pCredentials | User credentials passed in, NULL for default behavior |
| ERRVALUE RVC::DBASE_ELEMENT::OpenAsSubobject | ( | const RVC::OBJITEM & | ParentObjItem, | |
| OPENMODE | mode = OPENMODE_Read, |
|||
| MDLGPARENT | dlgparent = 0, |
|||
| const CREDENTIALS * | pCredentials = 0 | |||
| ) |
Open the database. If a database object does not exist, make one.
| ParentObjItem | Parent object to find and/or create database under | |
| dlgparent | Parent dialog handle, 0 for default handle | |
| pCredentials | User credentials passed in, NULL for default behavior |
| RVC::DBASE_ELEMENT& RVC::DBASE_ELEMENT::operator= | ( | const RVC::DBASE_ELEMENT & | rhs | ) |
Assignment.
Reimplemented from RVC::DBASE.
Reimplemented in RVC::DBASE_NODE, and RVC::DBASE_TINNODE.
Read an individual entry from the element database attachment list.
| ERRVALUE RVC::DBASE_ELEMENT::RemoveAttachment | ( | const RVC::ELEMENT & | elem, | |
| const RVC::DBASE_ELEMENT::ATTACHMENTITEM & | item | |||
| ) |
Remove the record attachment to the element.
| ERRVALUE RVC::DBASE_ELEMENT::RemoveAttachments | ( | const RVC::ELEMENT & | elem, | |
| const RVC::DBASE_ELEMENT::ATTACHMENTARRAY & | items | |||
| ) |
Remove the array of record attachments to the element.
Resize the number of entries in the element database attachment list.
Resize an individual entry from the element database attachment list.
Swap individual entries from the element database attachment list.
Unattach items from an individual entry from the element database attachment list.
Inform the database code that the number of elements has changed May not be needed.
Write an individual entry from the element database attachment list.
1.6.1