runtime2.hpp File Reference

Provides a type changer. More...

#include "eleve/config.hpp"
#include <list>
#include <vector>
#include <stdexcept>
#include <boost/noncopyable.hpp>
#include <boost/smart_ptr.hpp>
#include <boost/any.hpp>
#include <boost/date_time/gregorian/gregorian_types.hpp>
#include <boost/none.hpp>
#include <boost/optional.hpp>

Go to the source code of this file.

Namespaces

namespace  eepgwde
namespace  eepgwde::detail

Classes

struct  eepgwde::detail::Typing
 Implementation class can be instantiated singly or within a Singleton. More...
struct  eepgwde::detail::Typing::mapping_t


Detailed Description

Provides a type changer.

Using boost::any. Provides methods to coerce types. We only worry about dates, double, string and integer.

So a record like 2009-11-12,100.0,1,Y

could be completely parsed as string, price (a double), over one year (1 and Y).

So if you can use PERL or AWK to make the input simple, these routines will help you load data.

Definition in file runtime2.hpp.


Generated on Thu Feb 18 21:30:12 2010 for eleve by  doxygen 1.5.6