Kitware
Open Source
Toggle navigation
About
Pulse in Action
Resources
Publications
Documentation
Blog
Forums
Wiki
Newsletter
Methodology
Anesthesia Machine
Blood Chemistry
Bag Valve Mask
Cardiovascular
Circuit
Drugs
Endocrine
Energy
Environment
Gastrointestinal
Inhaler
Mechancial Ventilator
Nervous
Patient
Renal
Respiratory
Substance Transport
System
Tissue
Downloads
Contact Kitware
Pulse Support
pulse
engine
src
cpp
cdm
utils
CSV.h
1
/* Distributed under the Apache License, Version 2.0.
2
See accompanying NOTICE file for details.*/
3
4
#pragma once
5
6
#include <map>
7
#include <memory>
8
#include <string>
9
10
// ----------------------------------------------------------------------------
12
class
CDM_DECL
CSV
13
{
14
public
:
18
CSV
(std::string
const
& path);
19
20
CSV
(
CSV
&&);
21
~CSV
();
22
23
bool
NextRecord();
24
25
std::string NextValue(
unsigned
skip = 0);
26
27
double
NextValueAsDouble(
unsigned
skip = 0);
28
29
std::string Record()
const
;
30
31
static
void
SplitCSV(
const
std::string& originalCSV,
const
std::map<std::string, std::vector<std::string>>& fileMapping);
32
33
private
:
34
CSV
(
CSV
const
&) =
delete
;
35
36
class
Private
;
37
std::unique_ptr<Private>
m_p
;
38
};
CSV::Private
Definition:
CSV.cpp:37
CSV
Utility class to read a CSV file.
Definition:
CSV.h:13
CSV::CSV
CSV(CSV const &)=delete
CSV::m_p
std::unique_ptr< Private > m_p
Definition:
CSV.h:37
Distributed under the
Apache License, Version 2.0
.
See accompanying
NOTICE
file for details.