Public Member Functions

BuilderFrom< ObjectType, InputType > Class Template Reference

Base class for Builders that can build from InputType. More...

#include <BuilderFrom.h>

List of all members.

Public Member Functions

virtual shared_ptr< ObjectType > getObject (const InputType &data) const =0
 Gets the object built by the derived Builder.

Detailed Description

template<typename ObjectType, typename InputType>
class keyvalue::BuilderFrom< ObjectType, InputType >

Base class for Builders that can build from InputType.

Here, InputType must be

Parameters:
ObjectType : (template parameter) Type of object built by the derived Builder.
InputType : (template parameter) Type of input which the derived Builder can build from.

Member Function Documentation

virtual shared_ptr<ObjectType> getObject ( const InputType &  data  )  const [pure virtual]

Gets the object built by the derived Builder.

This is a pure virtual method which must be implemented by the derived Builder.

Parameters:
data : The input data.
Returns:
The object built by the derived Builder.