RDBColumn Class Reference

Provides interface for general column related methods. More...

#include <RDBColumn.h>

Inheritance diagram for RDBColumn:

Inheritance graph
[legend]

List of all members.

Public Types

Enumerations for column definitions and error conditions.
enum  Just { LEFT = '<', RIGHT = '>' }
 Acceptable column justifications. More...
enum  Type { MONTH = 'M', NUMERIC = 'N', STRING = 'S' }
 Acceptable column types. More...
enum  Err {
  NOERR = 0, LOSTPRECISION = EDOM, NONNUMERIC = EINVAL, OUTOFRANGE = ERANGE,
  NODATA = ENODATA
}
 Possible error conditions. More...
enum  Status { CMOG = 0x01, CEOG = 0x02, CBOG = 0x04 }
 Acceptable column justifications. More...

Public Member Functions

Constructing, destructing, and initializing RDBColumn objects.
 RDBColumn (const string &name="", const string &def="") throw ( RDBErr )
 Assigns name and definition to RDBColumn object.
 RDBColumn (const RDBColumn &col)
 Copies RDBColumn object.
virtual ~RDBColumn (void)
 Deletes resources allocated by RDBColumn object.
RDBColumnoperator= (const RDBColumn &col)
 Copies RDBColumn object.
virtual RDBColumnoperator= (const double &data)=0 throw ( RDBErr )
 Assigns data to RDBColumn object's _data member, converting as necessary.
virtual RDBColumnoperator= (const long &data)=0 throw ( RDBErr )
 Assigns data to RDBColumn object's _data member, converting as necessary.
virtual RDBColumnoperator= (const string &data)=0 throw ( RDBErr )
 Assigns data to RDBColumn object's _data member, converting as necessary.
Auto-indexing control methods.
virtual void advanceIdx (void)=0
 Increments index to the RDBColumn's data elements.
virtual void rewind (void)=0
 Rewinds index to the RDBColumn's data elements.
Group information ("break" column) methods.
virtual void setGroup (bool group)
 Turn on/off group tracking for this column object.
bool getGroup (void) const
virtual void setGroupValue (void)=0
 Sets the group value to the current data value.
virtual int newGroup (void)=0
 Returns the group status of this column object.
Data member initializers.
void setName (const string &name)
 Sets the name.
void setDef (const string &def) throw ( RDBErr )
 Sets the definition.
void setWidth (const long width)
 Sets the width.
void setType (const RDBColumn::Type type)
 Sets the type.
void setJust (const RDBColumn::Just just)
 Sets the justification.
void setDesc (const string &desc)
 Sets the description.
void setPrecision (const int precision)
 Sets the precision for numeric output and numeric to string conversion.
void setThrow (const bool t=true)
 Sets the excpeption throwing behavior.
void setErrNo (const int no=0)
 Sets the error status.
virtual bool setData (const double &data)=0 throw ( RDBErr )
 Sets the data value, converting as necessary.
virtual bool setData (const long &data)=0 throw ( RDBErr )
 Sets the data value, converting as necessary.
virtual bool setData (const string &data)=0 throw ( RDBErr )
 Sets the data value, converting as necessary.
Methods to map RDBColumn's data to user-supplied memory.
virtual void mapData (double data[], const size_t nelems=1) throw ( RDBErr )
 Maps data to user-supplied memory, if possible.
virtual void mapData (long data[], const size_t nelems=1) throw ( RDBErr )
 Maps data to user-supplied memory, if possible.
virtual void mapData (string data[], const size_t nelems=1) throw ( RDBErr )
 Maps data to user-supplied memory, if possible.
Data member accessors.
string getName (void) const
 Returns the name.
string getDef (void)
 Returns the definition.
long getWidth (void) const
 Returns the width.
RDBColumn::Type getType (void) const
 Returns the type.
RDBColumn::Just getJust (void) const
 Returns the justification.
string getDesc (void) const
 Returns the description.
int getPrecision (void) const
 Returns the precision.
bool getThrow (void) const
 Returns the state of the exception throwing behavior.
char * getErr (void) const
 Returns a brief description of the error condition.
int getErrNo (void) const
 Returns the error status.
virtual void * getData (void)=0
 Returns a pointer to the current data element.
virtual bool getData (double &data)=0 throw ( RDBErr )
 Returns the value of the current data element, converting if necessary.
virtual bool getData (long &data)=0 throw ( RDBErr )
 Returns the value of the current data element, converting if necessary.
virtual bool getData (string &data)=0 throw ( RDBErr )
 Returns the value of the current data element, converting if necessary.
virtual double getDataDouble (void)=0 throw ( RDBErr )
 Returns the value of the current data element, converting if necessary.
virtual long getDataLong (void)=0 throw ( RDBErr )
 Returns the value of the current data element, converting if necessary.
virtual string getDataString (void)=0 throw ( RDBErr )
 Returns the value of the current data element, converting if necessary.

Protected Member Functions

void convert (const double &idata, double &odata) throw ( RDBErr )
 Used to converted data based on user requests.
void convert (const double &idata, long &odata) throw ( RDBErr )
 Used to converted data based on user requests.
void convert (const double &idata, string &odata) throw ( RDBErr )
 Used to converted data based on user requests.
void convert (const long &idata, double &odata) throw ( RDBErr )
 Used to converted data based on user requests.
void convert (const long &idata, long &odata) throw ( RDBErr )
 Used to converted data based on user requests.
void convert (const long &idata, string &odata) throw ( RDBErr )
 Used to converted data based on user requests.
void convert (const string &idata, double &odata) throw ( RDBErr )
 Used to converted data based on user requests.
void convert (const string &idata, long &odata) throw ( RDBErr )
 Used to converted data based on user requests.
void convert (const string &idata, string &odata) throw ( RDBErr )
 Used to converted data based on user requests.
virtual istream & read (istream &is)=0 throw ( RDBErr )
 Called by the stream insertion operator.
virtual istream & extract (istream &is, double &data) throw ( RDBErr )
 Overridden in the subclass of this datatype.
virtual istream & extract (istream &is, long &data) throw ( RDBErr )
 Overridden in the subclass of this datatype.
virtual istream & extract (istream &is, string &data) throw ( RDBErr )
 Overridden in the subclass of this datatype.
virtual ostream & write (ostream &os) const =0
 Called by the stream extraction operator.
virtual ostream & insert (ostream &os, double &data) const
 Overridden in the subclass of this datatype.
virtual ostream & insert (ostream &os, long &data) const
 Overridden in the subclass of this datatype.
virtual ostream & insert (ostream &os, string &data) const
 Overridden in the subclass of this datatype.

Protected Attributes

string _name
 Name.
string _def
 Definition.
long _width
 Width.
RDBColumn::Type _type
 Data type.
RDBColumn::Just _just
 Justification.
string _desc
 Description.
bool _changed
 Indicates state for the definition field.
bool _throw
 State of the exception throwing behavior.
int _errno
 Error state.
int _precision
 Precision used for stream output or numeric to string conversion.
stringstream _strstrm
 Used for numeric to string conversion.
bool _group
 This is a group column.
bool _initgroup
 Group been initialized.

Friends

Stream insertion and extraction operators.
istream & operator>> (istream &is, RDBColumn &col) throw ( RDBErr )
 Read column from input stream.
istream & operator>> (istream &is, RDBColumn *col) throw ( RDBErr )
 Read column from input stream.
ostream & operator<< (ostream &os, const RDBColumn &col)
 Write column to output stream.
ostream & operator<< (ostream &os, const RDBColumn *col)
 Write column to output stream.


Detailed Description

Provides interface for general column related methods.

Definition at line 43 of file RDBColumn.h.


Member Enumeration Documentation

Acceptable column justifications.

Definition at line 60 of file RDBColumn.h.

Acceptable column types.

Definition at line 62 of file RDBColumn.h.

Possible error conditions.

Definition at line 64 of file RDBColumn.h.

Acceptable column justifications.

Definition at line 65 of file RDBColumn.h.


Constructor & Destructor Documentation

RDBColumn::RDBColumn ( const string &  name = "",
const string &  def = "" 
) throw ( RDBErr )

Assigns name and definition to RDBColumn object.

Parameters:
name the column name.
def the column definition.
Initializes the RDBColumn name and definition. Sets the exception throwing behavior to true.

Definition at line 136 of file RDBColumn.cc.

RDBColumn::RDBColumn ( const RDBColumn col  ) 

Copies RDBColumn object.

Parameters:
col the RDBColumn object to copy.
Copies the argument.

Definition at line 165 of file RDBColumn.cc.

RDBColumn::~RDBColumn ( void   )  [virtual]

Deletes resources allocated by RDBColumn object.

Nothing to do.

Definition at line 180 of file RDBColumn.cc.


Member Function Documentation

RDBColumn & RDBColumn::operator= ( const RDBColumn col  ) 

Copies RDBColumn object.

Parameters:
col the RDBColumn object to copy.

Definition at line 191 of file RDBColumn.cc.

References _changed, _def, _desc, _errno, _group, _just, _name, _precision, _throw, _type, and _width.

Referenced by RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::operator=().

virtual RDBColumn& RDBColumn::operator= ( const double &  data  )  throw ( RDBErr ) [pure virtual]

Assigns data to RDBColumn object's _data member, converting as necessary.

Implemented in RDBColumnTmplt< long, string, double >.

virtual RDBColumn& RDBColumn::operator= ( const long &  data  )  throw ( RDBErr ) [pure virtual]

Assigns data to RDBColumn object's _data member, converting as necessary.

Implemented in RDBColumnTmplt< long, string, double >.

virtual RDBColumn& RDBColumn::operator= ( const string &  data  )  throw ( RDBErr ) [pure virtual]

Assigns data to RDBColumn object's _data member, converting as necessary.

Implemented in RDBColumnTmplt< long, string, double >.

virtual void RDBColumn::advanceIdx ( void   )  [pure virtual]

Increments index to the RDBColumn's data elements.

Implemented in RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >, and RDBColumnTmplt< long, string, double >.

Referenced by RDB::advanceIdx(), and RDB::read().

virtual void RDBColumn::rewind ( void   )  [pure virtual]

Rewinds index to the RDBColumn's data elements.

Implemented in RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >, and RDBColumnTmplt< long, string, double >.

Referenced by RDB::rewind().

void RDBColumn::setGroup ( bool  group  )  [virtual]

Turn on/off group tracking for this column object.

Parameters:
group incidcates whether or not this is a group column.

Reimplemented in RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >, and RDBColumnTmplt< long, string, double >.

Definition at line 219 of file RDBColumn.cc.

References _group.

Referenced by RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::setGroup(), and RDB::setGroup().

bool RDBColumn::getGroup ( void   )  const

Returns group status, RBOG if at beginning of a group, REOG if at ned of a group, or REOL if in the middle of a group.

Returns:
Whether or not this is a group column.

Definition at line 232 of file RDBColumn.cc.

References _group.

Referenced by RDB::getGroup().

virtual void RDBColumn::setGroupValue ( void   )  [pure virtual]

Sets the group value to the current data value.

Implemented in RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >, and RDBColumnTmplt< long, string, double >.

virtual int RDBColumn::newGroup ( void   )  [pure virtual]

Returns the group status of this column object.

Implemented in RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >, and RDBColumnTmplt< long, string, double >.

Referenced by RDB::read().

void RDBColumn::setName ( const string &  name  ) 

Sets the name.

Parameters:
name the RDBColumn name to use.
Sets the RDBColumn name.

Definition at line 247 of file RDBColumn.cc.

References _name.

Referenced by RDB::setColumn(), and RDB::setName().

void RDBColumn::setDef ( const string &  def  )  throw ( RDBErr )

Sets the definition.

Parameters:
def the RDBColumn definition to use.
Exceptions:
RDBErrColFmt error if the definition is an unrecognized format.
Sets the RDBColumn definition, as well as the width, type, justification, and description.

Definition at line 266 of file RDBColumn.cc.

References _changed, _def, _desc, _just, _name, _type, and _width.

Referenced by RDB::setColumn(), and RDB::setDef().

void RDBColumn::setWidth ( const long  width  ) 

Sets the width.

Parameters:
width the width of the RDBColumn.
The width has no effect on the storage or printing of the data. The RDB docs indicate that it is used only by the ptbl command.

Definition at line 340 of file RDBColumn.cc.

References _changed, and _width.

Referenced by RDB::setWidth().

void RDBColumn::setType ( const RDBColumn::Type  type  ) 

Sets the type.

Parameters:
type of the RDBColumn.
Possible values are 'M' for month, 'N' for numeric, 'S' for string. String is the default type.

Definition at line 357 of file RDBColumn.cc.

References _changed, and _type.

Referenced by RDB::setType().

void RDBColumn::setJust ( const RDBColumn::Just  just  ) 

Sets the justification.

Parameters:
just the justification of the data when printing.
Possible values are '<' for left justification and '>' for right justification. Default is for months and strings to be left justified and numeric data to be right justified.

Definition at line 375 of file RDBColumn.cc.

References _changed, and _just.

Referenced by RDB::setJust().

void RDBColumn::setDesc ( const string &  desc  ) 

Sets the description.

Parameters:
desc is the column documentation.
Sets the RDBColumn description.

Definition at line 391 of file RDBColumn.cc.

References _changed, and _desc.

Referenced by RDB::setDesc().

void RDBColumn::setPrecision ( const int  precision  ) 

Sets the precision for numeric output and numeric to string conversion.

Parameters:
precision Sets the RDBColumn precision which controls the output precision of floating point data.

Definition at line 408 of file RDBColumn.cc.

References _precision.

void RDBColumn::setThrow ( const bool  t = true  ) 

Sets the excpeption throwing behavior.

Parameters:
t state of the exception throwing behavior.
Sets the RDBColumn exception throwing behavior.

Definition at line 423 of file RDBColumn.cc.

References _throw.

void RDBColumn::setErrNo ( const int  no = 0  ) 

Sets the error status.

Parameters:
no Sets the RDBColumn error status.

Definition at line 438 of file RDBColumn.cc.

References _errno.

virtual bool RDBColumn::setData ( const double &  data  )  throw ( RDBErr ) [pure virtual]

Sets the data value, converting as necessary.

Implemented in RDBColumnTmplt< long, string, double >.

Referenced by RDB::parseLine(), RDB::read(), and RDB::setData().

virtual bool RDBColumn::setData ( const long &  data  )  throw ( RDBErr ) [pure virtual]

Sets the data value, converting as necessary.

Implemented in RDBColumnTmplt< long, string, double >.

virtual bool RDBColumn::setData ( const string &  data  )  throw ( RDBErr ) [pure virtual]

Sets the data value, converting as necessary.

Implemented in RDBColumnTmplt< long, string, double >.

void RDBColumn::mapData ( double  data[],
const size_t  nelems = 1 
) throw ( RDBErr ) [virtual]

Maps data to user-supplied memory, if possible.

Definition at line 448 of file RDBColumn.cc.

References _name.

Referenced by RDB::mapData().

void RDBColumn::mapData ( long  data[],
const size_t  nelems = 1 
) throw ( RDBErr ) [virtual]

Maps data to user-supplied memory, if possible.

Reimplemented in RDBColumnTmplt< long, string, double >.

Definition at line 459 of file RDBColumn.cc.

References _name.

void RDBColumn::mapData ( string  data[],
const size_t  nelems = 1 
) throw ( RDBErr ) [virtual]

Maps data to user-supplied memory, if possible.

Definition at line 470 of file RDBColumn.cc.

References _name.

string RDBColumn::getName ( void   )  const

Returns the name.

Returns the RDBColumn name.

Definition at line 484 of file RDBColumn.cc.

References _name.

Referenced by RDB::close(), RDB::getName(), and RDB::write().

string RDBColumn::getDef ( void   ) 

Returns the definition.

Returns the RDBColumn definition, reconstructing it from its constituent parts if any of them have changed.

Definition at line 498 of file RDBColumn.cc.

References _changed, _def, _just, _strstrm, _type, and _width.

Referenced by RDB::close(), RDB::getDef(), and RDB::write().

long RDBColumn::getWidth ( void   )  const

Returns the width.

Returns the RDBColumn width.

Definition at line 540 of file RDBColumn.cc.

Referenced by RDB::getWidth().

RDBColumn::Type RDBColumn::getType ( void   )  const

Returns the type.

Returns the RDBColumn type.

Definition at line 553 of file RDBColumn.cc.

Referenced by RDB::getType().

RDBColumn::Just RDBColumn::getJust ( void   )  const

Returns the justification.

Returns the RDBColumn justification.

Definition at line 566 of file RDBColumn.cc.

Referenced by RDB::getJust().

string RDBColumn::getDesc ( void   )  const

Returns the description.

Returns the RDBColumn description.

Definition at line 579 of file RDBColumn.cc.

Referenced by RDB::getDesc().

int RDBColumn::getPrecision ( void   )  const

Returns the precision.

Returns the RDBColumn precision used for stream output.

Definition at line 592 of file RDBColumn.cc.

bool RDBColumn::getThrow ( void   )  const

Returns the state of the exception throwing behavior.

Returns the RDBColumn exception throwing flag.

Definition at line 605 of file RDBColumn.cc.

char * RDBColumn::getErr ( void   )  const

Returns a brief description of the error condition.

Returns a string describing the RDBColumn error flag.

Definition at line 618 of file RDBColumn.cc.

int RDBColumn::getErrNo ( void   )  const

Returns the error status.

Returns the RDBColumn error flag.

Definition at line 631 of file RDBColumn.cc.

virtual void* RDBColumn::getData ( void   )  [pure virtual]

Returns a pointer to the current data element.

Implemented in RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >, and RDBColumnTmplt< long, string, double >.

virtual bool RDBColumn::getData ( double &  data  )  throw ( RDBErr ) [pure virtual]

Returns the value of the current data element, converting if necessary.

Implemented in RDBColumnTmplt< long, string, double >.

virtual bool RDBColumn::getData ( long &  data  )  throw ( RDBErr ) [pure virtual]

Returns the value of the current data element, converting if necessary.

Implemented in RDBColumnTmplt< long, string, double >.

virtual bool RDBColumn::getData ( string &  data  )  throw ( RDBErr ) [pure virtual]

Returns the value of the current data element, converting if necessary.

Implemented in RDBColumnTmplt< long, string, double >.

virtual double RDBColumn::getDataDouble ( void   )  throw ( RDBErr ) [pure virtual]

Returns the value of the current data element, converting if necessary.

Implemented in RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >, and RDBColumnTmplt< long, string, double >.

Referenced by RDB::getData(), and RDB::getDataDouble().

virtual long RDBColumn::getDataLong ( void   )  throw ( RDBErr ) [pure virtual]

Returns the value of the current data element, converting if necessary.

Implemented in RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >, and RDBColumnTmplt< long, string, double >.

Referenced by RDB::getData(), and RDB::getDataLong().

virtual string RDBColumn::getDataString ( void   )  throw ( RDBErr ) [pure virtual]

Returns the value of the current data element, converting if necessary.

Implemented in RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >, and RDBColumnTmplt< long, string, double >.

Referenced by RDB::getData(), and RDB::getDataString().

void RDBColumn::convert ( const double &  idata,
double &  odata 
) throw ( RDBErr ) [protected]

Used to converted data based on user requests.

Parameters:
idata input data.
odata output data.
Handles the trivial conversion for double to double for child classes.

Definition at line 647 of file RDBColumn.cc.

Referenced by RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::getData(), RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::getDataDouble(), RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::getDataLong(), RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::getDataString(), RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::operator=(), and RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::setData().

void RDBColumn::convert ( const double &  idata,
long &  odata 
) throw ( RDBErr ) [protected]

Used to converted data based on user requests.

Parameters:
idata input data.
odata output data.
Handles the trivial conversion for double to long for child classes.

Definition at line 664 of file RDBColumn.cc.

void RDBColumn::convert ( const double &  idata,
string &  odata 
) throw ( RDBErr ) [protected]

Used to converted data based on user requests.

Parameters:
idata input data.
odata output data.
Handles the non-trivial conversion for double to string for child classes.

Warning:
This is slow. Like dirt. Don't do it often.

Definition at line 684 of file RDBColumn.cc.

void RDBColumn::convert ( const long &  idata,
double &  odata 
) throw ( RDBErr ) [protected]

Used to converted data based on user requests.

Parameters:
idata input data.
odata output data.
Handles the trivial conversion for long to double for child classes.

Definition at line 705 of file RDBColumn.cc.

void RDBColumn::convert ( const long &  idata,
long &  odata 
) throw ( RDBErr ) [protected]

Used to converted data based on user requests.

Parameters:
idata input data.
odata output data.
Handles the trivial conversion for long to long for child classes.

Definition at line 722 of file RDBColumn.cc.

void RDBColumn::convert ( const long &  idata,
string &  odata 
) throw ( RDBErr ) [protected]

Used to converted data based on user requests.

Parameters:
idata input data.
odata output data.
Handles the non-trivial conversion for long to string for child classes.

Warning:
This is slow. Like dirt. Don't do it often.

Definition at line 741 of file RDBColumn.cc.

void RDBColumn::convert ( const string &  idata,
double &  odata 
) throw ( RDBErr ) [protected]

Used to converted data based on user requests.

Parameters:
idata input data.
odata output data.
Exceptions:
RDBErr error if idata is non-numeric.
Handles the non-trivial conversion for string to double for child classes.

Definition at line 764 of file RDBColumn.cc.

void RDBColumn::convert ( const string &  idata,
long &  odata 
) throw ( RDBErr ) [protected]

Used to converted data based on user requests.

Parameters:
idata input data.
odata output data.
Exceptions:
RDBErr error if idata is non-numeric.
RDBErr error if idata represents a floating point number and precision is lost converting to integer number.
Handles the non-trivial conversion for string to long for child classes.

Definition at line 796 of file RDBColumn.cc.

void RDBColumn::convert ( const string &  idata,
string &  odata 
) throw ( RDBErr ) [protected]

Used to converted data based on user requests.

Parameters:
idata input data.
odata output data.
Handles the trivial conversion for string to string for child classes.

Definition at line 848 of file RDBColumn.cc.

virtual istream& RDBColumn::read ( istream &  is  )  throw ( RDBErr ) [protected, pure virtual]

Called by the stream insertion operator.

Implemented in RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >, and RDBColumnTmplt< long, string, double >.

istream & RDBColumn::extract ( istream &  is,
double &  data 
) throw ( RDBErr ) [protected, virtual]

Overridden in the subclass of this datatype.

Parameters:
is input string.
data double data.
Returns:
istream the input stream.
Extracts a double from the input stream.

Definition at line 867 of file RDBColumn.cc.

Referenced by RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::read().

istream & RDBColumn::extract ( istream &  is,
long &  data 
) throw ( RDBErr ) [protected, virtual]

Overridden in the subclass of this datatype.

Parameters:
is input string.
data long data.
Returns:
istream the input stream.
Extracts a long from the input stream.

Definition at line 891 of file RDBColumn.cc.

istream & RDBColumn::extract ( istream &  is,
string &  data 
) throw ( RDBErr ) [protected, virtual]

Overridden in the subclass of this datatype.

Parameters:
is input string.
data string data.
Returns:
istream the input stream.
Extracts a string from the input stream. Extraction stops at the first tab or newline character.

Definition at line 917 of file RDBColumn.cc.

virtual ostream& RDBColumn::write ( ostream &  os  )  const [protected, pure virtual]

Called by the stream extraction operator.

Implemented in RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >, and RDBColumnTmplt< long, string, double >.

ostream & RDBColumn::insert ( ostream &  os,
double &  data 
) const [protected, virtual]

Overridden in the subclass of this datatype.

Parameters:
os output string.
data double data.
Returns:
ostream the output stream.
Inserts a double into the output stream.

Definition at line 953 of file RDBColumn.cc.

Referenced by RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::write().

ostream & RDBColumn::insert ( ostream &  os,
long &  data 
) const [protected, virtual]

Overridden in the subclass of this datatype.

Parameters:
os output string.
data double data.
Returns:
ostream the output stream.
Inserts a long into the output stream.

Definition at line 972 of file RDBColumn.cc.

ostream & RDBColumn::insert ( ostream &  os,
string &  data 
) const [protected, virtual]

Overridden in the subclass of this datatype.

Parameters:
os output string.
data double data.
Returns:
ostream the output stream.
Inserts a string into the output stream.

Definition at line 991 of file RDBColumn.cc.


Friends And Related Function Documentation

istream& operator>> ( istream &  is,
RDBColumn col 
) throw ( RDBErr ) [friend]

Read column from input stream.

Parameters:
is input stream.
col RDBColumn to fill.
Returns:
A reference to the input stream.
Reads one data element into this object.

Definition at line 38 of file RDBColumn.cc.

istream& operator>> ( istream &  is,
RDBColumn col 
) throw ( RDBErr ) [friend]

Read column from input stream.

Parameters:
is input stream.
col RDBColumn to fill.
Returns:
A reference to the input stream.
Reads one data element into this object.

Definition at line 69 of file RDBColumn.cc.

ostream& operator<< ( ostream &  os,
const RDBColumn col 
) [friend]

Write column to output stream.

Parameters:
os output stream.
col RDBColumn to fill.
Returns:
A reference to the output stream.
Writes one data element from this object.

Definition at line 100 of file RDBColumn.cc.

ostream& operator<< ( ostream &  os,
const RDBColumn col 
) [friend]

Write column to output stream.

Parameters:
os output stream.
col RDBColumn to fill.
Returns:
A reference to the output stream.
Writes one data element from this object.

Definition at line 119 of file RDBColumn.cc.


Member Data Documentation

string RDBColumn::_name [protected]

Name.

Definition at line 225 of file RDBColumn.h.

Referenced by getName(), mapData(), operator=(), setDef(), and setName().

string RDBColumn::_def [protected]

Definition.

Definition at line 227 of file RDBColumn.h.

Referenced by getDef(), operator=(), and setDef().

long RDBColumn::_width [protected]

Width.

Definition at line 229 of file RDBColumn.h.

Referenced by getDef(), operator=(), setDef(), and setWidth().

Data type.

Definition at line 231 of file RDBColumn.h.

Referenced by getDef(), operator=(), setDef(), and setType().

Justification.

Definition at line 233 of file RDBColumn.h.

Referenced by getDef(), operator=(), setDef(), and setJust().

string RDBColumn::_desc [protected]

Description.

Definition at line 235 of file RDBColumn.h.

Referenced by operator=(), setDef(), and setDesc().

bool RDBColumn::_changed [protected]

Indicates state for the definition field.

Definition at line 237 of file RDBColumn.h.

Referenced by getDef(), operator=(), setDef(), setDesc(), setJust(), setType(), and setWidth().

bool RDBColumn::_throw [protected]

State of the exception throwing behavior.

Definition at line 240 of file RDBColumn.h.

Referenced by operator=(), and setThrow().

int RDBColumn::_errno [protected]

int RDBColumn::_precision [protected]

Precision used for stream output or numeric to string conversion.

Definition at line 244 of file RDBColumn.h.

Referenced by operator=(), and setPrecision().

stringstream RDBColumn::_strstrm [protected]

Used for numeric to string conversion.

Definition at line 246 of file RDBColumn.h.

Referenced by getDef().

bool RDBColumn::_group [protected]

bool RDBColumn::_initgroup [protected]

Group been initialized.

Definition at line 250 of file RDBColumn.h.

Referenced by RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::newGroup().


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

Generated on Tue Sep 15 11:07:28 2009 for rdbxx by  doxygen 1.5.6