RVC::DBTABLE Class Reference

Manages RVC::OBJTYPE_Table objects. More...

#include <rvc/dbtable.h>

Inheritance diagram for RVC::DBTABLE:
Inheritance graph
[legend]

List of all members.

Classes

class  BOOKMARK
 Class to represent database bookmarks used in ODBC. More...
class  CONST_RECORDITERATOR
 Constant record iterator class. More...
class  CONSTRAINT
 Constraint class for the field in the table. More...
class  CURSOR
 Class to represent database table cursors used in ODBC. More...
class  FIELDINFO
class  GETOBJFILTER_ISSELECTABLE
 Database table object selection filter that excludes all objects except for tables. More...
class  GETOBJFILTER_ISUSAGEVALID
 Database table object selection filter to determine if the table is a user defined table (it may be empty). More...
class  GETOBJFILTER_ISUSERDEFINED
 Database table object selection filter to determine if the table is a user defined table (it may be empty). More...
class  LINKPARMS
 Parameters to link to external database tables. More...
class  MAKEPARM_ID_ELEMENT
 MAKEPARM's for Element ID tables. More...
class  MAKEPARM_ID_POINT
 MAKEPARM's for Point ID tables. More...
class  MAKEPARM_LEGENDELEMENT
 MAKEPARM for legend element table. More...
class  MAKEPARM_NODETURN
 MAKEPARM for Node Turn Impedance table. More...
class  MAKEPARM_ORACLE
 MAKEPARM's for Oracle table creation. More...
class  MAKEPARM_SCALESELECT
 MAKEPARM's for Scale Select tables. More...
class  MAKEPARM_SELECTION
 MAKEPARM's for Attribute Select tables. More...
class  MAKEPARM_STYLE_CAD
 MAKEPARM's for multi-Style tables. More...
class  MAKEPARM_STYLE_ELEMENT
 MAKEPARM's for Element Style tables. More...
class  MAKEPARM_STYLE_LINE
 MAKEPARM's for Line Style tables. More...
class  MAKEPARM_STYLE_POINT
 MAKEPARM's for Point Style tables. More...
class  MAKEPARM_STYLE_POLYGON
 MAKEPARM's for Polygon Style tables. More...
class  MAKEPARMS
 Database table creation parameters class. Manages the necessary parameters to create a database table. More...
class  OBSERVER
 OBSERVER class for DBTABLE objects. The SUBJECT class is DBTABLE. More...
class  RECORD
 Class to contain a database record. More...
class  RECORD_ID_ELEMENT
 Specialized record class to manage Element ID table records. More...
class  RECORD_ID_POINT
 Specialized record class to manage Point ID table records. More...
class  RECORD_LEGENDELEMENT
class  RECORD_NODETURN
 Specialized record class to manage Node Turn table records. More...
class  RECORD_SCALESELECT
class  RECORD_SELECTION
class  RECORD_STYLE_CAD
 Record containing multiple element styles. More...
class  RECORD_STYLE_ELEMENT
 Record for table containing single element style. More...
class  RECORDITERATOR
 Record iterator class. More...

Public Types

enum  ATTACHMENT {
  ATTACHMENT_Unknown = 0, ATTACHMENT_OneRecordPerElement, ATTACHMENT_OneElementPerRecord, ATTACHMENT_OneToOne,
  ATTACHMENT_RelatedOnly, ATTACHMENT_Identity, ATTACHMENT_NoRestrictions
}
enum  CAPABILITY {
  CAPABILITY_Create = 2048, CAPABILITY_Link, CAPABILITY_ReadMemo, CAPABILITY_WriteMemo,
  CAPABILITY_WriteRecord, CAPABILITY_MultiTable, CAPABILITY_Server, CAPABILITY_Import,
  CAPABILITY_Export, CAPABILITY_DeleteRecord, CAPABILITY_UserWritable, CAPABILITY_CanSetUserWrite,
  CAPABILITY_ChangeFields, CAPABILITY_AddFields, CAPABILITY_DeleteFields, CAPABILITY_AddRecord,
  CAPABILITY_RandomAccess, CAPABILITY_ReadBinary, CAPABILITY_WriteBinary, CAPABILITY_WriteIfOpenForWrite,
  CAPABILITY_BookmarksAreNotAbsolute
}
enum  DEFINEDID { DEFINEDID_Internal = -1, DEFINEDID_InternalNode = -2, DEFINEDID_Invalid = -98, DEFINEDID_New = -9 }
typedef std::vector< FIELDINFOFIELDINFOARRAY
enum  FINDFLAG { FINDFLAG_AllAttached = 0, FINDFLAG_OnlyDirect = 2, FINDFLAG_FirstMatch = 8 }
enum  INDEXSEARCH { INDEXSEARCH_ReturnIndexOffset = 0x00000000, INDEXSEARCH_CheckExists = 0x00000001, INDEXSEARCH_ReturnRecordNumber = 0x00000002, INDEXSEARCH_ReturnInsertOffset = 0x00000004 }
enum  ITERATERECORD {
  ITERATERECORD_None = 0x0000, ITERATERECORD_SkipDeleted = 0x0001, ITERATERECORD_Sort = 0x0002, ITERATERECORD_UniqueOnly = 0x0004,
  ITERATERECORD_SaveIndex = 0x0008, ITERATERECORD_SingleKey = 0x8000
}
enum  KEYFLAGS {
  KEYFLAG_None = 0x0000, KEYFLAG_PrimaryKey = 0x0001, KEYFLAG_ForeignKey = 0x0002, KEYFLAG_Indexed = 0x0004,
  KEYFLAG_RebuildIndex = 0x2000, KEYFLAG_Sorted = 0x4000
}
enum  LINKTYPE {
  LINKTYPE_Internal = 0, LINKTYPE_MIPS, LINKTYPE_DBASE3, LINKTYPE_INFO,
  LINKTYPE_DBASE4, LINKTYPE_RBASE, LINKTYPE_DBASE2, LINKTYPE_ODBC,
  LINKTYPE_CSV, LINKTYPE_TAB, LINKTYPE_ORACLE, LINKTYPE_RDBMS,
  LINKTYPE_LAS, LINKTYPE_NUMTYPES
}
enum  PERMISSIONS {
  PERMISSION_View = 0, PERMISSION_Modify, PERMISSION_Delete, PERMISSION_ViewStructure,
  PERMISSION_ModifyStructure, PERMISSION_Duplicate, PERMISSION_ReadACL, PERMISSION_ChangeACL
}
enum  RECORDREFTYPE { RECORDREFTYPE_New = 0, RECORDREFTYPE_Absolute = 1, RECORDREFTYPE_Bookmark = 2 }
enum  REFELEM {
  REFELEM_All = 0x00000000, REFELEM_Node = 0x00000010, REFELEM_Edge = 0x00000020, REFELEM_Triangle = 0x00000040,
  REFELEM_Hull = 0x00000080
}
enum  STRUCTCOMPARE { STRUCTCOMPARE_DoNotMatch = 0, STRUCTCOMPARE_Exact, STRUCTCOMPARE_Compatible, STRUCTCOMPARE_SameTable }
enum  USAGE {
  USAGE_UserDefined = 0, USAGE_StdStats = 2, USAGE_ElementID = 3, USAGE_NodeTurn = 4,
  USAGE_ScaleSelect = 5, USAGE_Section = 6, USAGE_Internal = 7, USAGE_PointStyle = 8,
  USAGE_LineStyle = 9, USAGE_PolyStyle = 10, USAGE_TextStyle = 11, USAGE_MultiStyle = 12,
  USAGE_CADStyle = USAGE_MultiStyle, USAGE_EditLog = 13, USAGE_Selection = 14, USAGE_FlightPath = 15,
  USAGE_PointOfInterest = 16, USAGE_LegendElement = 17, USAGE_StyleParameters = 18, USAGE_SelectParameters = 19,
  USAGE_ExtrudedPoints = 20, USAGE_InfluenceSphere = 21, USAGE_Sketch = 22, USAGE_ClumpRaster = 23,
  USAGE_Enumeration = 24, USAGE_Shape = 25, USAGE_PickList = 26, USAGE_Properties = 27,
  USAGE_FieldOfView = 28, USAGE_LAST
}
typedef ENUMSET< USAGE,
USAGE_LAST > 
USAGESET
enum  VIEWMODE { VIEWMODE_Tabular = 0, VIEWMODE_SingleRecord = 1 }

Public Member Functions

 DBTABLE (const RVC::DBTABLE &rhs)
 DBTABLE ()
virtual ~DBTABLE ()
ERRVALUE AddRecord (RECORD &Record, BOOKMARK &Bookmark)
INT32 AddRecord (RECORD &Record)
ERRVALUE BuildIndex (INT32 FieldNum, KEYFLAGS flags=KEYFLAG_Indexed)
ERRVALUE ChangeAttachmentType (ATTACHMENT Attachment, ELEMTYPE ElemType=ELEMTYPE_Empty)
ERRVALUE Combine (const RVC::DBTABLE &rhs, RVC::DBASE::JOINFLAGS flags, RVC::DBASE &dest, const RVC::DESCRIPTOR &DestDescriptor)
DEPRECATED ERRVALUE Combine (const RVC::DBTABLE &rhs, RVC::DBASE::JOINFLAGS flags, RVC::DBASE &dest, const MISTRING &name, const MISTRING &desc)
STRUCTCOMPARE CompareStructures (const RVC::DBTABLE &rhs) const
ATTACHMENT ComputeMinimumAttachmentType (ELEMTYPE ElemType=ELEMTYPE_Empty) const
ERRVALUE CopyRecordAttachmentsTo (RVC::DBTABLE &DestTable, const SIMPLE_ARRAY< INT32 > &SrcToDestTrans) const
ERRVALUE CopyTo (RVC::DBASE &DestDatabase, RVC::DESCRIPTOR *pDestDescriptor=0, INT32 *pNewTableNumber=0, SIMPLE_ARRAY< INT32 > *pRecordTrans=0, DELEGATE_BOOL_UINT32 Filter=0, const RVC::CREDENTIALS *pCredentials=0, RVC::DBASE::COPYFLAG flags=RVC::DBASE::COPYFLAG_None) const
ERRVALUE DeleteRecord (CURSOR &cursor, const BOOKMARK &bookmark)
ERRVALUE DeleteRecord (INT32 RecordNum)
ERRVALUE Drop (bool CleanDBList)
INT32 FindField (const MISTRING &name) const
DEPRECATED INT32 FindField (const RVC::OBJECTNAME &name) const
INT32 FindFieldByShortName (const RVC::OBJECTNAME &name) const
INT32 FindFieldByUsage (RVC::DBTABLE::FIELDINFO::USAGE Usage) const
INT32 FindRecords (INT32 FieldNum, const RECORD &record, SIMPLE_ARRAY< INT32 > &FoundRecList, INT32 RecordFieldNum=-1) const
INT32 FindRecords (INT32 FieldNum, const MISTRING &string, SIMPLE_ARRAY< INT32 > &FoundRecList) const
INT32 FindRecords (INT32 FieldNum, const MIUNICODE *string, SIMPLE_ARRAY< INT32 > &FoundRecList) const
INT32 FindRecords (INT32 FieldNum, const char *string, SIMPLE_ARRAY< INT32 > &FoundRecList, CHAR_ENCODING Encoding=CHAR_ENCODING_UTF8) const
INT32 FindRecords (INT32 FieldNum, double value, SIMPLE_ARRAY< INT32 > &FoundRecList) const
INT32 GetAttachedRecords (INT32 ElementNum, ELEMTYPE ElemType, SIMPLE_ARRAY< INT32 > &RecordList, FINDFLAG FindFlags=FINDFLAG_AllAttached, DBTABLE *SourceTable=0) const
ATTACHMENT GetAttachmentType () const
ERRVALUE GetComputedFieldQuery (INT32 FieldNum, MISTRING &QueryStr) const
CHAR_ENCODING GetEncoding () const
ERRVALUE GetFieldDescriptor (INT32 FieldNum, RVC::DESCRIPTOR &Descriptor) const
ERRVALUE GetFieldIndex (INT32 FieldNum, SIMPLE_ARRAY< INT32 > &Index, BITSET &DuplicateBits)
ERRVALUE GetFieldInfo (FIELDINFOARRAY &FieldArray) const
ERRVALUE GetFieldInfo (INT32 FieldNum, FIELDINFO &FieldInfo) const
ERRVALUE GetLinkFields (INT32 StartFieldNum, SIMPLE_ARRAY< INT32 > &FieldNumArray) const
LINKTYPE GetLinkType () const
INT32 GetNumDeletedRecords () const
INT32 GetNumFields () const
INT32 GetNumRecords () const
REFELEM GetReferenceElement () const
INT32 GetRelatedRecords (const RECORD &record, SIMPLE_ARRAY< INT32 > &RecordList, FINDFLAG FindFlags=FINDFLAG_AllAttached) const
INT32 GetRelatedRecords (INT32 RecordNum, INT32 BaseTableNum, SIMPLE_ARRAY< INT32 > &RecordList, FINDFLAG FindFlags=FINDFLAG_AllAttached) const
ERRVALUE GetTableMetadata (SIMPLE_ARRAY< UINT8 > &buffer) const
INT32 GetTableNumber () const
USAGE GetUsage () const
VIEWMODE GetViewMode () const
LRECT2D GetWindowRect () const
bool HasCapability (CAPABILITY capability) const
bool IsHidden () const
bool IsInternal () const
bool IsMissing () const
bool IsPrompt () const
bool IsUserDefined () const
bool IsValid () const
bool IsWritable () const
ERRVALUE Link (RVC::DBASE &parent, const DESCRIPTOR &Descriptor, const LINKPARMS &LinkParms, const CREDENTIALS *pCredentials RVC_DEFAULT_CREDENTIALS)
ERRVALUE Make (RVC::DBASE &parent, const DESCRIPTOR &Descriptor, MAKEPARMS &MakeParms, const CREDENTIALS *pCredentials RVC_DEFAULT_CREDENTIALS)
ERRVALUE MakeDistinctTableFromField (RVC::DBASE &parent, const RVC::DBTABLE &SourceTable, INT32 Field, const DESCRIPTOR &Descriptor, const CREDENTIALS *pCredentials RVC_DEFAULT_CREDENTIALS)
ERRVALUE Open (OPENMODE OpenMode=OPENMODE_Read, MDLGPARENT dlgparent=0, const CREDENTIALS *pCredentials=0)
ERRVALUE Open (const RVC::OBJITEM &ObjItem, OPENMODE OpenMode=OPENMODE_Read, MDLGPARENT dlgparent=0, const CREDENTIALS *pCredentials=0)
ERRVALUE Open (const DBTABLE &twin, OPENMODE OpenMode=OPENMODE_Read, MDLGPARENT dlgparent=0, const CREDENTIALS *pCredentials=0)
ERRVALUE Open (const RVC::DBASE &parent, INT32 TableNum, OPENMODE OpenMode=OPENMODE_Read, MDLGPARENT dlgparent=0, const CREDENTIALS *pCredentials=0)
ERRVALUE Open (const RVC::DBASE &parent, const RVC::OBJECTNAME &ShortName, OPENMODE OpenMode=OPENMODE_Read, MDLGPARENT dlgparent=0, const CREDENTIALS *pCredentials=0)
ERRVALUE Open (const RVC::DBASE &parent, const MISTRING &TableName, OPENMODE OpenMode=OPENMODE_Read, MDLGPARENT dlgparent=0, const CREDENTIALS *pCredentials=0)
RVC::DBTABLEoperator= (const RVC::DBTABLE &rhs)
ERRVALUE Read (CURSOR &cursor, const BOOKMARK &bookmark, RECORD &Record) const
ERRVALUE Read (CURSOR &cursor, RECORD &Record) const
ERRVALUE Read (INT32 RecordNum, RECORD &Record) const
ERRVALUE Read (const BOOKMARK &Bookmark, RECORD &Record) const
ERRVALUE ReadConstraint (std::vector< CONSTRAINT > &ConstraintList) const
ERRVALUE ReadDefault (RECORD &Record) const
INT32 ReadInverseDBList (INT32 RecNum, SIMPLE_ARRAY< DBLISTELMT > &List)
void RecordBegin (RECORDITERATOR &Iterator, ITERATERECORD IterateRecord=ITERATERECORD_SkipDeleted, INT32 FieldNum=0)
void RecordBegin (CONST_RECORDITERATOR &Iterator, ITERATERECORD IterateRecord=ITERATERECORD_SkipDeleted, INT32 FieldNum=0) const
ERRVALUE RemoveDuplicateRecords ()
ERRVALUE RemoveUnattachedRecords ()
ERRVALUE Resize (INT32 NewNumRecords, bool CleanDBList)
INT32 SearchIndex (INT32 FieldNum, const RECORD &Record, INT32 RecFieldNum, INT32 &offset, INDEXSEARCH flag) const
INT32 SearchIndex (INT32 FieldNum, const MISTRING &value, INT32 &offset, INDEXSEARCH flag) const
INT32 SearchIndex (INT32 FieldNum, double value, INT32 &offset, INDEXSEARCH flag) const
template<class _CT >
INT32 SearchIndex (INT32 FieldNum, const _CT &item, INT32 &offset, INDEXSEARCH flag=INDEXSEARCH_ReturnIndexOffset, CHAR_ENCODING Encoding=CHAR_ENCODING_ASCII) const
template<class _CT >
INT32 SearchIndex (INT32 FieldNum, const _CT &item, const FIELDINFO &finfo, INT32 &offset, INDEXSEARCH flag=INDEXSEARCH_ReturnIndexOffset, CHAR_ENCODING Encoding=CHAR_ENCODING_ASCII) const
ERRVALUE SetAttachmentType (ATTACHMENT Attachment)
ERRVALUE SetComputedFieldQuery (INT32 FieldNum, const MISTRING &QueryStr)
void SetEncoding (CHAR_ENCODING Encoding)
ERRVALUE SetFieldDescriptor (const RVC::DESCRIPTOR &Descriptor)
ERRVALUE SetFieldInfo (FIELDINFOARRAY &FieldArray, const SIMPLE_ARRAY< int > &NewToOld)
ERRVALUE SetFieldInfo (FIELDINFOARRAY &FieldArray)
ERRVALUE SetFieldInfo (INT32 FieldNum, const FIELDINFO &FieldInfo)
ERRVALUE SetPromptOnAddElement (bool prompt=true)
ERRVALUE SetReadOnly (bool bReadOnly=true)
ERRVALUE SetReferenceElement (REFELEM RefElem)
ERRVALUE SetUsage (DBTABLE::USAGE usage)
ERRVALUE SetViewMode (VIEWMODE ViewMode)
void SetWindowRect (const LRECT2D &rect)
ERRVALUE UpgradeLinkToOLEDB ()
ERRVALUE ValidateAccess (INT32 FieldNum, PERMISSIONS Permission, bool bGenerateErrorMsg=true) const
ERRVALUE ValidateAccess (PERMISSIONS Permission, bool bGenerateErrorMsg=true) const
ERRVALUE ValidateTableName (OBJECTNAME &NewTableName, SIMPLE_ARRAY< OBJECTNAME > &NewFieldNames)
ERRVALUE Write (CURSOR &cursor, const BOOKMARK &bookmark, RECORD &Record)
ERRVALUE Write (CURSOR &cursor, RECORD &Record)
ERRVALUE Write (const BOOKMARK &Bookmark, RECORD &Record)
ERRVALUE Write (INT32 RecordNum, RECORD &Record)
ERRVALUE WriteConstraint (const std::vector< CONSTRAINT > &ConstraintList)

Static Public Member Functions

static TEXTID GetAttachmentTextID (ATTACHMENT attachment)
static bool HasDBTypeCapability (LINKTYPE LinkType, CAPABILITY Capability)

Detailed Description

Manages RVC::OBJTYPE_Table objects.

RVC Object Types that this class supports: RVC::OBJTYPE_Table.

Default RVC Object Type for this class: RVC::OBJTYPE_Table.

Valid parents for this class:


Member Typedef Documentation

typedef ENUMSET<USAGE, USAGE_LAST> RVC::DBTABLE::USAGESET

Member Enumeration Documentation

Database table attachment type.

Enumerator:
ATTACHMENT_Unknown 

Your standard free-for-all.

ATTACHMENT_OneRecordPerElement 

But may use record for multiple elements.

ATTACHMENT_OneElementPerRecord 

But element may have multiple records.

ATTACHMENT_OneToOne 

At most one record per element and one element per record.

ATTACHMENT_RelatedOnly 

No attachments at all, only related.

ATTACHMENT_Identity 

Record number is element number.

ATTACHMENT_NoRestrictions 

Your standard attached to element free-for-all.

Table capability flags, passed to RVCDBTABLE::HasCapability().

Enumerator:
CAPABILITY_Create 
CAPABILITY_Link 
CAPABILITY_ReadMemo 
CAPABILITY_WriteMemo 
CAPABILITY_WriteRecord 
CAPABILITY_MultiTable 
CAPABILITY_Server 
CAPABILITY_Import 
CAPABILITY_Export 
CAPABILITY_DeleteRecord 
CAPABILITY_UserWritable 
CAPABILITY_CanSetUserWrite 
CAPABILITY_ChangeFields 
CAPABILITY_AddFields 
CAPABILITY_DeleteFields 
CAPABILITY_AddRecord 
CAPABILITY_RandomAccess 
CAPABILITY_ReadBinary 
CAPABILITY_WriteBinary 
CAPABILITY_WriteIfOpenForWrite 

Will tell us if we _could_ get write permission if we tried, even if currently open for read only.

CAPABILITY_BookmarksAreNotAbsolute 

If a table has this "capability", then bookmarks are hash values, not absolute record numbers.

Predefined table ID's.

Enumerator:
DEFINEDID_Internal 

The "Built-in" table. Not valid for TIN internal tables.

DEFINEDID_InternalNode 

Not valid for TIN internal tables.

DEFINEDID_Invalid 
DEFINEDID_New 

Flags for finding attached record methods (i.e. RVCDBTABLE::GetAttachedRecords()).

Enumerator:
FINDFLAG_AllAttached 
FINDFLAG_OnlyDirect 
FINDFLAG_FirstMatch 

Flags for searching on an index methods (i.e. RVCDBTABLE::SearchIndex()).

Enumerator:
INDEXSEARCH_ReturnIndexOffset 
INDEXSEARCH_CheckExists 
INDEXSEARCH_ReturnRecordNumber 
INDEXSEARCH_ReturnInsertOffset 
Enumerator:
ITERATERECORD_None 
ITERATERECORD_SkipDeleted 
ITERATERECORD_Sort 
ITERATERECORD_UniqueOnly 
ITERATERECORD_SaveIndex 
ITERATERECORD_SingleKey 
Enumerator:
KEYFLAG_None 
KEYFLAG_PrimaryKey 

Field is a primary key (force index).

KEYFLAG_ForeignKey 

Field is a foreign key (index optional).

KEYFLAG_Indexed 

Field has index.

KEYFLAG_RebuildIndex 

Rebuild the index if already there.

KEYFLAG_Sorted 

Hint that table is already sorted.

Type of external table.

Enumerator:
LINKTYPE_Internal 

TNTmips internal format.

LINKTYPE_MIPS 

MIPS external format (old RVF style).

LINKTYPE_DBASE3 

dBase III+ format (external only)

LINKTYPE_INFO 

INFO format (external only).

LINKTYPE_DBASE4 

dBase IV (external only)

LINKTYPE_RBASE 

R:BASE (external only).

LINKTYPE_DBASE2 

Dbase 2 (external only).

LINKTYPE_ODBC 

Link to ODBC server (external only).

LINKTYPE_CSV 

Comma Seperated values (export only).

LINKTYPE_TAB 

MapInfo TAB files.

LINKTYPE_ORACLE 

Oracle server.

LINKTYPE_RDBMS 

OLEDB or PostgreSQL.

LINKTYPE_LAS 

LiDAR format 1.1 file.

LINKTYPE_NUMTYPES 

The number of link types.

Enumerator:
PERMISSION_View 
PERMISSION_Modify 
PERMISSION_Delete 
PERMISSION_ViewStructure 
PERMISSION_ModifyStructure 
PERMISSION_Duplicate 
PERMISSION_ReadACL 
PERMISSION_ChangeACL 

Record referencing type.

Enumerator:
RECORDREFTYPE_New 

Reference to "new" record.

RECORDREFTYPE_Absolute 

Reference number is absolute.

RECORDREFTYPE_Bookmark 

Reference number is bookmark value.

Flags for element referenced tables (TIN is the only one so far).

Enumerator:
REFELEM_All 
REFELEM_Node 
REFELEM_Edge 
REFELEM_Triangle 
REFELEM_Hull 

Result values for CompareStructures() method.

Enumerator:
STRUCTCOMPARE_DoNotMatch 

Table structures do not match.

STRUCTCOMPARE_Exact 

Table structures match exactly.

STRUCTCOMPARE_Compatible 

Table structures are compatible, record fields can be converted without loss of data.

STRUCTCOMPARE_SameTable 

Both tables point to the same linked table.

Table usage, defines specialized tables.

Enumerator:
USAGE_UserDefined 
USAGE_StdStats 
USAGE_ElementID 
USAGE_NodeTurn 
USAGE_ScaleSelect 
USAGE_Section 
USAGE_Internal 
USAGE_PointStyle 
USAGE_LineStyle 
USAGE_PolyStyle 
USAGE_TextStyle 
USAGE_MultiStyle 
USAGE_CADStyle 
USAGE_EditLog 
USAGE_Selection 
USAGE_FlightPath 
USAGE_PointOfInterest 
USAGE_LegendElement 
USAGE_StyleParameters 
USAGE_SelectParameters 
USAGE_ExtrudedPoints 
USAGE_InfluenceSphere 
USAGE_Sketch 

user-defined table on a sketch layer

USAGE_ClumpRaster 

Output of Raster Clump process.

USAGE_Enumeration 
USAGE_Shape 

The 'directly' attached table for the shape object.

USAGE_PickList 

Pick list table.

USAGE_Properties 

Properties, typically for spatial object.

USAGE_FieldOfView 

Field of view (for viewshed).

USAGE_LAST 
Enumerator:
VIEWMODE_Tabular 
VIEWMODE_SingleRecord 

Constructor & Destructor Documentation

RVC::DBTABLE::DBTABLE (  ) 

Default constructor.

RVC::DBTABLE::DBTABLE ( const RVC::DBTABLE rhs  ) 

Copy constructor.

Parameters:
rhs Copy Constructor
virtual RVC::DBTABLE::~DBTABLE (  )  [virtual]

Destructor.


Member Function Documentation

ERRVALUE RVC::DBTABLE::AddRecord ( RECORD Record,
BOOKMARK Bookmark 
)

Add a record to the table.

Parameters:
Record Record to write
Bookmark Bookmark of new record RETURNED
INT32 RVC::DBTABLE::AddRecord ( RECORD Record  ) 

Add a record to the table.

Returns:
Record number for the new record Note: You should not depend on this returning the record number. If the table is a link to any external format, it may be returning a bookmark number instead. Eventually this method will be modified to only return ERRVALUE. This version would be deprecated, but it's the one you would call if you don't care what the new record number is.
ERRVALUE RVC::DBTABLE::BuildIndex ( INT32  FieldNum,
KEYFLAGS  flags = KEYFLAG_Indexed 
)

Create an index on a field in the table.

Parameters:
flags Type of key to make
ERRVALUE RVC::DBTABLE::ChangeAttachmentType ( ATTACHMENT  Attachment,
ELEMTYPE  ElemType = ELEMTYPE_Empty 
)

Set table attachment type Note: This method resolves existing attached/related records and tries to keep everything correct.

ERRVALUE RVC::DBTABLE::Combine ( const RVC::DBTABLE rhs,
RVC::DBASE::JOINFLAGS  flags,
RVC::DBASE dest,
const RVC::DESCRIPTOR DestDescriptor 
)

Combine rhs table with this table.

Parameters:
dest Database in which to store table
DestDescriptor Descriptor of new table
DEPRECATED ERRVALUE RVC::DBTABLE::Combine ( const RVC::DBTABLE rhs,
RVC::DBASE::JOINFLAGS  flags,
RVC::DBASE dest,
const MISTRING name,
const MISTRING desc 
)

Combine rhs table with this table.

Parameters:
dest Database in which to store table
name Output table name
desc Output table description
STRUCTCOMPARE RVC::DBTABLE::CompareStructures ( const RVC::DBTABLE rhs  )  const

Compare two table structures.

Returns:
STRUCTCOMPARE enum value describing if and how the table structures match
ATTACHMENT RVC::DBTABLE::ComputeMinimumAttachmentType ( ELEMTYPE  ElemType = ELEMTYPE_Empty  )  const

Determine the minimum ATTACHMENT type based on current attachmets.

Looks at current element to record attachments to determine the minimum setting for attachment.

If the table is RelatedOnly the returned type will be one of the attached (non-related) attachment types. Call ChangeAttachmentType to actually resolve the attachments. If the table is already OneToOne or Identity it will return that. It will never return suggest Identity unless the table is already Identity.

ERRVALUE RVC::DBTABLE::CopyRecordAttachmentsTo ( RVC::DBTABLE DestTable,
const SIMPLE_ARRAY< INT32 > &  SrcToDestTrans 
) const

Copy the direct record attachments from one table to another.

ERRVALUE RVC::DBTABLE::CopyTo ( RVC::DBASE DestDatabase,
RVC::DESCRIPTOR pDestDescriptor = 0,
INT32 pNewTableNumber = 0,
SIMPLE_ARRAY< INT32 > *  pRecordTrans = 0,
DELEGATE_BOOL_UINT32  Filter = 0,
const RVC::CREDENTIALS pCredentials = 0,
RVC::DBASE::COPYFLAG  flags = RVC::DBASE::COPYFLAG_None 
) const

Copy a table to another database.

Parameters:
DestDatabase The database to copy to
pDestDescriptor The new table's descriptor. If not specified, the new table will get the same descriptor as the source table.
pRecordTrans Optional SIMPLE_ARRAY in which will be returned the translation from source record numbers to destination record numbers. This is only an issue if the source table has deleted records, or if the Filter is used to only copy a portion of the table.
pNewTableNumber Pointer to INT32 into which to return the new table number.
Filter Delegate to call to determine if a record should be copied. Example: DELEGATE_BOOL_UINT32(&bits, &BITSET::GetBit)
Credentials The credentials to use when creating the table
flags Supported copy flags: RVC::DBASE::COPYFLAG_RemoveStdAttribTables -- will silently refuse to copy the table if it's a standard attribute table RVC::DBASE::COPYFLAG_TableLinks -- If the table is a link to an external table, it will just make a new link in the destination database RVC::DBASE::COPYFLAG_MinimizeTableSize RVC::DBASE::COPYFLAG_FreezeComputedFields -- Any computed fields will be computed and frozen (no longer computed).
Parameters:
pDestDescriptor New table's descriptor (will use source table's if not specified)
ERRVALUE RVC::DBTABLE::DeleteRecord ( CURSOR cursor,
const BOOKMARK bookmark 
)

Delete a record from the table using the cursor and a bookmark.

ERRVALUE RVC::DBTABLE::DeleteRecord ( INT32  RecordNum  ) 

Delete a record from the table using the record number.

ERRVALUE RVC::DBTABLE::Drop ( bool  CleanDBList  ) 

Drop a table (delete).

Parameters:
CleanDBList Remove the entries in the DBlist that refer to this table
INT32 RVC::DBTABLE::FindField ( const MISTRING name  )  const

Find the field corresponding to the name.

Returns:
Field number of >= 0, R_FieldNotFound if field does not exist, < 0 Error code
DEPRECATED INT32 RVC::DBTABLE::FindField ( const RVC::OBJECTNAME name  )  const

Find the field corresponding to the name.

Returns:
Field number of >= 0, R_FieldNotFound if field does not exist, < 0 Error code
Deprecated:
Use the MISTRING version or FindFieldByShortName(), because field names can be bigger than 16 characters now
INT32 RVC::DBTABLE::FindFieldByShortName ( const RVC::OBJECTNAME name  )  const

Find the field cooresponding to the name.

Returns:
Field number of >= 0, R_FieldNotFound if field does not exist, < 0 Error code
INT32 RVC::DBTABLE::FindFieldByUsage ( RVC::DBTABLE::FIELDINFO::USAGE  Usage  )  const

Find a field with a specific usage.

Returns -1 if the table does not have a field with the specified usage. If the table has mutliple fields of the specified usage, it returns the first one.

INT32 RVC::DBTABLE::FindRecords ( INT32  FieldNum,
const RECORD record,
SIMPLE_ARRAY< INT32 > &  FoundRecList,
INT32  RecordFieldNum = -1 
) const

Find the records that match the record data for a given field.

Returns:
Number of records found or <0 if error
Parameters:
record Record containing stuff to compare to
RecordFieldNum Record field number to use, default is 'FieldNum'
INT32 RVC::DBTABLE::FindRecords ( INT32  FieldNum,
const MISTRING string,
SIMPLE_ARRAY< INT32 > &  FoundRecList 
) const

Find the records that match the record data for a given field.

Returns:
Number of records found or <0 if error
Parameters:
string Buffer containing string to compare to
INT32 RVC::DBTABLE::FindRecords ( INT32  FieldNum,
const MIUNICODE string,
SIMPLE_ARRAY< INT32 > &  FoundRecList 
) const

Find the records that match the record data for a given field.

Returns:
Number of records found or <0 if error
Parameters:
string Buffer containing string to compare to
INT32 RVC::DBTABLE::FindRecords ( INT32  FieldNum,
const char *  string,
SIMPLE_ARRAY< INT32 > &  FoundRecList,
CHAR_ENCODING  Encoding = CHAR_ENCODING_UTF8 
) const

Find the records that match the record data for a given field.

Returns:
Number of records found or <0 if error
Parameters:
string Buffer containing string to compare to
INT32 RVC::DBTABLE::FindRecords ( INT32  FieldNum,
double  value,
SIMPLE_ARRAY< INT32 > &  FoundRecList 
) const

Find the records that match the record data for a given field.

Returns:
Number of records found or <0 if error
Parameters:
value Buffer containing value to compare to
INT32 RVC::DBTABLE::GetAttachedRecords ( INT32  ElementNum,
ELEMTYPE  ElemType,
SIMPLE_ARRAY< INT32 > &  RecordList,
FINDFLAG  FindFlags = FINDFLAG_AllAttached,
DBTABLE SourceTable = 0 
) const

Get the records attached to the element for this table.

Returns:
Number of records attached or <0 if error
Parameters:
SourceTable Source table if ElemType == ELEMTYPE_Record
static TEXTID RVC::DBTABLE::GetAttachmentTextID ( ATTACHMENT  attachment  )  [static]

Get TEXTID for attachment.

Parameters:
attachment Attachment type
ATTACHMENT RVC::DBTABLE::GetAttachmentType (  )  const

Get table attachment type.

Returns:
Table attachment type
ERRVALUE RVC::DBTABLE::GetComputedFieldQuery ( INT32  FieldNum,
MISTRING QueryStr 
) const

Get the computed field query for a field.

CHAR_ENCODING RVC::DBTABLE::GetEncoding (  )  const

Get table encoding.

Returns:
Table encoding
ERRVALUE RVC::DBTABLE::GetFieldDescriptor ( INT32  FieldNum,
RVC::DESCRIPTOR Descriptor 
) const

Get the RVC::DESCRIPTOR for a single field.

ERRVALUE RVC::DBTABLE::GetFieldIndex ( INT32  FieldNum,
SIMPLE_ARRAY< INT32 > &  Index,
BITSET DuplicateBits 
)

Get the index for a field, will build one if needed.

Parameters:
Index List of record numbers in sorted order
DuplicateBits Bit set to true if value in the record for that field is equal to the previous record
ERRVALUE RVC::DBTABLE::GetFieldInfo ( FIELDINFOARRAY FieldArray  )  const

Get the FIELDINFO's for the table.

ERRVALUE RVC::DBTABLE::GetFieldInfo ( INT32  FieldNum,
FIELDINFO FieldInfo 
) const

Get the FIELDINFO for a single field.

ERRVALUE RVC::DBTABLE::GetLinkFields ( INT32  StartFieldNum,
SIMPLE_ARRAY< INT32 > &  FieldNumArray 
) const

Get the list of fields linked to the starting field.

Parameters:
StartFieldNum Field to start checking on
FieldNumArray One item 'StartFieldNum' if no next_key links, > 1 items if next_key links exists
LINKTYPE RVC::DBTABLE::GetLinkType (  )  const

Get the link type of this table.

INT32 RVC::DBTABLE::GetNumDeletedRecords (  )  const

Get the number of deleted records in the table.

INT32 RVC::DBTABLE::GetNumFields (  )  const

Get the number of field in the table.

Returns:
Number of fields
INT32 RVC::DBTABLE::GetNumRecords (  )  const

Get the number of records in the table More accurately, this method returns the maximum record number + 1.

If the table has any deleted records, they are not subtracted from the count.

Returns:
Number of records
REFELEM RVC::DBTABLE::GetReferenceElement (  )  const

Get reference element (This table belongs to what element?).

Returns:
Reference flags
INT32 RVC::DBTABLE::GetRelatedRecords ( const RECORD record,
SIMPLE_ARRAY< INT32 > &  RecordList,
FINDFLAG  FindFlags = FINDFLAG_AllAttached 
) const

Get the records from this table attached to the given record.

Returns:
Number of records attached or <0 if error
Parameters:
record Record to get attachments for
RecordList List of records that are related RETURNED
FindFlags find flags
INT32 RVC::DBTABLE::GetRelatedRecords ( INT32  RecordNum,
INT32  BaseTableNum,
SIMPLE_ARRAY< INT32 > &  RecordList,
FINDFLAG  FindFlags = FINDFLAG_AllAttached 
) const

Get the records from this table attached to the record in the basetable.

Returns:
Number of records attached or <0 if error
Parameters:
RecordNum Record in the base table to get attachments for
BaseTableNum Basetable that contains the record stated above
RecordList List of records that are related RETURNED
FindFlags find flags
ERRVALUE RVC::DBTABLE::GetTableMetadata ( SIMPLE_ARRAY< UINT8 > &  buffer  )  const

Get the metadata for the table.

Note that this method differs from RVC::OBJECT::GetMetadata in that this one will make sure that the returned metadata includes descriptors for all the fields, even if the actual object doesn't have metadata for them.

INT32 RVC::DBTABLE::GetTableNumber (  )  const

Get table number.

Returns:
Table number
USAGE RVC::DBTABLE::GetUsage (  )  const

Get table usage.

Returns:
Table usage
VIEWMODE RVC::DBTABLE::GetViewMode (  )  const

Get the default view mode.

LRECT2D RVC::DBTABLE::GetWindowRect (  )  const

Get view position of table.

Returns:
Table view position
bool RVC::DBTABLE::HasCapability ( CAPABILITY  capability  )  const

Get table capability.

Returns:
Table capability
static bool RVC::DBTABLE::HasDBTypeCapability ( LINKTYPE  LinkType,
CAPABILITY  Capability 
) [static]

Determine if a database type supports a given capability.

bool RVC::DBTABLE::IsHidden (  )  const

Is the table hidden?

Returns:
'True' if the table is hidden
bool RVC::DBTABLE::IsInternal (  )  const

Is table an internal (no storage representation) table.

Returns:
'True' if the table is internal
bool RVC::DBTABLE::IsMissing (  )  const

Is table missing.

Occurs with linked tables

Returns:
'True' if the table is missing
bool RVC::DBTABLE::IsPrompt (  )  const

Is table a prompt table.

Used for adding elements

Returns:
'True' if the table is a prompt table
bool RVC::DBTABLE::IsUserDefined (  )  const

Is table a UserDefined table.

(Currently USAGE_UserDefined||USAGE_Sketch||USAGE_Shape)

Returns:
'True' if the table is a user defined table
bool RVC::DBTABLE::IsValid (  )  const

Is table valid.

Occurs with deleted tables

Returns:
'True' if the table is valid
bool RVC::DBTABLE::IsWritable (  )  const

Can the table be written to?

Returns:
'True' if the table is writable

Reimplemented from RVC::OBJECT.

ERRVALUE RVC::DBTABLE::Link ( RVC::DBASE parent,
const DESCRIPTOR Descriptor,
const LINKPARMS LinkParms,
const CREDENTIALS *pCredentials  RVC_DEFAULT_CREDENTIALS 
)

Link to an external table, field info returned in the LINKPARMS.

Parameters:
RVC_DEFAULT_CREDENTIALS User credentials passed in, NULL for default behavior
ERRVALUE RVC::DBTABLE::Make ( RVC::DBASE parent,
const DESCRIPTOR Descriptor,
MAKEPARMS MakeParms,
const CREDENTIALS *pCredentials  RVC_DEFAULT_CREDENTIALS 
)

Make a table.

Parameters:
RVC_DEFAULT_CREDENTIALS User credentials passed in, NULL for default behavior
ERRVALUE RVC::DBTABLE::MakeDistinctTableFromField ( RVC::DBASE parent,
const RVC::DBTABLE SourceTable,
INT32  Field,
const DESCRIPTOR Descriptor,
const CREDENTIALS *pCredentials  RVC_DEFAULT_CREDENTIALS 
)

Create a new table with one field listing all distinct values of a specific field.

Parameters:
Descriptor Field number from source table
RVC_DEFAULT_CREDENTIALS User credentials passed in, NULL for default behavior
ERRVALUE RVC::DBTABLE::Open ( OPENMODE  OpenMode = OPENMODE_Read,
MDLGPARENT  dlgparent = 0,
const CREDENTIALS pCredentials = 0 
)

Open an attached RVC::DBTABLE instance.

The instance must be attached for this to work.

Parameters:
OpenMode Mode in which to open the rvc object
dlgparent Parent dialog handle, 0 for default handle
pCredentials User credentials passed in, NULL for default behavior

Reimplemented from RVC::OBJECT.

ERRVALUE RVC::DBTABLE::Open ( const RVC::OBJITEM ObjItem,
OPENMODE  OpenMode = OPENMODE_Read,
MDLGPARENT  dlgparent = 0,
const CREDENTIALS pCredentials = 0 
)

Open an RVC::DBTABLE instance using a RVC::OBJITEM instance.

This method will attach and open the file and database table object if possible

Parameters:
ObjItem This contains the file and rvc object location information
OpenMode Mode in which to open the rvc object
dlgparent Parent dialog handle, 0 for default handle
pCredentials User credentials passed in, NULL for default behavior

Reimplemented from RVC::OBJECT.

ERRVALUE RVC::DBTABLE::Open ( const DBTABLE twin,
OPENMODE  OpenMode = OPENMODE_Read,
MDLGPARENT  dlgparent = 0,
const CREDENTIALS pCredentials = 0 
)

Open a table using another instance of that table.

Parameters:
OpenMode Mode in which to open the rvc object
dlgparent Parent dialog handle, 0 for default handle
pCredentials User credentials passed in, NULL for default behavior

Reimplemented from RVC::OBJECT.

ERRVALUE RVC::DBTABLE::Open ( const RVC::DBASE parent,
INT32  TableNum,
OPENMODE  OpenMode = OPENMODE_Read,
MDLGPARENT  dlgparent = 0,
const CREDENTIALS pCredentials = 0 
)

Open an existing table using the table index.

Parameters:
OpenMode Mode in which to open the rvc object
dlgparent Parent dialog handle, 0 for default handle
pCredentials User credentials passed in, NULL for default behavior
ERRVALUE RVC::DBTABLE::Open ( const RVC::DBASE parent,
const RVC::OBJECTNAME ShortName,
OPENMODE  OpenMode = OPENMODE_Read,
MDLGPARENT  dlgparent = 0,
const CREDENTIALS pCredentials = 0 
)

Open an existing table using the table name.

Parameters:
OpenMode Mode in which to open the rvc object
dlgparent Parent dialog handle, 0 for default handle
pCredentials User credentials passed in, NULL for default behavior
ERRVALUE RVC::DBTABLE::Open ( const RVC::DBASE parent,
const MISTRING TableName,
OPENMODE  OpenMode = OPENMODE_Read,
MDLGPARENT  dlgparent = 0,
const CREDENTIALS pCredentials = 0 
)

Open an existing table using the table name.

Parameters:
OpenMode Mode in which to open the rvc object
dlgparent Parent dialog handle, 0 for default handle
pCredentials User credentials passed in, NULL for default behavior
RVC::DBTABLE& RVC::DBTABLE::operator= ( const RVC::DBTABLE rhs  ) 

Assignment.

Reimplemented from RVC::OBJECT.

Reimplemented in RVC::DBTABLE_PROPERTIES, and RVC::DBTABLE_STYLE.

ERRVALUE RVC::DBTABLE::Read ( CURSOR cursor,
const BOOKMARK bookmark,
RECORD Record 
) const [inline]

Read a record from the table using a cursor / bookmark pair into a pre-allocated buffer.

ERRVALUE RVC::DBTABLE::Read ( CURSOR cursor,
RECORD Record 
) const [inline]

Read a record from the table using a cursor into a pre-allocated buffer.

ERRVALUE RVC::DBTABLE::Read ( INT32  RecordNum,
RECORD Record 
) const [inline]

Read a record from the table using a record number into a pre-allocated buffer.

ERRVALUE RVC::DBTABLE::Read ( const BOOKMARK Bookmark,
RECORD Record 
) const [inline]

Read a record from the table using a bookmark (relative to the default bookmark cursor) into a pre-allocated buffer.

ERRVALUE RVC::DBTABLE::ReadConstraint ( std::vector< CONSTRAINT > &  ConstraintList  )  const
ERRVALUE RVC::DBTABLE::ReadDefault ( RECORD Record  )  const [inline]

Read a record from the table using a record number into a pre-allocated buffer.

INT32 RVC::DBTABLE::ReadInverseDBList ( INT32  RecNum,
SIMPLE_ARRAY< DBLISTELMT > &  List 
)
void RVC::DBTABLE::RecordBegin ( RECORDITERATOR Iterator,
ITERATERECORD  IterateRecord = ITERATERECORD_SkipDeleted,
INT32  FieldNum = 0 
)

Get an iterator to the first viable record in the table.

void RVC::DBTABLE::RecordBegin ( CONST_RECORDITERATOR Iterator,
ITERATERECORD  IterateRecord = ITERATERECORD_SkipDeleted,
INT32  FieldNum = 0 
) const

Get a constant iterator to the first viable record in the table.

ERRVALUE RVC::DBTABLE::RemoveDuplicateRecords (  ) 

Remove duplicate records from the table.

ERRVALUE RVC::DBTABLE::RemoveUnattachedRecords (  ) 

Remove unattached records from the table.

ERRVALUE RVC::DBTABLE::Resize ( INT32  NewNumRecords,
bool  CleanDBList 
)

Set the number of records in the table. Does not work with ATTACHMENT_Identity tables.

INT32 RVC::DBTABLE::SearchIndex ( INT32  FieldNum,
const RECORD Record,
INT32  RecFieldNum,
INT32 offset,
INDEXSEARCH  flag 
) const

Search field index with a value in the RECORD for the match.

Returns:
Number of matches or error < 0
INT32 RVC::DBTABLE::SearchIndex ( INT32  FieldNum,
const MISTRING value,
INT32 offset,
INDEXSEARCH  flag 
) const

Search field index with a string value for the match.

Returns:
Number of matches or error < 0
INT32 RVC::DBTABLE::SearchIndex ( INT32  FieldNum,
double  value,
INT32 offset,
INDEXSEARCH  flag 
) const

Search field index with a double value for the match.

Returns:
Number of matches or error < 0
template<class _CT >
INT32 RVC::DBTABLE::SearchIndex ( INT32  FieldNum,
const _CT &  item,
INT32 offset,
INDEXSEARCH  flag = INDEXSEARCH_ReturnIndexOffset,
CHAR_ENCODING  Encoding = CHAR_ENCODING_ASCII 
) const [inline]

Search field index with a value that matches the field to search for the record match.

Returns:
Number of matches or error < 0
Parameters:
item MUST MATCH 'FieldNum' field type and size
Encoding Encoding to use (ignored except for non-unicode string fields)
template<class _CT >
INT32 RVC::DBTABLE::SearchIndex ( INT32  FieldNum,
const _CT &  item,
const FIELDINFO finfo,
INT32 offset,
INDEXSEARCH  flag = INDEXSEARCH_ReturnIndexOffset,
CHAR_ENCODING  Encoding = CHAR_ENCODING_ASCII 
) const [inline]

Search field index with a value for the record match.

Returns:
Number of matches or error < 0
Parameters:
Encoding Encoding to use (ignored except for non-unicode string fields)
ERRVALUE RVC::DBTABLE::SetAttachmentType ( ATTACHMENT  Attachment  ) 

Set table attachment type Note: This just blindly sets the attachment type without resolving anything.

Call ChangeAttachmentType if you need to resolve existing relationships and attachments

ERRVALUE RVC::DBTABLE::SetComputedFieldQuery ( INT32  FieldNum,
const MISTRING QueryStr 
)

Set the computed field query for a field.

void RVC::DBTABLE::SetEncoding ( CHAR_ENCODING  Encoding  ) 

Set table encoding.

ERRVALUE RVC::DBTABLE::SetFieldDescriptor ( const RVC::DESCRIPTOR Descriptor  ) 

Set the RVC::DESCRIPTOR for a single field Note, there is no field number.

The ShortName of the descriptor should match the short name of an existing field

ERRVALUE RVC::DBTABLE::SetFieldInfo ( FIELDINFOARRAY FieldArray,
const SIMPLE_ARRAY< int > &  NewToOld 
)

Modify all table FIELDINFO's.

ERRVALUE RVC::DBTABLE::SetFieldInfo ( FIELDINFOARRAY FieldArray  ) 

Modify all table FIELDINFO's.

ERRVALUE RVC::DBTABLE::SetFieldInfo ( INT32  FieldNum,
const FIELDINFO FieldInfo 
)

Modify specific table FIELDINFO.

ERRVALUE RVC::DBTABLE::SetPromptOnAddElement ( bool  prompt = true  ) 

Set whether or not this table should "Prompt when adding elements".

ERRVALUE RVC::DBTABLE::SetReadOnly ( bool  bReadOnly = true  ) 

Set the "read only" bit in the table header (will go away in favor of ACL).

ERRVALUE RVC::DBTABLE::SetReferenceElement ( REFELEM  RefElem  ) 

Set the reference element type.

ERRVALUE RVC::DBTABLE::SetUsage ( DBTABLE::USAGE  usage  ) 

Set table usage.

ERRVALUE RVC::DBTABLE::SetViewMode ( VIEWMODE  ViewMode  ) 

Set the default view mode of the table.

void RVC::DBTABLE::SetWindowRect ( const LRECT2D rect  ) 

Set view position of table.

ERRVALUE RVC::DBTABLE::UpgradeLinkToOLEDB (  ) 

If a table is an ODBC link to Access or Excel, this method will convert it to an OLE-DB link.

WARNING! Doing so will render the link unusable in TNT 2005:71 and earlier.

ERRVALUE RVC::DBTABLE::ValidateAccess ( INT32  FieldNum,
PERMISSIONS  Permission,
bool  bGenerateErrorMsg = true 
) const

Determine if the current user has permission to a given field in this table.

Returns:
0 If user has access, error code < 0 if not
Parameters:
bGenerateErrorMsg Pass false to not SetErrPosn on error
ERRVALUE RVC::DBTABLE::ValidateAccess ( PERMISSIONS  Permission,
bool  bGenerateErrorMsg = true 
) const

Determine if the current user has permission to access this table.

Returns:
0 If user has access, error code < 0 if not
Parameters:
bGenerateErrorMsg Pass false to not SetErrPosn on error
ERRVALUE RVC::DBTABLE::ValidateTableName ( OBJECTNAME NewTableName,
SIMPLE_ARRAY< OBJECTNAME > &  NewFieldNames 
)

Make sure that a table and field names are valid and unique This version assumes the table already exists.

There is also a ValidateTableName method on DBASE for use when creating a new table

ERRVALUE RVC::DBTABLE::Write ( CURSOR cursor,
const BOOKMARK bookmark,
RECORD Record 
) [inline]

Write a record in the table using a cursor / bookmark pair from a buffer.

ERRVALUE RVC::DBTABLE::Write ( CURSOR cursor,
RECORD Record 
) [inline]

Write a record in the table using a cursor from a buffer.

ERRVALUE RVC::DBTABLE::Write ( const BOOKMARK Bookmark,
RECORD Record 
) [inline]

Write a record to the table using a bookmark (relative to the default bookmark cursor).

ERRVALUE RVC::DBTABLE::Write ( INT32  RecordNum,
RECORD Record 
) [inline]

Write a record in the table using a record number from a buffer.

ERRVALUE RVC::DBTABLE::WriteConstraint ( const std::vector< CONSTRAINT > &  ConstraintList  ) 

The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:37:00 2012 for TNTsdk 2012 by  doxygen 1.6.1