00001 #ifndef CAJUN_INTERP_H 00002 #define CAJUN_INTERP_H 00003 00004 00005 #include <vector> 00006 00007 00008 #include "conf.H" 00009 00010 00011 namespace cajun 00012 { 00013 class interp_table_t 00014 { 00015 public: 00016 struct entry_t 00017 { 00018 double key; 00019 double val; 00020 }; 00021 void add_entry (entry_t const &entry_); 00022 00023 double interp (double key_); 00024 00025 protected: 00026 std::vector<entry_t> m_table; 00027 }; 00028 }; 00029 00030 00031 template <> 00032 bool conf_value (cajun::conf_entry_t &entry_, cajun::interp_table_t &table_); 00033 00034 00035 #endif