casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::TableRowProxy Class Reference

Proxy for table row access. More...

#include <TableRowProxy.h>

List of all members.

Public Member Functions

 TableRowProxy ()
 Default constructor is only needed for the Block container.
 TableRowProxy (const TableProxy &table, const Vector< String > &columnNames, Bool exclude)
 Construct for the given columns in the table.
 TableRowProxy (const TableRowProxy &)
 Copy constructor (copy semantics).
 ~TableRowProxy ()
TableRowProxyoperator= (const TableRowProxy &)
 Assignment (copy semantics).
Bool isNull () const
 Test if the underlying TableRow object is invalid.
Bool isWritable () const
 Test if values can be written.
Record get (uInt rownr) const
 Get values for the given row.
void put (uInt rownr, const Record &values, Bool matchingFields)
 Put values for the given row.

Private Attributes

Bool isWritable_p
ROTableRow rorow_p
TableRow rwrow_p

Detailed Description

Proxy for table row access.

Intended use:

Public interface

Review Status

Reviewed By:
Paul Shannon
Date Reviewed:
1995/09/15
Test programs:
tgtable.g

Prerequisite

Etymology

TableRowProxy holds a TableRow object for the table glish client.

Synopsis

TableRowProxy gives access to row-based table accessor functions. It is primarily meant to be used in classes that wrap access to it from scripting languages (like Glish and Python). However, it can also be used directly from other C++ code.

A TableRowProxy object is usually created by class TableProxy .

Definition at line 72 of file TableRowProxy.h.


Constructor & Destructor Documentation

Default constructor is only needed for the Block container.

casa::TableRowProxy::TableRowProxy ( const TableProxy table,
const Vector< String > &  columnNames,
Bool  exclude 
)

Construct for the given columns in the table.

Copy constructor (copy semantics).


Member Function Documentation

Get values for the given row.

Test if the underlying TableRow object is invalid.

Test if values can be written.

Definition at line 110 of file TableRowProxy.h.

References isWritable_p.

TableRowProxy& casa::TableRowProxy::operator= ( const TableRowProxy )

Assignment (copy semantics).

void casa::TableRowProxy::put ( uInt  rownr,
const Record values,
Bool  matchingFields 
)

Put values for the given row.

The given record has to conform the fields in the table row.


Member Data Documentation

Definition at line 104 of file TableRowProxy.h.

Referenced by isWritable().

Definition at line 105 of file TableRowProxy.h.

Definition at line 106 of file TableRowProxy.h.


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