#include <RDBColumn.h>
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. | |
RDBColumn & | operator= (const RDBColumn &col) |
Copies RDBColumn object. | |
virtual RDBColumn & | operator= (const double &data)=0 throw ( RDBErr ) |
Assigns data to RDBColumn object's _data member, converting as necessary. | |
virtual RDBColumn & | operator= (const long &data)=0 throw ( RDBErr ) |
Assigns data to RDBColumn object's _data member, converting as necessary. | |
virtual RDBColumn & | operator= (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. |
Definition at line 43 of file RDBColumn.h.
enum RDBColumn::Just |
enum RDBColumn::Type |
enum RDBColumn::Err |
enum RDBColumn::Status |
RDBColumn::RDBColumn | ( | const string & | name = "" , |
|
const string & | def = "" | |||
) | throw ( RDBErr ) |
Assigns name and definition to RDBColumn object.
name | the column name. | |
def | the column definition. |
Definition at line 136 of file RDBColumn.cc.
RDBColumn::RDBColumn | ( | const RDBColumn & | col | ) |
Copies RDBColumn object.
col | the RDBColumn object to copy. |
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.
Assigns data to RDBColumn object's _data member, converting as necessary.
Implemented in RDBColumnTmplt< long, string, double >.
Assigns data to RDBColumn object's _data member, converting as necessary.
Implemented in RDBColumnTmplt< long, string, double >.
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.
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.
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.
name | the RDBColumn name to use. |
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.
def | the RDBColumn definition to use. |
RDBErrColFmt | error if the definition is an unrecognized format. |
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.
width | the width of the RDBColumn. |
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.
type | of the RDBColumn. |
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.
just | the justification of the data when printing. |
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.
desc | is the column documentation. |
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.
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.
t | state of the exception throwing behavior. |
Definition at line 423 of file RDBColumn.cc.
References _throw.
void RDBColumn::setErrNo | ( | const int | no = 0 |
) |
Sets the error status.
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.
idata | input data. | |
odata | output data. |
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.
idata | input data. | |
odata | output data. |
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.
idata | input data. | |
odata | output data. |
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.
idata | input data. | |
odata | output data. |
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.
idata | input data. | |
odata | output data. |
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.
idata | input data. | |
odata | output data. |
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.
idata | input data. | |
odata | output data. |
RDBErr | error if idata is non-numeric. |
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.
idata | input data. | |
odata | output data. |
RDBErr | error if idata is non-numeric. | |
RDBErr | error if idata represents a floating point number and precision is lost converting to integer number. |
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.
idata | input data. | |
odata | output data. |
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.
is | input string. | |
data | double data. |
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.
is | input string. | |
data | long data. |
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.
is | input string. | |
data | string data. |
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.
os | output string. | |
data | double data. |
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.
os | output string. | |
data | double data. |
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.
os | output string. | |
data | double data. |
Definition at line 991 of file RDBColumn.cc.
Read column from input stream.
is | input stream. | |
col | RDBColumn to fill. |
Definition at line 38 of file RDBColumn.cc.
Read column from input stream.
is | input stream. | |
col | RDBColumn to fill. |
Definition at line 69 of file RDBColumn.cc.
ostream& operator<< | ( | ostream & | os, | |
const RDBColumn & | col | |||
) | [friend] |
Write column to output stream.
os | output stream. | |
col | RDBColumn to fill. |
Definition at line 100 of file RDBColumn.cc.
ostream& operator<< | ( | ostream & | os, | |
const RDBColumn * | col | |||
) | [friend] |
Write column to output stream.
os | output stream. | |
col | RDBColumn to fill. |
Definition at line 119 of file RDBColumn.cc.
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().
RDBColumn::Type RDBColumn::_type [protected] |
Data type.
Definition at line 231 of file RDBColumn.h.
Referenced by getDef(), operator=(), setDef(), and setType().
RDBColumn::Just RDBColumn::_just [protected] |
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] |
Error state.
Definition at line 242 of file RDBColumn.h.
Referenced by RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::getData(), operator=(), RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::setData(), and setErrNo().
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] |
This is a group column.
Definition at line 248 of file RDBColumn.h.
Referenced by getGroup(), RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::mapData(), RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::newGroup(), RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::operator=(), operator=(), setGroup(), and RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::setGroupValue().
bool RDBColumn::_initgroup [protected] |
Group been initialized.
Definition at line 250 of file RDBColumn.h.
Referenced by RDBColumnTmplt< Tmplt0, Tmplt1, Tmplt2 >::newGroup().