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::Date Class Referenceabstract

An interface to represent a date. More...

#include <example.h>

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

Public Member Functions

 Date ()
 Constructs this date. More...
 
virtual ~Date ()
 Destroys this date. More...
 
virtual int year () const =0
 Returns the year. More...
 
virtual int month () const =0
 Returns the month. More...
 
virtual int day () const =0
 Returns the day. More...
 
- Public Member Functions inherited from infact::FactoryConstructible
virtual ~FactoryConstructible ()
 Destroys this instance. More...
 
virtual void RegisterInitializers (Initializers &initializers)
 Registers data members of this class for initialization when an instance is constructed via the Factory::CreateOrDie method. 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 interface to represent a date.

Definition at line 50 of file example.h.

Constructor & Destructor Documentation

infact::Date::Date ( )
inline

Constructs this date.

Definition at line 53 of file example.h.

virtual infact::Date::~Date ( )
inlinevirtual

Destroys this date.

Definition at line 55 of file example.h.

Member Function Documentation

virtual int infact::Date::day ( ) const
pure virtual

Returns the day.

Implemented in infact::DateImpl.

virtual int infact::Date::month ( ) const
pure virtual

Returns the month.

Implemented in infact::DateImpl.

virtual int infact::Date::year ( ) const
pure virtual

Returns the year.

Implemented in infact::DateImpl.


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