Obsidian
Probabilistic Geophysical Joint Inversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
csv.cpp File Reference

Contains the interface of various IO interop with CSV. More...

#include "csv.hpp"
#include <iostream>
#include <fstream>
#include <glog/logging.h>
Include dependency graph for csv.cpp:

Namespaces

 obsidian
 
 obsidian::io
 
 obsidian::io::csv
 For reading and writing csv files.
 

Functions

std::vector< std::vector
< std::string > > 
obsidian::io::csv::readRaw (const std::string &inCsvFilePath)
 Read csv file into a list of list of string fields.
 
void obsidian::io::csv::writeRaw (const std::string &outCsvFilePath, const std::vector< std::vector< std::string >> &data)
 Write list of list of string fields into a csv file.
 
std::pair< size_t, size_t > obsidian::io::csv::getRowMatrixDimensions (const std::vector< std::vector< std::string >> &data)
 Extracts row and column dimensions of data in list of list of string fields format. More...
 

Detailed Description

Contains the interface of various IO interop with CSV.

Author
Nahid Akbar
Date
2014-06-06
License:
General Public License version 3 or later