libmoost
moost::murcl::option_base Class Reference

This is a polymorphic base class for options. More...

#include <option.hpp>

Inheritance diagram for moost::murcl::option_base:

List of all members.

Public Member Functions

virtual ~option_base ()

Detailed Description

This is a polymorphic base class for options.

Each option has to be stashed. Although LibCurl can take a copy of each option's value this is not probably not the most efficient thing to do and since we already have the option anyway we just need to shove it in to a container. Problem: each option is a different type. Solution: each option derived from this trivial base, which means we can then store a polymorphic pointer in our generic container (a vector) and; thus, preserve the value of the option for the required lifetime in a simple manner.

Definition at line 60 of file option.hpp.


Constructor & Destructor Documentation

virtual moost::murcl::option_base::~option_base ( ) [inline, virtual]

Definition at line 63 of file option.hpp.


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