InFact
Interpreter and factory for easily creating C++ objects at run-time
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
infact::DateImpl Class Reference

An implementation of the Date interface that can be constructed by a Factory (because of the REGISTER_DATE(DateImpl) declaration in example.cc). More...

#include <example.h>

Inheritance diagram for infact::DateImpl:
infact::Date infact::FactoryConstructible

Public Member Functions

 DateImpl ()
 Constructs this instance. More...
 
virtual ~DateImpl ()
 Destroys this instance. More...
 
virtual void RegisterInitializers (Initializers &initializers)
 Registers three required initializers. More...
 
virtual int year () const
 Returns the year. More...
 
virtual int month () const
 Returns the month. More...
 
virtual int day () const
 Returns the day. More...
 
- Public Member Functions inherited from infact::Date
 Date ()
 Constructs this date. More...
 
virtual ~Date ()
 Destroys this date. More...
 
- Public Member Functions inherited from infact::FactoryConstructible
virtual ~FactoryConstructible ()
 Destroys this instance. More...
 
virtual void PostInit (const Environment *env, const string &init_str)
 Does any additional initialization after an instance of this class has been constructed, crucially giving access to the Environment that was in use and modified during construction by the Factory::CreateOrDie method. More...
 

Detailed Description

An implementation of the Date interface that can be constructed by a Factory (because of the REGISTER_DATE(DateImpl) declaration in example.cc).

Definition at line 75 of file example.h.

Constructor & Destructor Documentation

infact::DateImpl::DateImpl ( )
inline

Constructs this instance.

Definition at line 78 of file example.h.

virtual infact::DateImpl::~DateImpl ( )
inlinevirtual

Destroys this instance.

Definition at line 80 of file example.h.

Member Function Documentation

virtual int infact::DateImpl::day ( ) const
inlinevirtual

Returns the day.

Implements infact::Date.

Definition at line 94 of file example.h.

virtual int infact::DateImpl::month ( ) const
inlinevirtual

Returns the month.

Implements infact::Date.

Definition at line 92 of file example.h.

virtual void infact::DateImpl::RegisterInitializers ( Initializers initializers)
inlinevirtual

Registers three required initializers.

Reimplemented from infact::FactoryConstructible.

Definition at line 83 of file example.h.

virtual int infact::DateImpl::year ( ) const
inlinevirtual

Returns the year.

Implements infact::Date.

Definition at line 90 of file example.h.


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