8#ifndef FMTCON_H_INCLUDED
9#define FMTCON_H_INCLUDED
11#include <boost/unordered_map.hpp>
12#include <boost/serialization/serialization.hpp>
13#include <boost/serialization/nvp.hpp>
14#include <boost/serialization/export.hpp>
34 friend class boost::serialization::access;
35 template<
class Archive>
36 void serialize(Archive& ar,
const unsigned int version)
39 ar & BOOST_SERIALIZATION_NVP(data);
42 _exhandler->printexceptions(
"",
"FMTconstants::serialize", __LINE__, __FILE__);
47 boost::unordered_map<std::string,std::vector<double>>data;
68 void set(
const std::string& key, std::vector<double>values);
74 T
get(std::string key,
int period = 0)
const;
80 std::vector<T>
getall(std::string key)
const;
90 size_t length(std::string value)
const;
100 operator std::string()
const;
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTconstants.hpp:29
std::vector< T > getall(std::string key) const
void set(const std::string &key, std::vector< double >values)
T get(std::string key, int period=0) const
FMTconstants(const FMTconstants &rhs)
bool isconstant(std::string value) const
size_t length(std::string value) const
Definition: FMTobject.hpp:50
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31