Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
csvparser.cpp File Reference
#include "csvparser.h"
#include <rapidcsv.h>
#include "HealthGPS.Core/scoped_timer.h"
#include "HealthGPS.Core/string_util.h"
#include "HealthGPS/gender_value.h"
#include <fmt/color.h>
Include dependency graph for csvparser.cpp:

Namespaces

 host
 Top-level namespace for Health-GPS Console host application.
 
 host::detail
 Internal details namespace for private data types and functions.
 

Macros

#define MEASURE_FUNCTION()
 

Functions

hc::StringDataTableColumnBuilder host::detail::parse_string_column (std::string name, std::vector< std::string > &data)
 
hc::IntegerDataTableColumnBuilder host::detail::parse_int_column (std::string name, std::vector< std::string > &data)
 
hc::FloatDataTableColumnBuilder host::detail::parse_float_column (std::string name, std::vector< std::string > &data)
 
hc::DoubleDataTableColumnBuilder host::detail::parse_double_column (std::string name, std::vector< std::string > &data)
 
std::map< std::string, std::size_t > host::detail::create_fields_index_mapping (const std::vector< std::string > &column_names, const std::vector< std::string > fields)
 
bool host::load_datatable_from_csv (hc::DataTable &out_table, std::string full_filename, std::map< std::string, std::string > columns, std::string delimiter=",")
 Populates a datatable with the input data file contents. More...
 
std::map< hc::Identifier, std::vector< double > > host::load_baseline_from_csv (const std::string &full_filename, const std::string delimiter=",")
 Loads the contents of baseline adjustments file into a table. More...
 

Macro Definition Documentation

◆ MEASURE_FUNCTION

#define MEASURE_FUNCTION ( )