All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::da::LiteralDateTime Class Referenceabstract

A class that models a literal for Date and Time values. More...

#include <LiteralDateTime.h>

Inheritance diagram for te::da::LiteralDateTime:
te::da::Literal te::da::Expression te::common::BaseVisitable< QueryVisitor >

Public Types

typedef R ReturnType
 
typedef QueryVisitor VisitorType
 

Public Member Functions

virtual ReturnType accept (VisitorType &guest) const =0
 It call the visit method from the guest object. More...
 
Expressionclone () const
 It creates a new copy of this expression. More...
 
te::dt::AbstractDatagetValue () 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...
 
LiteralDateTimeoperator= (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
 

Detailed Description

A class that models a literal for Date and Time values.

This class is just a syntatic-suggar.

See also
Literal

Definition at line 48 of file LiteralDateTime.h.

Member Typedef Documentation

typedef R te::common::BaseVisitable< QueryVisitor , R >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

te::da::LiteralDateTime::LiteralDateTime ( te::dt::DateTime d)

Constructor.

Parameters
gThe geometry value.
Note
The LiteralDateTime will take the ownership of the given geometry.

Definition at line 30 of file LiteralDateTime.cpp.

te::da::LiteralDateTime::LiteralDateTime ( const te::dt::DateTime d)

Constructor.

Parameters
gThe geometry value.

Definition at line 35 of file LiteralDateTime.cpp.

te::da::LiteralDateTime::LiteralDateTime ( const LiteralDateTime rhs)

Copy constructor.

Definition at line 40 of file LiteralDateTime.cpp.

te::da::LiteralDateTime::~LiteralDateTime ( )

Destructor.

Definition at line 45 of file LiteralDateTime.cpp.

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< QueryVisitor , R >::accept ( VisitorType guest) const
pure virtualinherited

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.
te::da::Expression * te::da::LiteralDateTime::clone ( ) const
virtual

It creates a new copy of this expression.

Reimplemented from te::da::Literal.

Definition at line 56 of file LiteralDateTime.cpp.

te::dt::AbstractData * te::da::Literal::getValue ( ) const
inherited
te::da::LiteralDateTime & te::da::LiteralDateTime::operator= ( const LiteralDateTime rhs)

Assignment operator.

Definition at line 49 of file LiteralDateTime.cpp.

References te::da::Literal::operator=().

void te::da::Literal::setValue ( te::dt::AbstractData v)
inherited

It sets the value associated to the literal.

Parameters
vThe value to be assigned to the literal. The literal takes its ownership.

Definition at line 70 of file Literal.cpp.

Member Data Documentation

std::auto_ptr<te::dt::AbstractData> te::da::Literal::m_value
protectedinherited

Definition at line 97 of file Literal.h.

Referenced by te::da::Literal::Literal(), and te::da::Literal::operator=().


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