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

An interface that allows for a primitive, Factory-constructible object or vector thereof to be initialized based on the next token or tokens from a token stream. More...

#include <stream-init.h>

Inheritance diagram for infact::StreamInitializer:
infact::Initializer< T > infact::Initializer< bool > infact::Initializer< double > infact::Initializer< int > infact::Initializer< string >

Public Member Functions

 StreamInitializer ()
 
virtual ~StreamInitializer ()
 
virtual void Init (StreamTokenizer &st, Environment *env=nullptr)=0
 

Detailed Description

An interface that allows for a primitive, Factory-constructible object or vector thereof to be initialized based on the next token or tokens from a token stream.

The data member may be an int, a double, a string or a shared_ptr to another Factory-constructible type.

Definition at line 68 of file stream-init.h.

Constructor & Destructor Documentation

infact::StreamInitializer::StreamInitializer ( )
inline

Definition at line 70 of file stream-init.h.

virtual infact::StreamInitializer::~StreamInitializer ( )
inlinevirtual

Definition at line 71 of file stream-init.h.

Member Function Documentation

virtual void infact::StreamInitializer::Init ( StreamTokenizer st,
Environment env = nullptr 
)
pure virtual

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