#include <datetime.h>
Inheritance diagram for mysqlpp::DTbase< T >:

Public Methods | |
| virtual | ~DTbase () |
| Destroy object. | |
| operator std::string () const | |
| Return a copy of the item in C++ string form. | |
| virtual MYSQLPP_EXPORT short | compare (const T &other) const=0 |
| Compare this object to another of the same type. | |
| bool | operator== (const T &other) const |
| Returns true if "other" is equal to this object. | |
| bool | operator!= (const T &other) const |
| Returns true if "other" is not equal to this object. | |
| bool | operator< (const T &other) const |
| Returns true if "other" is less than this object. | |
| bool | operator<= (const T &other) const |
| Returns true if "other" is less than or equal to this object. | |
| bool | operator> (const T &other) const |
| Returns true if "other" is greater than this object. | |
| bool | operator>= (const T &other) const |
| Returns true if "other" is greater than or equal to this object. | |
This template primarily defines the comparison operators, which are all implemented in terms of compare(). Each subclass implements that as a protected method, because these operators are the only supported comparison method.
This template also defines interfaces for converting the object to a string form, which a subclass must define.
|
||||||||||
|
Compare this object to another of the same type. Returns < 0 if this object is "before" the other, 0 of they are equal, and > 0 if this object is "after" the other. Implemented in mysqlpp::DateTime, mysqlpp::Date, and mysqlpp::Time. |
1.2.18