template <class ColumnType> class DfcColumnData : public DfcColumnInterface | | addImplementation (int tableId, int columnId) |
| | clone (void) |
| | deselect (void) |
| | DfcColumnData ( const RWString &newName, int numRows, DFC_BOOL regularlySampled = DFC_TRUE ) |
| | DfcColumnData ( const RWString &name, const DFC_EXPRESSION &expr, int numRows, DFC_BOOL onTheFly = DFC_TRUE ) |
| | DfcColumnData ( const DfcColumnData<ColumnType> &other ) |
| | DfcColumnData ( const DfcColumnInterface &other ) |
| | getAsChar (int whichElement = 0) |
| | getAsCoordSys (int whichElement = 0) |
| | getAsDouble (int whichElement = 0) |
| | getAsDouble ( const DfcVector<int> &position ) |
| | getAsEnumerated (int whichElement = 0) |
| | getAsFloat (int whichElement = 0) |
| | getAsFrameRef (int whichElement = 0) |
| | getAsInt (int whichElement = 0) |
| | getAsLong (int whichElement = 0) |
| | getAsLong ( const DfcVector<int> &position ) |
| | getAsShort (int whichElement = 0) |
| | getAsString (int whichElement = 0) |
| | getAsTableRef (int whichElement = 0) |
| | getAsTarget (int whichElement = 0) |
| | getAsTime (int whichElement = 0) |
| | getAsUchar (int whichElement = 0) |
| | getDimensions (void) |
| | getElement ( int whichElement ) |
| | getKeywords (void) |
| | getName (void) |
| | getNull (void) |
| | getNullValueAsChar (void) |
| | getNullValueAsCoordSys (void) |
| | getNullValueAsDouble (void) |
| | getNullValueAsEnumerated (void) |
| | getNullValueAsFrameRef (void) |
| | getNullValueAsString (void) |
| | getNullValueAsTableRef (void) |
| | getNullValueAsTarget (void) |
| | getNullValueAsTime (void) |
| | getNumPoints (void) |
| | getNumRows (void) |
| | getSafeInterface (void) |
| | isNullValueSet (void) |
| | isSelected (void) |
| | openForRead (void) |
| | openForUpdate (void) |
| | operator!= (double value) |
| | operator!= (const DfcEnumeratedInterface &value) |
| | operator!= (const DfcTimeInterface &value) |
| | operator!= (const DfcTargetInterface &value) |
| | operator!= (const DfcCoordSysInterface &value) |
| | operator!= (DfcFrameRef &value) |
| | operator!= (char value) |
| | operator!= (const RWString &value) |
| | operator!= (DfcTableRef &value) |
| | operator< (char value) |
| | operator< (const DfcEnumeratedInterface &value) |
| | operator< (const DfcTimeInterface &value) |
| | operator< (const RWString &value) |
| | operator< (const DfcCoordSysInterface &value) |
| | operator< (DfcFrameRef &value) |
| | operator< (double value) |
| | operator< (DfcTableRef &value) |
| | operator< (const DfcTargetInterface &value) |
| | operator<= (const DfcEnumeratedInterface &value) |
| | operator<= (DfcFrameRef &value) |
| | operator<= (DfcTableRef &value) |
| | operator<= (char value) |
| | operator<= (double value) |
| | operator<= (const RWString &value) |
| | operator<= (const DfcTimeInterface &value) |
| | operator<= (const DfcTargetInterface &value) |
| | operator<= (const DfcCoordSysInterface &value) |
| | operator= (const DfcColumnInterface &other) |
| | operator== (DfcTableRef &value) |
| | operator== (const DfcEnumeratedInterface &value) |
| | operator== (DfcFrameRef &value) |
| | operator== (char value) |
| | operator== (const RWString &value) |
| | operator== (const DfcCoordSysInterface &value) |
| | operator== (const DfcTargetInterface &value) |
| | operator== (double value) |
| | operator== (const DfcTimeInterface &value) |
| | operator> (char value) |
| | operator> (const DfcTargetInterface &value) |
| | operator> (const DfcEnumeratedInterface &value) |
| | operator> (const DfcCoordSysInterface &value) |
| | operator> (DfcFrameRef &value) |
| | operator> (double value) |
| | operator> (const RWString &value) |
| | operator> (DfcTableRef &value) |
| | operator> (const DfcTimeInterface &value) |
| | operator>= (double value) |
| | operator>= (const DfcTimeInterface &value) |
| | operator>= (const DfcCoordSysInterface &value) |
| | operator>= (DfcTableRef &value) |
| | operator>= (const DfcTargetInterface &value) |
| | operator>= (DfcFrameRef &value) |
| | operator>= (const DfcEnumeratedInterface &value) |
| | operator>= (const RWString &value) |
| | operator>= (char value) |
| | proxyIsDead (void) |
| | save (void) |
| | saveAsMidas (int fileId) |
| | select (void) |
| | set (short newValue, int whichElement = 0) |
| | set ( const DfcVector<int> &position, double newVal ) |
| | set (long newValue, int whichElement = 0) |
| | set (int newValue, int whichElement = 0) |
| | set (float newValue, int whichElement = 0) |
| | set ( int whichPosition, long newVal ) |
| | set ( const DfcVector<int> &position, long newVal ) |
| | set (double newValue, int whichElement = 0) |
| | set ( int whichPosition, double newVal ) |
| | set (unsigned char newValue, int whichElement = 0) |
| | setAsChar (char newValue, int whichElement = 0) |
| | setAsCoordSys (const DfcCoordSysInterface &newValue, int whichElement = 0) |
| | setAsEnumerated (const DfcEnumeratedInterface &newValue, int whichElement = 0) |
| | setAsFrameRef (DfcFrameRef &newValue, int whichElement = 0) |
| | setAsString (const RWString &newValue, int whichElement = 0) |
| | setAsTableRef (DfcTableRef &newValue, int whichElement = 0) |
| | setAsTarget (const DfcTargetInterface &newValue, int whichElement = 0) |
| | setAsTime (const DfcTimeInterface &newValue, int whichElement = 0) |
| | setElement ( const whichElement, ColumnType *newValue ) |
| | setName ( const RWString &newName ) |
| | setNull (ColumnType *newValue) |
| | setNullValueAsChar (char newValue) |
| | setNullValueAsCoordSys (const DfcCoordSysInterface &newValue) |
| | setNullValueAsDouble ( double newValue ) |
| | setNullValueAsEnumerated (const DfcEnumeratedInterface &newValue) |
| | setNullValueAsFrameRef (DfcFrameRef &newValue) |
| | setNullValueAsString (const RWString &newValue) |
| | setNullValueAsTableRef (DfcTableRef &newValue) |
| | setNullValueAsTarget (const DfcTargetInterface &newValue) |
| | setNullValueAsTime (const DfcTimeInterface &newValue) |
| | unsetNullValue (void) |
| | ~DfcColumnData () Dtor. Free memory |
| | temporary member data while the implementation is being performed by MIDAS |
| | implementation The number of rows in this column |
| | keywords The actual data contained in the Column |
| | midasEnvironment Store a copy of the proxy in this object |
| | name Returns the internal rep |
| | nullValue Keywords attached to only this Column |
| | numRows A name for the column |
| | proxy Is this Column currently selected or not? |
| | selected A representation for the null value for the column |
DESCRIPTION
Provides commonality between all realetd subclasses. At this stage in the hierarchy all operations that operate upon data are considered to be invalid and simply generate a DfcTypeExc exception by default (eg getAsDouble, setNullValueAsCoordSys etc.). Valid implementations of these methods are provided in the derived classes. This affords us more type safety and also the desired type transparency as far as possible.
EXAMPLES
See DfcColumn.h for useful examples.
Exceptions Arguments
Exceptions Arguments
Exceptions Arguments
Exceptions Arguments
Exceptions Arguments
Returns Exceptions
Returns
Returns
Returns
Exceptions Arguments
Arguments Returns Exceptions
Arguments Returns Exceptions
Arguments Returns Exceptions
Arguments Returns Exceptions
Arguments Returns Exceptions
Arguments Returns Exceptions
DfcColumnData( const DfcColumnData<ColumnType> &other )
Copy constructor. Only perform a shallow copy, in this case it means that the actual data will be shared between the original and the new copy, in effect pretty useless really.
DfcColumnData( const DfcColumnInterface &other )
Copy constructor. Only perform a shallow copy, in this case it means that the actual data will be shared between the original and the new copy, in effect pretty useless really.
DfcColumnData( const RWString &newName, int numRows, DFC_BOOL regularlySampled = DFC_TRUE )
Constructor for DfcColumnData
DfcColumnData( const RWString &name, const DFC_EXPRESSION &expr, int numRows, DFC_BOOL onTheFly = DFC_TRUE )
Constructor. Creates values for the Column entries based upon the provided ewxpression. The values can either be constructed all at once or on the fly. If they are created on the fly and an attempt is made to write to the Column then the column will be made into a regularly sampled column, transparently to the user.
virtual ~DfcColumnData()
int getNumRows(void)
Obtain the number of rows in the Column
virtual void setNullValueAsDouble( double newValue )
Sets the representation of the Null Value for this Column. Note that this is particularly dangerous for Columns of scalars. If the internal representation of data is of type int, and we set a null value that is a double, we lose a lot of accuracy and the null value then covers more range than perhaps was desired.
At this level in the hierarchy all these operations are given a default nehaviour which generates a DfcTypeExc exception. The valid versions of these methods are provided in the leaf classes which overrides this default behaviour.
virtual double getNullValueAsDouble(void)
Returns the Columns internal representation for a Null Value. I have decided not to throw an exception if a get() is made on a Null value as this will encourage people to use exceptions for flow control rather than for error handling.
The current representation of the Null value.
virtual void setNullValueAsCoordSys(const DfcCoordSysInterface &newValue)
virtual DfcCoordSys getNullValueAsCoordSys(void)
virtual void setNullValueAsTime(const DfcTimeInterface &newValue)
virtual DfcTime getNullValueAsTime(void)
virtual void setNullValueAsFrameRef(DfcFrameRef &newValue)
virtual DfcFrameRef getNullValueAsFrameRef(void)
virtual void setNullValueAsString(const RWString &newValue)
virtual RWString getNullValueAsString(void)
virtual void setNullValueAsTableRef(DfcTableRef &newValue)
virtual DfcTableRef getNullValueAsTableRef(void)
virtual void setNullValueAsChar(char newValue)
virtual char getNullValueAsChar(void)
virtual void setNullValueAsEnumerated(const DfcEnumeratedInterface &newValue)
virtual DfcEnumerated getNullValueAsEnumerated(void)
virtual void setNullValueAsTarget(const DfcTargetInterface &newValue)
virtual DfcTarget getNullValueAsTarget(void)
void unsetNullValue(void)
Remove any current setting of the null value for this Column
DFC_BOOL isNullValueSet(void)
Indicates whether the null value representation has been set and is being used or not. It may be concievable in some situations that it isn't desirable to waste a possibly valid value on a null representation.
A Boolean stating whether the Null value representation has been set or not.
DFC_BOOL isSelected(void)
Returns the status of the Column, whether it is currently selected or not.
Status of the Column, selected or not.
void select(void)
A Column can be either selected or not. This method tells a Column that it is selected. A Column is not selected by default.
void deselect(void)
A Column can be either Selcted or not. This method informs the Column that it is not selected. A Column is not selected by default.
RWString getName(void)
Accessor for the name of the Column;
Returns a copy of the name of the Column. Actually copies the name rather than returning a reference in order to make sure we don't have any dangling pointers or references later.
void setName( const RWString &newName )
Sets the name for the Column
virtual DfcVector <DFC_BOOL> operator<(double value)
Less than operator for Columns of Type against a single value. The Column will perform the comparison against every single value contained in the Column returning a boolean value for every entry indicating whether the coimparison was true or false.
A vector of booleans. The length of this vector is the same as the Column. Each entry in the vector indicates whether the corresponding entry in the Column passed the comparison or not.
virtual DfcVector <DFC_BOOL> operator>(double value)
Greater than operator for Columns of ints against a single int value. The Column will perform the comparison against every single int contained in the Column returning a boolean value for every entry indicating whether the coimparison was true or false.
A vector of booleans. The length of this vector is the same as the Column. Each entry in the vector indicates whether the corresponding entry in the Column passed the comparison or not.
virtual DfcVector <DFC_BOOL> operator>=(double value)
Comparison operator for Columns of ints against a single int value. The Column will perform the comparison against every single int contained in the Column returning a boolean value for every entry indicating whether the coimparison was true or false.
A vector of booleans. The length of this vector is the same as the Column. Each entry in the vector indicates whether the corresponding entry in the Column passed the comparison or not.
virtual DfcVector <DFC_BOOL> operator<=(double value)
Comparison operator for Columns of ints against a single int value. The Column will perform the comparison against every single int contained in the Column returning a boolean value for every entry indicating whether the coimparison was true or false.
A vector of booleans. The length of this vector is the same as the Column. Each entry in the vector indicates whether the corresponding entry in the Column passed the comparison or not.
virtual DfcVector <DFC_BOOL> operator==(double value)
Comparison operator for Columns of ints against a single int value. The Column will perform the comparison against every single int contained in the Column returning a boolean value for every entry indicating whether the coimparison was true or false.
A vector of booleans. The length of this vector is the same as the Column. Each entry in the vector indicates whether the corresponding entry in the Column passed the comparison or not.
virtual DfcVector <DFC_BOOL> operator!=(double value)
Comparison operator for Columns of ints against a single int value. The Column will perform the comparison against every single int contained in the Column returning a boolean value for every entry indicating whether the coimparison was true or false.
A vector of booleans. The length of this vector is the same as the Column. Each entry in the vector indicates whether the corresponding entry in the Column passed the comparison or not.
virtual DfcVector <DFC_BOOL> operator<(const DfcCoordSysInterface &value)
virtual DfcVector <DFC_BOOL> operator<=(const DfcCoordSysInterface &value)
virtual DfcVector <DFC_BOOL> operator>(const DfcCoordSysInterface &value)
virtual DfcVector <DFC_BOOL> operator>=(const DfcCoordSysInterface &value)
virtual DfcVector <DFC_BOOL> operator==(const DfcCoordSysInterface &value)
virtual DfcVector <DFC_BOOL> operator!=(const DfcCoordSysInterface &value)
virtual DfcVector <DFC_BOOL> operator<(const DfcTimeInterface &value)
virtual DfcVector <DFC_BOOL> operator<=(const DfcTimeInterface &value)
virtual DfcVector <DFC_BOOL> operator>(const DfcTimeInterface &value)
virtual DfcVector <DFC_BOOL> operator>=(const DfcTimeInterface &value)
virtual DfcVector <DFC_BOOL> operator==(const DfcTimeInterface &value)
virtual DfcVector <DFC_BOOL> operator!=(const DfcTimeInterface &value)
virtual DfcVector <DFC_BOOL> operator<(DfcFrameRef &value)
virtual DfcVector <DFC_BOOL> operator<=(DfcFrameRef &value)
virtual DfcVector <DFC_BOOL> operator>(DfcFrameRef &value)
virtual DfcVector <DFC_BOOL> operator>=(DfcFrameRef &value)
virtual DfcVector <DFC_BOOL> operator==(DfcFrameRef &value)
virtual DfcVector <DFC_BOOL> operator!=(DfcFrameRef &value)
virtual DfcVector <DFC_BOOL> operator<(const RWString &value)
virtual DfcVector <DFC_BOOL> operator<=(const RWString &value)
virtual DfcVector <DFC_BOOL> operator>(const RWString &value)
virtual DfcVector <DFC_BOOL> operator>=(const RWString &value)
virtual DfcVector <DFC_BOOL> operator==(const RWString &value)
virtual DfcVector <DFC_BOOL> operator!=(const RWString &value)
virtual DfcVector <DFC_BOOL> operator<(DfcTableRef &value)
virtual DfcVector <DFC_BOOL> operator<=(DfcTableRef &value)
virtual DfcVector <DFC_BOOL> operator>(DfcTableRef &value)
virtual DfcVector <DFC_BOOL> operator>=(DfcTableRef &value)
virtual DfcVector <DFC_BOOL> operator==(DfcTableRef &value)
virtual DfcVector <DFC_BOOL> operator!=(DfcTableRef &value)
virtual DfcVector <DFC_BOOL> operator<(char value)
virtual DfcVector <DFC_BOOL> operator<=(char value)
virtual DfcVector <DFC_BOOL> operator>(char value)
virtual DfcVector <DFC_BOOL> operator>=(char value)
virtual DfcVector <DFC_BOOL> operator==(char value)
virtual DfcVector <DFC_BOOL> operator!=(char value)
virtual DfcVector <DFC_BOOL> operator<(const DfcEnumeratedInterface &value)
virtual DfcVector <DFC_BOOL> operator<=(const DfcEnumeratedInterface &value)
virtual DfcVector <DFC_BOOL> operator>(const DfcEnumeratedInterface &value)
virtual DfcVector <DFC_BOOL> operator>=(const DfcEnumeratedInterface &value)
virtual DfcVector <DFC_BOOL> operator==(const DfcEnumeratedInterface &value)
virtual DfcVector <DFC_BOOL> operator!=(const DfcEnumeratedInterface &value)
virtual DfcVector <DFC_BOOL> operator<(const DfcTargetInterface &value)
virtual DfcVector <DFC_BOOL> operator<=(const DfcTargetInterface &value)
virtual DfcVector <DFC_BOOL> operator>(const DfcTargetInterface &value)
virtual DfcVector <DFC_BOOL> operator>=(const DfcTargetInterface &value)
virtual DfcVector <DFC_BOOL> operator==(const DfcTargetInterface &value)
virtual DfcVector <DFC_BOOL> operator!=(const DfcTargetInterface &value)
virtual float getAsFloat(int whichElement = 0)
virtual double getAsDouble(int whichElement = 0)
virtual unsigned char getAsUchar(int whichElement = 0)
virtual short getAsShort(int whichElement = 0)
virtual int getAsInt(int whichElement = 0)
virtual long getAsLong(int whichElement = 0)