A class that models a literal for Date and Time values. More...
#include <LiteralDateTime.h>
Public Types | |
typedef void | ReturnType |
typedef QueryVisitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const =0 |
It call the visit method from the guest object. More... | |
Expression * | clone () const |
It creates a new copy of this expression. More... | |
te::dt::AbstractData * | getValue () const |
It returns the value associated to the literal. More... | |
TE_DEFINE_VISITABLE | LiteralDateTime (te::dt::DateTime *d) |
Constructor. More... | |
LiteralDateTime (const te::dt::DateTime &d) | |
Constructor. More... | |
LiteralDateTime (const LiteralDateTime &rhs) | |
Copy constructor. More... | |
LiteralDateTime & | operator= (const LiteralDateTime &rhs) |
void | setValue (te::dt::AbstractData *v) |
It sets the value associated to the literal. More... | |
~LiteralDateTime () | |
Destructor. More... | |
Protected Attributes | |
std::auto_ptr< te::dt::AbstractData > | m_value |
A class that models a literal for Date and Time values.
This class is just a syntatic-suggar.
Definition at line 48 of file LiteralDateTime.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
TE_DEFINE_VISITABLE te::da::LiteralDateTime::LiteralDateTime | ( | te::dt::DateTime * | d | ) |
Constructor.
g | The geometry value. |
te::da::LiteralDateTime::LiteralDateTime | ( | const te::dt::DateTime & | d | ) |
Constructor.
g | The geometry value. |
te::da::LiteralDateTime::LiteralDateTime | ( | const LiteralDateTime & | rhs | ) |
Copy constructor.
te::da::LiteralDateTime::~LiteralDateTime | ( | ) |
Destructor.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
|
virtual |
It creates a new copy of this expression.
Reimplemented from te::da::Literal.
|
inherited |
It returns the value associated to the literal.
LiteralDateTime& te::da::LiteralDateTime::operator= | ( | const LiteralDateTime & | rhs | ) |
Assignment operator.
|
inherited |
It sets the value associated to the literal.
v | The value to be assigned to the literal. The literal takes its ownership. |
|
protectedinherited |