MeteoIODoc 20250312.660e6d76
Config.cc File Reference
#include <meteoio/Config.h>
#include <meteoio/FileUtils.h>
#include <meteoio/FStream.h>
#include <meteoio/thirdParty/tinyexpr.h>
#include <algorithm>
#include <fstream>
#include <cstdio>
#include <regex>

Namespaces

namespace  mio
 

Functions

static const std::regex mio::expr_regex (R"(\$\{\{(.+?)\}\})", std::regex::optimize)
 
static const std::regex mio::envvar_regex (R"(\$\{env:([^\$\{\}]+?)\})", std::regex::optimize)
 
static const std::regex mio::var_regex (R"(\$\{((?!\{).*?)\}(?!\}))", std::regex::optimize)
 
static const std::regex mio::sub_expr_regex (R"(.*\$\{((?!\{).*?)\}(?!\}).*)", std::regex::optimize)
 
static const std::regex mio::index_regex ("([^0-9]+)([0-9]{1,9})$", std::regex::optimize)
 
static const std::regex mio::section_regex (R"(^\[((?:\w|\-)+)\].*$)", std::regex::optimize)
 
std::ostream & mio::operator<< (std::ostream &os, const Config &cfg)
 
std::istream & mio::operator>> (std::istream &is, Config &cfg)
 

Variables

static const std::string mio::defaultSection = "GENERAL"
 
static const char mio::NUM [] = "0123456789"